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