Lines Matching refs:port
15 void serial_init(uint16_t port) in serial_init() argument
17 while (!(in8(port + 5) & 0x60)); /* wait until not busy */ in serial_init()
19 out8(port + 1, 0x00); /* disable generating interrupts */ in serial_init()
20 out8(port + 3, 0x80); /* line control register: command: set divisor */ in serial_init()
21 out8(port, 0x01); /* set low byte of divisor to 0x01 = 115200 baud */ in serial_init()
22 out8(port + 1, 0x00); /* set high byte of divisor to 0x00 */ in serial_init()
23 out8(port + 3, 0x03); /* line control register: set 8 bit, no parity, 1 stop bit */ in serial_init()
24 out8(port + 4, 0x0b); /* modem control register: set DTR/RTS/OUT2 */ in serial_init()
26 in8(port); /* clear receiver port */ in serial_init()
27 in8(port + 5); /* clear line status port */ in serial_init()
28 in8(port + 6); /* clear modem status port */ in serial_init()