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>
impl<'s> MsiX<'s>
pub fn message_control(&self) -> u16
pub fn enabled(&self) -> bool
pub fn enable(&mut self)
pub fn function_mask(&self) -> bool
sourcepub fn table_size(&self) -> usize
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.
sourcepub fn bir(&self) -> u8
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).
sourcepub fn table_offset(&self) -> u32
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.
sourcepub fn pending_bit_bir(&self) -> u8
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).
sourcepub fn pending_bit_table_offset(&self) -> u32
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.