pub struct CapData {
pub cfg_type: CapCfgType,
pub bar: u8,
pub id: u8,
pub offset: le64,
pub length: le64,
pub notify_off_multiplier: Option<le32>,
}
Expand description
PCI Capability Data
Fields§
§cfg_type: CapCfgType
Identifies the structure.
bar: u8
Where to find it.
id: u8
Multiple capabilities of the same type
offset: le64
Offset within bar.
length: le64
Length of the structure, in bytes.
notify_off_multiplier: Option<le32>
Multiplier for queue_notify_off.
Implementations§
Source§impl CapData
impl CapData
pub fn read( addr: PciCapabilityAddress, access: impl ConfigRegionAccess, ) -> Option<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CapData
impl RefUnwindSafe for CapData
impl Send for CapData
impl Sync for CapData
impl Unpin for CapData
impl UnwindSafe for CapData
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