pub struct MsixCapability { /* private fields */ }
Implementations§
Source§impl MsixCapability
impl MsixCapability
Sourcepub fn set_enabled(&mut self, enabled: bool, access: impl ConfigRegionAccess)
pub fn set_enabled(&mut self, enabled: bool, access: impl ConfigRegionAccess)
Enable MSI-X on the specified device feature.
Unlike with MSI, the MSI message data and delivery address is not contained within the
capability, but instead in system memory, and pointed to by the BAR specified by
MsixCapability::table_bar
and MsixCapability::table_offset
. The caller is therefore
responsible for configuring this separately, as this crate does not have access to
arbitrary physical memory.
pub fn enabled(&self, access: impl ConfigRegionAccess) -> bool
Sourcepub fn set_function_mask(&mut self, mask: bool, access: impl ConfigRegionAccess)
pub fn set_function_mask(&mut self, mask: bool, access: impl ConfigRegionAccess)
Enable/disable masking of all interrupts for this PCI function.
Individual interrupt sources can be masked using mask field of the corresponding entry in the MSI-X table.
pub fn function_mask(&self, access: impl ConfigRegionAccess) -> bool
Sourcepub fn table_offset(&self) -> u32
pub fn table_offset(&self) -> u32
The offset, in bytes, of the MSI-X table within its BAR.
pub fn table_size(&self) -> u16
pub fn pba_bar(&self) -> u8
pub fn pba_offset(&self) -> u32
Trait Implementations§
Source§impl Clone for MsixCapability
impl Clone for MsixCapability
Source§fn clone(&self) -> MsixCapability
fn clone(&self) -> MsixCapability
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MsixCapability
impl Debug for MsixCapability
impl Copy for MsixCapability
Auto Trait Implementations§
impl Freeze for MsixCapability
impl RefUnwindSafe for MsixCapability
impl Send for MsixCapability
impl Sync for MsixCapability
impl Unpin for MsixCapability
impl UnwindSafe for MsixCapability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)