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