• Home
  • Raw
  • Download

Lines Matching refs:uart

91 	uart_t *uart;  in rs_serial_init()  local
96 uart = (uart_t *)(MMAP_UART0); in rs_serial_init()
99 uart = (uart_t *)(MMAP_UART1); in rs_serial_init()
102 uart = (uart_t *)(MMAP_UART2); in rs_serial_init()
105 uart = (uart_t *)(MMAP_UART0); in rs_serial_init()
111 writeb(UART_UCR_RESET_RX, &uart->ucr); in rs_serial_init()
112 writeb(UART_UCR_RESET_TX, &uart->ucr); in rs_serial_init()
113 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in rs_serial_init()
114 writeb(UART_UCR_RESET_MR, &uart->ucr); in rs_serial_init()
117 writeb(0, &uart->uimr); in rs_serial_init()
120 writeb(UART_UCSR_RCS_SYS_CLK | UART_UCSR_TCS_SYS_CLK, &uart->ucsr); in rs_serial_init()
122 writeb(UART_UMR_BC_8 | UART_UMR_PM_NONE, &uart->umr); in rs_serial_init()
123 writeb(UART_UMR_SB_STOP_BITS_1, &uart->umr); in rs_serial_init()
130 writeb((u8) ((counter & 0xff00) >> 8), &uart->ubg1); in rs_serial_init()
132 writeb((u8) (counter & 0x00ff), &uart->ubg2); in rs_serial_init()
134 writeb(UART_UCR_RX_ENABLED | UART_UCR_TX_ENABLED, &uart->ucr); in rs_serial_init()
141 uart_t *uart; in astro_put_char() local
144 uart = (uart_t *)(MMAP_UART0); in astro_put_char()
151 if (readb(&uart->usr) & UART_USR_TXRDY) in astro_put_char()
154 writeb(ch, &uart->utb); in astro_put_char()
161 uart_t *uart; in astro_is_char() local
163 uart = (uart_t *)(MMAP_UART0); in astro_is_char()
164 return readb(&uart->usr) & UART_USR_RXRDY; in astro_is_char()
169 uart_t *uart; in astro_get_char() local
171 uart = (uart_t *)(MMAP_UART0); in astro_get_char()
172 while (!(readb(&uart->usr) & UART_USR_RXRDY)) ; in astro_get_char()
173 return readb(&uart->urb); in astro_get_char()