Struct zircon_object::dev::PCIeBusDriver[][src]

pub struct PCIeBusDriver { /* fields omitted */ }

PCIE Bus Driver.

Implementations

impl PCIeBusDriver[src]

pub fn add_bus_region(base: u64, size: u64, aspace: PciAddrSpace) -> ZxResult[src]

Add bus region.

pub fn sub_bus_region(base: u64, size: u64, aspace: PciAddrSpace) -> ZxResult[src]

Subtract bus region.

pub fn set_address_translation_provider(
    provider: Arc<dyn PCIeAddressProvider>
) -> ZxResult
[src]

A PcieAddressProvider translates a BDF address to an address that the system can use to access ECAMs.

pub fn add_root(bus_id: usize, lut: PciIrqSwizzleLut) -> ZxResult[src]

Add a root bus to the driver and attempt to scan it for devices.

pub fn start_bus_driver() -> ZxResult[src]

Start the bus driver.

pub fn get_nth_device(
    n: usize
) -> ZxResult<(PcieDeviceInfo, Arc<PcieDeviceKObject>)>
[src]

Get the “Nth” device.

impl PCIeBusDriver[src]

pub fn get_config(
    &self,
    bus_id: usize,
    dev_id: usize,
    func_id: usize
) -> Option<(Arc<PciConfig>, PhysAddr)>
[src]

Get a device’s config.

Link a device to an upstream node.

pub fn find_legacy_irq_handler(
    &self,
    irq_id: u32
) -> ZxResult<Arc<SharedLegacyIrqHandler>>
[src]

Find the legacy IRQ handler.

Auto Trait Implementations

impl !RefUnwindSafe for PCIeBusDriver

impl Send for PCIeBusDriver

impl Sync for PCIeBusDriver

impl Unpin for PCIeBusDriver

impl !UnwindSafe for PCIeBusDriver

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.