From 16ff930f94a1c5cfa4a98a42a96c9b230024286b Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Thu, 1 Feb 2024 17:04:23 +0100 Subject: make device_io a arch independent interface. In arm we will be using MMIO instead of the IO instructions. However the peripherals should use the same interface for IOs. --- src/machine/keyctrl.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/machine/keyctrl.rs') diff --git a/src/machine/keyctrl.rs b/src/machine/keyctrl.rs index 14e7aa4..93bd419 100644 --- a/src/machine/keyctrl.rs +++ b/src/machine/keyctrl.rs @@ -1,9 +1,8 @@ use self::super::kbd_defs::*; use self::super::key::*; -use crate::arch::x86_64::io_port::*; +use crate::machine::device_io::*; -// this is the driver for keyboard controller -// not to confuse with the keyboard module. +// this is the driver for keyboard controller not to confuse with the keyboard module. // The later is an abstraction // This one serves a the HW driver -- cgit v1.2.3-70-g09d2