Lines Matching refs:io_out8

1 use crate::include::bindings::bindings::{io_in8, io_out8};
104 io_out8(port + 1, 0x00); // Disable all interrupts in uart_init()
105 io_out8(port + 3, 0x80); // Enable DLAB (set baud rate divisor) in uart_init()
109 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in uart_init()
110 io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in uart_init()
111 io_out8(port + 3, 0x03); // 8 bits, no parity, one stop bit in uart_init()
112 io_out8(port + 2, 0xC7); // Enable FIFO, clear them, with 14-byte threshold in uart_init()
113io_out8(port + 4, 0x08); // IRQs enabled, RTS/DSR clear (现代计算机上一般都不需要hardware flow control,因此不需要置位… in uart_init()
114 io_out8(port + 4, 0x1E); // Set in loopback mode, test the serial chip in uart_init()
115io_out8(port + 0, 0xAE); // Test serial chip (send byte 0xAE and check if serial returns same byte) in uart_init()
124 io_out8(port + 4, 0x08); in uart_init()
164 io_out8(port, c); in uart_send()
188 io_out8(port, c); in c_uart_send()
228 io_out8(port + 1, 0x00); // Disable all interrupts in c_uart_init()
229 io_out8(port + 3, 0x80); // Enable DLAB (set baud rate divisor) in c_uart_init()
233 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in c_uart_init()
234 io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in c_uart_init()
235 io_out8(port + 3, 0x03); // 8 bits, no parity, one stop bit in c_uart_init()
236 io_out8(port + 2, 0xC7); // Enable FIFO, clear them, with 14-byte threshold in c_uart_init()
237io_out8(port + 4, 0x08); // IRQs enabled, RTS/DSR clear (现代计算机上一般都不需要hardware flow control,因此不需要置位… in c_uart_init()
238 io_out8(port + 4, 0x1E); // Set in loopback mode, test the serial chip in c_uart_init()
239io_out8(port + 0, 0xAE); // Test serial chip (send byte 0xAE and check if serial returns same byte) in c_uart_init()
248 io_out8(port + 4, 0x08); in c_uart_init()