#[repr(C)]pub struct PciDeviceInfo {
pub address: PciAddress,
pub vendor_id: u16,
pub device_id: u16,
pub class_code: u8,
pub subclass: u8,
pub prog_if: u8,
pub revision: u8,
pub header_type: u8,
pub interrupt_line: u8,
pub interrupt_pin: u8,
pub _reserved: u8,
}Expand description
PCI device information returned by SYS_PCI_ENUM.
Fields§
§address: PciAddressPCI bus/device/function address.
vendor_id: u16Vendor ID (e.g., 0x8086 for Intel).
device_id: u16Device ID (e.g., 0x100E for Intel E1000).
class_code: u8PCI class code (e.g., 0x02 for network controller).
subclass: u8PCI subclass (e.g., 0x00 for Ethernet controller).
prog_if: u8Programming interface (e.g., 0x00 for E1000).
revision: u8PCI revision ID.
header_type: u8Header type (0 = standard, 1 = PCI-to-PCI bridge).
interrupt_line: u8Interrupt line (IRQ number, 0 = none).
interrupt_pin: u8Interrupt pin (A=1, B=2, C=3, D=4, 0 = none).
_reserved: u8Trait Implementations§
Source§impl Clone for PciDeviceInfo
impl Clone for PciDeviceInfo
Source§fn clone(&self) -> PciDeviceInfo
fn clone(&self) -> PciDeviceInfo
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 PciDeviceInfo
Source§impl Debug for PciDeviceInfo
impl Debug for PciDeviceInfo
Source§impl FromBytes for PciDeviceInfo
impl FromBytes for PciDeviceInfo
Source§impl FromZeros for PciDeviceInfo
impl FromZeros for PciDeviceInfo
Source§impl IntoBytes for PciDeviceInfo
impl IntoBytes for PciDeviceInfo
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for PciDeviceInfo
impl TryFromBytes for PciDeviceInfo
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for PciDeviceInfo
impl RefUnwindSafe for PciDeviceInfo
impl Send for PciDeviceInfo
impl Sync for PciDeviceInfo
impl Unpin for PciDeviceInfo
impl UnsafeUnpin for PciDeviceInfo
impl UnwindSafe for PciDeviceInfo
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