Struct lspci::config::Type01Config
source · #[repr(C, packed(1))]pub struct Type01Config {Show 34 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; 2],
pub primary_bus_number: u8,
pub secondary_bus_number: u8,
pub subordinate_bus_number: u8,
pub secondary_latency_timer: u8,
pub io_base: u8,
pub io_limit: u8,
pub secondary_status: u16,
pub memory_base: u16,
pub memory_limit: u16,
pub pf_memory_base: u16,
pub pf_memory_limit: u16,
pub pf_base_upper_32: u32,
pub pf_limit_upper_32: u32,
pub io_base_upper_16: u16,
pub io_limit_upper_16: u16,
pub capabilities_ptr: u8,
pub reserved_0: [u8; 3],
pub expansion_rom_base: u32,
pub interrupt_line: u8,
pub interrupt_pin: u8,
pub bridge_control: u16,
}
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; 2]
§primary_bus_number: u8
§secondary_bus_number: u8
§subordinate_bus_number: u8
§secondary_latency_timer: u8
§io_base: u8
§io_limit: u8
§secondary_status: u16
§memory_base: u16
§memory_limit: u16
§pf_memory_base: u16
§pf_memory_limit: u16
§pf_base_upper_32: u32
§pf_limit_upper_32: u32
§io_base_upper_16: u16
§io_limit_upper_16: u16
§capabilities_ptr: u8
§reserved_0: [u8; 3]
§expansion_rom_base: u32
§interrupt_line: u8
§interrupt_pin: u8
§bridge_control: u16
Implementations§
source§impl Type01Config
impl Type01Config
pub fn new(config: &[u8]) -> Ref<&[u8], Type01Config>
Trait Implementations§
source§impl FromBytes for Type01Config
impl FromBytes for Type01Config
§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 Type01Config
impl FromZeros for Type01Config
source§impl IntoBytes for Type01Config
impl IntoBytes for Type01Config
Auto Trait Implementations§
impl Freeze for Type01Config
impl RefUnwindSafe for Type01Config
impl Send for Type01Config
impl Sync for Type01Config
impl Unpin for Type01Config
impl UnwindSafe for Type01Config
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