Lines Matching refs:io_out8

1 use crate::include::bindings::bindings::{io_in8, io_out8};
101 io_out8(port + 1, 0x00); // Disable all interrupts in uart_init()
102 io_out8(port + 3, 0x80); // Enable DLAB (set baud rate divisor) in uart_init()
106 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in uart_init()
107 io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in uart_init()
108 io_out8(port + 3, 0x03); // 8 bits, no parity, one stop bit in uart_init()
109io_out8(port + 2, 0xC7); // Enable FIFO, clear them, with 14-byte threshold in uart_init()
110io_out8(port + 4, 0x08); // IRQs enabled, RTS/DSR clear (现代计算机上一般都不需要hardware flow control,因此不需要置位… in uart_init()
111 io_out8(port + 4, 0x1E); // Set in loopback mode, test the serial chip in uart_init()
112io_out8(port + 0, 0xAE); // Test serial chip (send byte 0xAE and check if serial returns same byte) in uart_init()
121 io_out8(port + 4, 0x08); in uart_init()
160 unsafe { io_out8(port, c); } in uart_send()
183 unsafe { io_out8(port, c); } in c_uart_send()
223 io_out8(port + 1, 0x00); // Disable all interrupts in c_uart_init()
224 io_out8(port + 3, 0x80); // Enable DLAB (set baud rate divisor) in c_uart_init()
228 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in c_uart_init()
229 io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in c_uart_init()
230 io_out8(port + 3, 0x03); // 8 bits, no parity, one stop bit in c_uart_init()
231 io_out8(port + 2, 0xC7); // Enable FIFO, clear them, with 14-byte threshold in c_uart_init()
232io_out8(port + 4, 0x08); // IRQs enabled, RTS/DSR clear (现代计算机上一般都不需要hardware flow control,因此不需要置位… in c_uart_init()
233 io_out8(port + 4, 0x1E); // Set in loopback mode, test the serial chip in c_uart_init()
234io_out8(port + 0, 0xAE); // Test serial chip (send byte 0xAE and check if serial returns same byte) in c_uart_init()
243 io_out8(port + 4, 0x08); in c_uart_init()