Go to the documentation of this file.
24 #define UART_LSR_THRE 0x20
25 #define UART_LSR_DR 0x01
29 static unsigned char *reg_base;
32 static int ns16550_open(
void)
38 static void ns16550_putc(
unsigned char c)
44 static unsigned char ns16550_getc(
void)
47 return in_8(reg_base);
50 static u8 ns16550_tstc(
void)
63 n = getprop(devp,
"reg-offset", ®_offset,
sizeof(reg_offset));
64 if (n ==
sizeof(reg_offset))
65 reg_base += reg_offset;
67 n = getprop(devp,
"reg-shift", ®_shift,
sizeof(reg_shift));
68 if (n !=
sizeof(reg_shift))
71 scdp->
open = ns16550_open;
72 scdp->
putc = ns16550_putc;
73 scdp->
getc = ns16550_getc;
74 scdp->
tstc = ns16550_tstc;