Fix import error in PCI component
This commit is contained in:
parent
28d4d0e3ad
commit
1e324d2228
|
|
@ -8,9 +8,9 @@ use alloc::{collections::VecDeque, sync::Arc, vec::Vec};
|
|||
use core::fmt::Debug;
|
||||
|
||||
use log::{debug, error};
|
||||
use ostd::bus::BusProbeError;
|
||||
|
||||
use super::{device_info::PciDeviceId, PciCommonDevice};
|
||||
use crate::bus::BusProbeError;
|
||||
|
||||
/// PciDevice trait.
|
||||
pub trait PciDevice: Sync + Send + Debug {
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@
|
|||
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use ostd::bus::pci::PciDeviceLocation;
|
||||
|
||||
use self::{msix::CapabilityMsixData, vendor::CapabilityVndrData};
|
||||
use super::{
|
||||
cfg_space::{PciDeviceCommonCfgOffset, Status},
|
||||
common_device::PciCommonDevice,
|
||||
PciDeviceLocation,
|
||||
};
|
||||
|
||||
pub mod msix;
|
||||
|
|
|
|||
|
|
@ -7,15 +7,11 @@
|
|||
|
||||
use alloc::{sync::Arc, vec::Vec};
|
||||
|
||||
use ostd::{bus::pci::PciDeviceLocation, irq::IrqLine, mm::VmIoOnce};
|
||||
|
||||
use crate::{
|
||||
arch::pci::{construct_remappable_msix_address, MSIX_DEFAULT_MSG_ADDR},
|
||||
bus::pci::{
|
||||
cfg_space::{Bar, Command, MemoryBar},
|
||||
common_device::PciCommonDevice,
|
||||
device_info::PciDeviceLocation,
|
||||
},
|
||||
irq::IrqLine,
|
||||
mm::VmIoOnce,
|
||||
cfg_space::{Bar, Command, MemoryBar},
|
||||
common_device::PciCommonDevice,
|
||||
};
|
||||
|
||||
/// MSI-X capability. It will set the BAR space it uses to be hidden.
|
||||
|
|
|
|||
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
//! Vendor-specific capability support.
|
||||
|
||||
use crate::{
|
||||
bus::pci::{common_device::PciCommonDevice, device_info::PciDeviceLocation},
|
||||
Error, Result,
|
||||
};
|
||||
use ostd::{bus::pci::PciDeviceLocation, Error, Result};
|
||||
|
||||
use crate::common_device::PciCommonDevice;
|
||||
|
||||
/// Vendor specific capability. Users can access this capability area at will,
|
||||
/// except for the PCI configuration space which cannot be accessed at will through this structure.
|
||||
|
|
|
|||
|
|
@ -7,18 +7,15 @@
|
|||
use alloc::sync::Arc;
|
||||
|
||||
use bitflags::bitflags;
|
||||
|
||||
use super::PciDeviceLocation;
|
||||
use crate::{
|
||||
use ostd::{
|
||||
arch::device::io_port::{PortRead, PortWrite},
|
||||
io::IoMem,
|
||||
mm::{
|
||||
page_prop::{CachePolicy, PageFlags},
|
||||
PodOnce, VmIoOnce,
|
||||
},
|
||||
mm::{PodOnce, VmIoOnce},
|
||||
Error, Result,
|
||||
};
|
||||
|
||||
use super::PciDeviceLocation;
|
||||
|
||||
/// Offset in PCI device's common configuration space(Not the PCI bridge).
|
||||
#[repr(u16)]
|
||||
pub enum PciDeviceCommonCfgOffset {
|
||||
|
|
|
|||
|
|
@ -6,10 +6,12 @@
|
|||
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use ostd::bus::pci::PciDeviceLocation;
|
||||
|
||||
use super::{
|
||||
capability::Capability,
|
||||
cfg_space::{AddrLen, Bar, Command, PciDeviceCommonCfgOffset, Status},
|
||||
device_info::{PciDeviceId, PciDeviceLocation},
|
||||
device_info::PciDeviceId,
|
||||
};
|
||||
|
||||
/// PCI common device, Contains a range of information and functions common to PCI devices.
|
||||
|
|
|
|||
Loading…
Reference in New Issue