Skip to main content

MmioRegister

Struct MmioRegister 

Source
#[repr(transparent)]
pub struct MmioRegister(pub u16);
Expand description

MMIO register offsets for the Intel VT-d IOMMU.

64-bit registers have separate _HI variants for the upper DWORD (base + 4), enabling flat match dispatch without nested fallbacks.

Tuple Fields§

§0: u16

Implementations§

Source§

impl MmioRegister

Source

pub const VER: MmioRegister

Version Register (32-bit, RO). §10.4.1.

Source

pub const CAP: MmioRegister

Capability Register — lo DWORD (64-bit, RO). §10.4.2.

Source

pub const CAP_HI: MmioRegister

Capability Register — hi DWORD.

Source

pub const ECAP: MmioRegister

Extended Capability Register — lo DWORD (64-bit, RO). §10.4.3.

Source

pub const ECAP_HI: MmioRegister

Extended Capability Register — hi DWORD.

Source

pub const GCMD: MmioRegister

Global Command Register (32-bit, WO). §10.4.4.

Source

pub const GSTS: MmioRegister

Global Status Register (32-bit, RO). §10.4.5.

Source

pub const RTADDR: MmioRegister

Root Table Address Register — lo DWORD (64-bit, RW). §10.4.6.

Source

pub const RTADDR_HI: MmioRegister

Root Table Address Register — hi DWORD.

Source

pub const CCMD: MmioRegister

Context Command Register — lo DWORD (64-bit, RW). §10.4.7.

Source

pub const CCMD_HI: MmioRegister

Context Command Register — hi DWORD.

Source

pub const FSTS: MmioRegister

Fault Status Register (32-bit, RW1C). §10.4.9.

Source

pub const FECTL: MmioRegister

Fault Event Control Register (32-bit, RW). §10.4.10.

Source

pub const FEDATA: MmioRegister

Fault Event Data Register (32-bit, RW). §10.4.11.

Source

pub const FEADDR: MmioRegister

Fault Event Address Register (32-bit, RW). §10.4.12.

Source

pub const FEUADDR: MmioRegister

Fault Event Upper Address Register (32-bit, RW). §10.4.13.

Source

pub const IQH: MmioRegister

Invalidation Queue Head Register — lo DWORD (64-bit, RO). §10.4.17.

Source

pub const IQH_HI: MmioRegister

Invalidation Queue Head Register — hi DWORD.

Source

pub const IQT: MmioRegister

Invalidation Queue Tail Register — lo DWORD (64-bit, RW). §10.4.18.

Source

pub const IQT_HI: MmioRegister

Invalidation Queue Tail Register — hi DWORD.

Source

pub const IQA: MmioRegister

Invalidation Queue Address Register — lo DWORD (64-bit, RW). §10.4.19.

Source

pub const IQA_HI: MmioRegister

Invalidation Queue Address Register — hi DWORD.

Source

pub const ICS: MmioRegister

Invalidation Completion Status Register (32-bit, RW1C). §10.4.20.

Source

pub const IECTL: MmioRegister

Invalidation Event Control Register (32-bit, RW). §10.4.21.

Source

pub const IEDATA: MmioRegister

Invalidation Event Data Register (32-bit, RW). §10.4.22.

Source

pub const IEADDR: MmioRegister

Invalidation Event Address Register (32-bit, RW). §10.4.23.

Source

pub const IEUADDR: MmioRegister

Invalidation Event Upper Address Register (32-bit, RW). §10.4.24.

Source

pub const IRTA: MmioRegister

Interrupt Remapping Table Address Register — lo DWORD (64-bit, RW). §10.4.29.

Source

pub const IRTA_HI: MmioRegister

Interrupt Remapping Table Address Register — hi DWORD.

Source

pub const IVA: MmioRegister

Invalidate Address Register — lo DWORD (64-bit, RW). §10.4.15.

Source

pub const IVA_HI: MmioRegister

Invalidate Address Register — hi DWORD.

Source

pub const IOTLB: MmioRegister

IOTLB Invalidate Register — lo DWORD (64-bit, RW). §10.4.16.

Source

pub const IOTLB_HI: MmioRegister

IOTLB Invalidate Register — hi DWORD.

Source

pub const FRCD_DW0: MmioRegister

Fault Recording Register DWORD 0 (FrcdLo lo). §10.4.14.

Source

pub const FRCD_DW1: MmioRegister

Fault Recording Register DWORD 1 (FrcdLo hi).

Source

pub const FRCD_DW2: MmioRegister

Fault Recording Register DWORD 2 (FrcdHi lo).

Source

pub const FRCD_DW3: MmioRegister

Fault Recording Register DWORD 3 (FrcdHi hi, contains F bit).

Trait Implementations§

Source§

impl Clone for MmioRegister

Source§

fn clone(&self) -> MmioRegister

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MmioRegister

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for MmioRegister

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Inspect for MmioRegister

Source§

fn inspect(&self, req: Request<'_>)

Inspects the object.
Source§

impl Ord for MmioRegister

Source§

fn cmp(&self, other: &MmioRegister) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for MmioRegister

Source§

fn eq(&self, other: &MmioRegister) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for MmioRegister

Source§

fn partial_cmp(&self, other: &MmioRegister) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for MmioRegister

Source§

impl Eq for MmioRegister

Source§

impl StructuralPartialEq for MmioRegister

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more