aboutsummaryrefslogtreecommitdiff
path: root/bunny/src/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bunny/src/io.rs')
-rw-r--r--bunny/src/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bunny/src/io.rs b/bunny/src/io.rs
index 2fae55a..08d8c84 100644
--- a/bunny/src/io.rs
+++ b/bunny/src/io.rs
@@ -1,4 +1,4 @@
-use x86_64::instructions::port::{Port, PortReadWrite};
+use x86_64::instructions::port::{Port, PortWrite};
const PIC1 : u16 = 0x20;
const PIC2 : u16 = 0xa0;
@@ -12,7 +12,7 @@ pub const PIC2_DATA : u16 = PIC2 + 1;
pub const PIC_DISABLE : u8 = 0xff;
#[inline(always)]
-pub unsafe fn out<T: PortReadWrite>(port: u16, value: T) {
+pub unsafe fn out<T: PortWrite>(port: u16, value: T) {
let mut p = Port::new(port);
p.write(value)
}