Lines Matching defs:port
30 #define MSG(port, format, ...) \
31 printk( LOG_NOTE, "ZYNQ serial[%d]: "format, port, ## __VA_ARGS__ )
35 serial_early_init(unsigned port) {
36 assert(port < ZYNQ_UART_MAX_PORTS);
38 zynq_uart_initialize(&ports[port], (mackerel_addr_t)platform_uart_base[port]);
41 zynq_uart_CR_tx_dis_wrf(&ports[port], 0);
42 zynq_uart_CR_tx_en_wrf(&ports[port], 1);
48 zynq_uart_init(unsigned port, lvaddr_t base, bool initialize_hw) {
49 assert(port < ZYNQ_UART_MAX_PORTS);
50 zynq_uart_initialize(&ports[port], (mackerel_addr_t) base);
51 if(initialize_hw) zynq_uart_hw_init(&ports[port]);
78 * \brief Prints a single character to a serial port.
81 serial_putchar(unsigned port, char c) {
82 assert(port <= ZYNQ_UART_MAX_PORTS);
83 zynq_uart_t *uart = &ports[port];
93 * \brief Reads a single character from the default serial port.
96 serial_getchar(unsigned port) {
97 assert(port <= ZYNQ_UART_MAX_PORTS);
98 zynq_uart_t *uart = &ports[port];