Home | History | Annotate | Download | only in boot

Lines Matching defs:com_port

45 	struct NS16550 *com_port;
47 com_port = (struct NS16550 *)(COMBASE + addr);
49 com_port->lcr = 0x80; /* Access baud rate */
51 com_port->dll = speed;
52 com_port->dlm = (speed >> 8) & 0xff;
54 com_port->lcr = 0x03; /* 8 data, 1 stop, no parity */
55 com_port->mcr = 0x00;
56 com_port->fcr = 0x07; /* Clear & enable FIFOs */
57 com_port->ier = 0x00; /* enable no interrupts */
59 return (com_port);
63 NS16550_putc(volatile struct NS16550 *com_port, int c)
66 while ((com_port->lsr & LSR_THRE) == 0)
68 com_port->thr = c;
72 NS16550_getc(volatile struct NS16550 *com_port)
75 while ((com_port->lsr & LSR_DR) == 0)
77 return (com_port->rbr);
81 NS16550_scankbd(volatile struct NS16550 *com_port)
84 if ((com_port->lsr & LSR_DR) == 0)
86 return (com_port->rbr);
90 NS16550_test(volatile struct NS16550 *com_port)
93 return ((com_port->lsr & LSR_DR) != 0);