Struct driverkit::pci::MsiX

source ·
pub struct MsiX<'s> {
    pub offset: u32,
    /* private fields */
}

Fields§

§offset: u32

The offset where the MSI-X config is located within the PCI header.

Implementations§

source§

impl<'s> MsiX<'s>

source

pub fn message_control(&self) -> u16

source

pub fn enabled(&self) -> bool

source

pub fn enable(&mut self)

source

pub fn function_mask(&self) -> bool

source

pub fn table_size(&self) -> usize

Table Size is N - 1 encoded, and is the number of entries in the MSI-X table.

This field is Read-Only.

source

pub fn bir(&self) -> u8

BIR specifies which BAR is used for the Message Table.

This may be a 64-bit BAR, and is zero-indexed (so BIR=0, BAR0, offset 0x10 into the header).

source

pub fn table_offset(&self) -> u32

Table Offset is an offset into that BAR where the Message Table lives.

Note that it is 8-byte aligned.

source

pub fn pending_bit_bir(&self) -> u8

BIR specifies which BAR is used for the Message Table.

This may be a 64-bit BAR, and is zero-indexed (so BIR=0, BAR0, offset 0x10 into the header).

source

pub fn pending_bit_table_offset(&self) -> u32

Table Offset is an offset into that BAR where the Message Table lives.

Note that it is 8-byte aligned.

Trait Implementations§

source§

impl<'s> Debug for MsiX<'s>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'s> RefUnwindSafe for MsiX<'s>

§

impl<'s> Send for MsiX<'s>

§

impl<'s> Sync for MsiX<'s>

§

impl<'s> Unpin for MsiX<'s>

§

impl<'s> !UnwindSafe for MsiX<'s>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.