Searched refs:out8 (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 136 CurrentPortIOArch::out8(port + 1, 0x00); // Disable all interrupts in init() 140 … CurrentPortIOArch::out8(port + 2, 0xC7); // Enable FIFO, clear them, with 14-byte threshold in init() 141 …CurrentPortIOArch::out8(port + 4, 0x08); // IRQs enabled, RTS/DSR clear (现代计算机上一般都不需要hardware flow… in init() 142 CurrentPortIOArch::out8(port + 4, 0x1E); // Set in loopback mode, test the serial chip in init() 143 …CurrentPortIOArch::out8(port, 0xAE); // Test serial chip (send byte 0xAE and check if serial retur… in init() 153 CurrentPortIOArch::out8(port + 4, 0x0b); in init() 155 CurrentPortIOArch::out8(port + 1, 0x01); // Enable interrupts in init() 230 unsafe { CurrentPortIOArch::out8(self.iobase as u16 + offset as u16, value as u8) } in serial_out() 243 CurrentPortIOArch::out8(port + 3, 0x80); // Enable DLAB (set baud rate divisor) in set_divisor() 247 CurrentPortIOArch::out8(port, (divisor & 0xff) as u8); // Set divisor (lo byte) in set_divisor() [all …]
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | tsc.rs | 253 CurrentPortIOArch::out8(0x61, d); in pit_calibrate_tsc() 258 CurrentPortIOArch::out8(0x43, 0xb0); in pit_calibrate_tsc() 259 CurrentPortIOArch::out8(0x42, (latch & 0xff) as u8); in pit_calibrate_tsc() 260 CurrentPortIOArch::out8(0x42, ((latch >> 8) & 0xff) as u8); in pit_calibrate_tsc()
|
H A D | rtc.rs | 70 CurrentPortIOArch::out8(0x70, 0x80 | addr); in read_cmos() 270 CurrentPortIOArch::out8(0x70, 0x00); in read_time()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | mod.rs | 464 CurrentPortIOArch::out8(0x21, 0xff); in mask8259a() 465 CurrentPortIOArch::out8(0xa1, 0xff); in mask8259a() 468 CurrentPortIOArch::out8(0x20, 0x20); in mask8259a() 469 CurrentPortIOArch::out8(0xa0, 0x20); in mask8259a() 474 CurrentPortIOArch::out8(0x22, 0x70); in mask8259a() 475 CurrentPortIOArch::out8(0x23, 0x01); in mask8259a()
|
/DragonOS/kernel/src/arch/ |
H A D | io.rs | 7 unsafe fn out8(port: u16, data: u8); in out8() method
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | acpi_pm.rs | 148 CurrentPortIOArch::out8(0x61, (CurrentPortIOArch::in8(0x61) & !0x02) | 0x01); in mach_prepare_counter() 151 CurrentPortIOArch::out8(0x43, 0xb0); in mach_prepare_counter() 152 CurrentPortIOArch::out8(0x42, (CALIBRATE_LATCH & 0xff) as u8); in mach_prepare_counter() 153 CurrentPortIOArch::out8(0x42, (CALIBRATE_LATCH >> 8) as u8); in mach_prepare_counter()
|
/DragonOS/kernel/src/arch/riscv64/ |
H A D | pio.rs | 22 unsafe fn out8(_port: u16, _data: u8) { in out8() method
|
/DragonOS/kernel/src/arch/x86_64/asm/ |
H A D | pio.rs | 22 unsafe fn out8(port: u16, data: u8) { in out8() method
|
/DragonOS/kernel/src/driver/keyboard/ |
H A D | ps2_keyboard.rs | 253 CurrentPortIOArch::out8(PORT_PS2_KEYBOARD_CONTROL.into(), PS2_KEYBOARD_COMMAND_WRITE); in ps2_keyboard_init() 255 CurrentPortIOArch::out8(PORT_PS2_KEYBOARD_DATA.into(), PS2_KEYBOARD_PARAM_INIT); in ps2_keyboard_init()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 372 CurrentPortIOArch::out8(DATA_PORT_ADDRESS, data); in write_data_port() 380 CurrentPortIOArch::out8(ADDRESS_PORT_ADDRESS, command); in write_control_port()
|