com_lsr
if (inb(COMPORT + com_lsr) & LSR_TXRDY) {
return(inb(COMPORT + com_lsr) & LSR_RXRDY);
if (inb(COMPORT + com_lsr) == 0xFF)
const int com_lsr = 5;
if (inb(COMPORT + com_lsr) & LSR_TXRDY) {
com->line_status_port = iobase + com_lsr;
while ((inb(iobase + com_lsr) & (LSR_TSRE | LSR_TXRDY))
if ((inb(iobase + com_lsr) & LSR_RXRDY) == 0)
if (inb(iobase + com_lsr) & LSR_RXRDY)
while (!(inb(iobase + com_lsr) & LSR_RXRDY))
if ((sio_getreg(com, com_lsr) & LSR_RXRDY) == 0)