Struct zircon_object::dev::PcieDeviceKObject[][src]

pub struct PcieDeviceKObject { /* fields omitted */ }

PCIE Device Entity.

Implementations

impl PcieDeviceKObject[src]

pub fn new(device: Arc<dyn IPciNode>) -> Arc<PcieDeviceKObject>[src]

Create a new PcieDeviceKObject.

pub fn get_bar(&self, bar_num: u32) -> ZxResult<PcieBarInfo>[src]

Get PcieBarInfo.

pub fn map_interrupt(&self, irq: i32) -> ZxResult<Arc<Interrupt>>[src]

Map the interrupt to the IRQ.

pub fn enable_mmio(&self) -> ZxResult[src]

Enable MMIO.

pub fn enable_pio(&self) -> ZxResult[src]

Enable PIO.

pub fn enable_master(&self, enable: bool) -> ZxResult[src]

Enable bus mastering.

pub fn get_irq_mode_capabilities(
    &self,
    mode: PcieIrqMode
) -> ZxResult<PcieIrqModeCaps>
[src]

Check whether mode is capable PCI device’s IRQ modes.

pub fn set_irq_mode(&self, mode: PcieIrqMode, irq_count: u32) -> ZxResult[src]

Set IRQ mode.

pub fn config_read(&self, offset: usize, width: usize) -> ZxResult<u32>[src]

Read the device’s config.

pub fn config_write(&self, offset: usize, width: usize, val: u32) -> ZxResult[src]

Write the device’s config.

Trait Implementations

impl Debug for PcieDeviceKObject[src]

impl KernelObject for PcieDeviceKObject[src]

Auto Trait Implementations

impl !RefUnwindSafe for PcieDeviceKObject

impl Send for PcieDeviceKObject

impl Sync for PcieDeviceKObject

impl Unpin for PcieDeviceKObject

impl !UnwindSafe for PcieDeviceKObject

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.