diff options
author | Nick Shipp <nick@shipp.ninja> | 2021-03-15 18:36:03 -0400 |
---|---|---|
committer | Nick Shipp <nick@shipp.ninja> | 2021-03-15 18:36:03 -0400 |
commit | 638dff9bef5e4c7353e077127541b9f36df3b356 (patch) | |
tree | 1945ec6cef925ad3bbc1c7f0f4da336d36981c65 /bunny/src/io.rs | |
parent | 9204e0dc00f16053c80986896aeb32f582fcb48e (diff) |
Diffstat (limited to 'bunny/src/io.rs')
-rw-r--r-- | bunny/src/io.rs | 4 |
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) } |