Struct zircon_object::dev::PcieDeviceKObject [−][src]
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]
&self,
mode: PcieIrqMode
) -> ZxResult<PcieIrqModeCaps>
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]
fn id(&self) -> KoID
[src]
fn type_name(&self) -> &str
[src]
fn name(&self) -> String
[src]
fn set_name(&self, name: &str)
[src]
fn signal(&self) -> Signal
[src]
fn signal_set(&self, signal: Signal)
[src]
fn signal_clear(&self, signal: Signal)
[src]
fn signal_change(&self, clear: Signal, set: Signal)
[src]
fn add_signal_callback(&self, callback: SignalHandler)
[src]
fn get_child(&self, _id: KoID) -> ZxResult<Arc<dyn KernelObject>>
[src]
fn peer(&self) -> ZxResult<Arc<dyn KernelObject>>
[src]
fn related_koid(&self) -> KoID
[src]
fn allowed_signals(&self) -> Signal
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,