xref: /DragonOS/kernel/src/arch/riscv64/pci/mod.rs (revision 83ed0ebc293d5a10245089f627f52770fd5b9dd4)
1 use crate::{
2     arch::TraitPciArch,
3     driver::pci::pci::{BusDeviceFunction, PciAddr, PciError, PciRoot, SegmentGroupNumber},
4 };
5 
6 pub struct RiscV64PciArch;
7 impl TraitPciArch for RiscV64PciArch {
8     fn read_config(bus_device_function: &BusDeviceFunction, offset: u8) -> u32 {
9         unimplemented!("RiscV64PciArch::read_config")
10     }
11 
12     fn write_config(bus_device_function: &BusDeviceFunction, offset: u8, data: u32) {
13         unimplemented!("RiscV64PciArch::write_config")
14     }
15 
16     fn address_pci_to_physical(pci_address: PciAddr) -> crate::mm::PhysAddr {
17         unimplemented!("RiscV64PciArch::address_pci_to_physical")
18     }
19 
20     fn ecam_root(segement: SegmentGroupNumber) -> Result<PciRoot, PciError> {
21         unimplemented!("RiscV64PciArch::ecam_root")
22     }
23 }
24