OLD | NEW |
1 /* | 1 /* |
2 * NS16550 Serial Port | 2 * NS16550 Serial Port |
3 * originally from linux source (arch/powerpc/boot/ns16550.h) | 3 * originally from linux source (arch/powerpc/boot/ns16550.h) |
4 * | 4 * |
5 * Cleanup and unification | 5 * Cleanup and unification |
6 * (C) 2009 by Detlev Zundel, DENX Software Engineering GmbH | 6 * (C) 2009 by Detlev Zundel, DENX Software Engineering GmbH |
7 * | 7 * |
8 * modified slightly to | 8 * modified slightly to |
9 * have addresses as offsets from CONFIG_SYS_ISA_BASE | 9 * have addresses as offsets from CONFIG_SYS_ISA_BASE |
10 * added a few more definitions | 10 * added a few more definitions |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 #endif | 156 #endif |
157 | 157 |
158 /* useful defaults for LCR */ | 158 /* useful defaults for LCR */ |
159 #define UART_LCR_8N1 0x03 | 159 #define UART_LCR_8N1 0x03 |
160 | 160 |
161 void NS16550_init (NS16550_t com_port, int baud_divisor); | 161 void NS16550_init (NS16550_t com_port, int baud_divisor); |
162 void NS16550_putc (NS16550_t com_port, char c); | 162 void NS16550_putc (NS16550_t com_port, char c); |
163 char NS16550_getc (NS16550_t com_port); | 163 char NS16550_getc (NS16550_t com_port); |
164 int NS16550_tstc (NS16550_t com_port); | 164 int NS16550_tstc (NS16550_t com_port); |
165 void NS16550_reinit (NS16550_t com_port, int baud_divisor); | 165 void NS16550_reinit (NS16550_t com_port, int baud_divisor); |
| 166 void NS16550_clear(NS16550_t com_port); |
| 167 void NS16550_drain(NS16550_t port); |
OLD | NEW |