#[repr(transparent)]pub struct PciExpressCapabilityHeader(pub u16);
Expand description
Offsets into the PCI Express Capability Header
Table pulled from PCI Express Base Specification Rev. 3.0
Offset | Bits 31-24 | Bits 23-16 | Bits 15-8 | Bits 7-0 |
---|---|---|---|---|
Cap + 0x0 | PCI Express Capabilities Register | Next Pointer | Capability ID (0x10) | |
Cap + 0x4 | Device Capabilities Register | |||
Cap + 0x8 | Device Status | Device Control |
Tuple Fields§
§0: u16
Implementations§
Source§impl PciExpressCapabilityHeader
impl PciExpressCapabilityHeader
pub const PCIE_CAPS: PciExpressCapabilityHeader
pub const DEVICE_CAPS: PciExpressCapabilityHeader
pub const DEVICE_CTL_STS: PciExpressCapabilityHeader
Trait Implementations§
Source§impl Clone for PciExpressCapabilityHeader
impl Clone for PciExpressCapabilityHeader
Source§fn clone(&self) -> PciExpressCapabilityHeader
fn clone(&self) -> PciExpressCapabilityHeader
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 Debug for PciExpressCapabilityHeader
impl Debug for PciExpressCapabilityHeader
Source§impl Hash for PciExpressCapabilityHeader
impl Hash for PciExpressCapabilityHeader
Source§impl Ord for PciExpressCapabilityHeader
impl Ord for PciExpressCapabilityHeader
Source§fn cmp(&self, other: &PciExpressCapabilityHeader) -> Ordering
fn cmp(&self, other: &PciExpressCapabilityHeader) -> 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 PartialOrd for PciExpressCapabilityHeader
impl PartialOrd for PciExpressCapabilityHeader
impl Copy for PciExpressCapabilityHeader
impl Eq for PciExpressCapabilityHeader
impl StructuralPartialEq for PciExpressCapabilityHeader
Auto Trait Implementations§
impl Freeze for PciExpressCapabilityHeader
impl RefUnwindSafe for PciExpressCapabilityHeader
impl Send for PciExpressCapabilityHeader
impl Sync for PciExpressCapabilityHeader
impl Unpin for PciExpressCapabilityHeader
impl UnwindSafe for PciExpressCapabilityHeader
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