pub struct AcsExtendedCapability { /* private fields */ }Expand description
PCIe Access Control Services (ACS) extended capability emulator.
Implementations§
Source§impl AcsExtendedCapability
impl AcsExtendedCapability
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an ACS capability with the default set of sub-capabilities enabled (SV, TB, RR, CR, UF, DT).
Sourcepub fn with_capabilities(capability_bits: u16) -> Self
pub fn with_capabilities(capability_bits: u16) -> Self
Creates an ACS capability with the sub-capabilities indicated by capability_bits.
Trait Implementations§
Source§impl Debug for AcsExtendedCapability
impl Debug for AcsExtendedCapability
Source§impl Inspect for AcsExtendedCapability
impl Inspect for AcsExtendedCapability
Source§impl PciExtendedCapability for AcsExtendedCapability
impl PciExtendedCapability for AcsExtendedCapability
Source§fn extended_capability_id(&self) -> u16
fn extended_capability_id(&self) -> u16
Returns the PCIe extended capability ID for this capability.
Source§fn capability_version(&self) -> u8
fn capability_version(&self) -> u8
Returns this extended capability structure version.
Source§fn read(&self, offset: u16, value: ByteEnabledDwordRead<'_>)
fn read(&self, offset: u16, value: ByteEnabledDwordRead<'_>)
Read a byte-enabled DWORD at the given capability-relative offset.
The offset must be 32-bit aligned.
Source§impl SaveRestore for AcsExtendedCapability
impl SaveRestore for AcsExtendedCapability
Auto Trait Implementations§
impl Freeze for AcsExtendedCapability
impl RefUnwindSafe for AcsExtendedCapability
impl Send for AcsExtendedCapability
impl Sync for AcsExtendedCapability
impl Unpin for AcsExtendedCapability
impl UnsafeUnpin for AcsExtendedCapability
impl UnwindSafe for AcsExtendedCapability
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