pub struct IvhdDeviceEntry {
pub raw_type: u8,
pub device_id: u16,
pub data: [u8; 4],
pub ext_data: Option<u16>,
pub is_range: bool,
pub range_count: u8,
}Expand description
A device entry inside an IVHD block.
Each entry describes a PCI device (or range of devices) that belongs to this IOMMU.
Fields§
§raw_type: u8Raw entry type byte (see AMD IOMMU spec §3.4).
device_id: u16Device ID (BDF format: bus:device:function).
data: [u8; 4]Data field (meaning depends on entry type).
ext_data: Option<u16>Extended data (alias/extended device ID, if present).
is_range: boolIs this a range entry (covering multiple consecutive device IDs)?
range_count: u8For range entries: the number of devices covered (1..256).
Trait Implementations§
Source§impl Clone for IvhdDeviceEntry
impl Clone for IvhdDeviceEntry
Source§fn clone(&self) -> IvhdDeviceEntry
fn clone(&self) -> IvhdDeviceEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IvhdDeviceEntry
Auto Trait Implementations§
impl Freeze for IvhdDeviceEntry
impl RefUnwindSafe for IvhdDeviceEntry
impl Send for IvhdDeviceEntry
impl Sync for IvhdDeviceEntry
impl Unpin for IvhdDeviceEntry
impl UnsafeUnpin for IvhdDeviceEntry
impl UnwindSafe for IvhdDeviceEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more