xref: /DragonOS/kernel/src/arch/riscv64/pio.rs (revision 59a6bcf6aee15a11a16431bdf875905c5ecf9157)
1 use crate::arch::io::PortIOArch;
2 
3 pub struct RiscV64PortIOArch;
4 
5 impl PortIOArch for RiscV64PortIOArch {
6     #[inline(always)]
7     unsafe fn in8(_port: u16) -> u8 {
8         unimplemented!("RiscV64PortIOArch::in8")
9     }
10 
11     #[inline(always)]
12     unsafe fn in16(_port: u16) -> u16 {
13         unimplemented!("RiscV64PortIOArch::in16")
14     }
15 
16     #[inline(always)]
17     unsafe fn in32(_port: u16) -> u32 {
18         unimplemented!("RiscV64PortIOArch::in32")
19     }
20 
21     #[inline(always)]
22     unsafe fn out8(_port: u16, _data: u8) {
23         unimplemented!("RiscV64PortIOArch::out8")
24     }
25 
26     #[inline(always)]
27     unsafe fn out16(_port: u16, _data: u16) {
28         unimplemented!("RiscV64PortIOArch::out16")
29     }
30 
31     #[inline(always)]
32     unsafe fn out32(_port: u16, _data: u32) {
33         unimplemented!("RiscV64PortIOArch::out32")
34     }
35 }
36