#[repr(transparent)]pub struct SriovExtendedCapabilityHeader(pub u16);Expand description
Offsets into the SR-IOV Extended Capability structure.
| Offset | Bits 31-16 | Bits 15-0 |
|---|---|---|
| Ext + 0x0 | Next Cap Ptr + Version | Extended Capability ID |
| Ext + 0x4 | SR-IOV Capabilities | |
| Ext + 0x8 | SR-IOV Status | SR-IOV Control |
| Ext + 0xC | Total VFs | Initial VFs |
| Ext + 0x10 | Function Dep Link | Num VFs |
| Ext + 0x14 | VF Stride | First VF Offset |
| Ext + 0x18 | VF Device ID | Reserved |
| Ext + 0x1C | Supported Page Sizes | |
| Ext + 0x20 | System Page Size | |
| Ext + 0x24 | VF BAR0 | |
| Ext + 0x28 | VF BAR1 | |
| Ext + 0x2C | VF BAR2 | |
| Ext + 0x30 | VF BAR3 | |
| Ext + 0x34 | VF BAR4 | |
| Ext + 0x38 | VF BAR5 | |
| Ext + 0x3C | VF Migration State Array Offset |
Tuple Fields§
§0: u16Implementations§
Source§impl SriovExtendedCapabilityHeader
impl SriovExtendedCapabilityHeader
pub const HEADER: SriovExtendedCapabilityHeader
pub const CAPS: SriovExtendedCapabilityHeader
Sourcepub const CONTROL_STATUS: SriovExtendedCapabilityHeader
pub const CONTROL_STATUS: SriovExtendedCapabilityHeader
SR-IOV Control (bits 15:0) and SR-IOV Status (bits 31:16).
pub const INITIAL_TOTAL_VFS: SriovExtendedCapabilityHeader
pub const VF_OFFSET_STRIDE: SriovExtendedCapabilityHeader
pub const VF_BAR0: SriovExtendedCapabilityHeader
Trait Implementations§
Source§impl Clone for SriovExtendedCapabilityHeader
impl Clone for SriovExtendedCapabilityHeader
Source§fn clone(&self) -> SriovExtendedCapabilityHeader
fn clone(&self) -> SriovExtendedCapabilityHeader
Returns a duplicate 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 Hash for SriovExtendedCapabilityHeader
impl Hash for SriovExtendedCapabilityHeader
Source§impl Ord for SriovExtendedCapabilityHeader
impl Ord for SriovExtendedCapabilityHeader
Source§fn cmp(&self, other: &SriovExtendedCapabilityHeader) -> Ordering
fn cmp(&self, other: &SriovExtendedCapabilityHeader) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SriovExtendedCapabilityHeader
impl PartialEq for SriovExtendedCapabilityHeader
Source§fn eq(&self, other: &SriovExtendedCapabilityHeader) -> bool
fn eq(&self, other: &SriovExtendedCapabilityHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SriovExtendedCapabilityHeader
impl PartialOrd for SriovExtendedCapabilityHeader
impl Copy for SriovExtendedCapabilityHeader
impl Eq for SriovExtendedCapabilityHeader
impl StructuralPartialEq for SriovExtendedCapabilityHeader
Auto Trait Implementations§
impl Freeze for SriovExtendedCapabilityHeader
impl RefUnwindSafe for SriovExtendedCapabilityHeader
impl Send for SriovExtendedCapabilityHeader
impl Sync for SriovExtendedCapabilityHeader
impl Unpin for SriovExtendedCapabilityHeader
impl UnsafeUnpin for SriovExtendedCapabilityHeader
impl UnwindSafe for SriovExtendedCapabilityHeader
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