Struct lspci::config::Type00Config
source · #[repr(C, packed(1))]pub struct Type00Config {Show 24 fields
pub vendor_id: u16,
pub device_id: u16,
pub command: u16,
pub status: u16,
pub revision_id: u8,
pub program_interface: u8,
pub sub_class: u8,
pub base_class: u8,
pub cache_line_size: u8,
pub latency_timer: u8,
pub header_type: u8,
pub bist: u8,
pub base_address: [u32; 6],
pub cardbus_cis_ptr: u32,
pub sub_vendor_id: u16,
pub subsystem_id: u16,
pub expansion_rom_address: u32,
pub capabilities_ptr: u8,
pub reserved_0: [u8; 3],
pub reserved_1: [u8; 4],
pub interrupt_line: u8,
pub interrupt_pin: u8,
pub min_grant: u8,
pub max_latency: u8,
}
Fields§
§vendor_id: u16
§device_id: u16
§command: u16
§status: u16
§revision_id: u8
§program_interface: u8
§sub_class: u8
§base_class: u8
§cache_line_size: u8
§latency_timer: u8
§header_type: u8
§bist: u8
§base_address: [u32; 6]
§cardbus_cis_ptr: u32
§sub_vendor_id: u16
§subsystem_id: u16
§expansion_rom_address: u32
§capabilities_ptr: u8
§reserved_0: [u8; 3]
§reserved_1: [u8; 4]
§interrupt_line: u8
§interrupt_pin: u8
§min_grant: u8
§max_latency: u8
Implementations§
source§impl Type00Config
impl Type00Config
pub fn new(config: &[u8]) -> Ref<&[u8], Type00Config>
Trait Implementations§
source§impl FromBytes for Type00Config
impl FromBytes for Type00Config
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for Type00Config
impl FromZeros for Type00Config
source§impl IntoBytes for Type00Config
impl IntoBytes for Type00Config
Auto Trait Implementations§
impl Freeze for Type00Config
impl RefUnwindSafe for Type00Config
impl Send for Type00Config
impl Sync for Type00Config
impl Unpin for Type00Config
impl UnwindSafe for Type00Config
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