pub struct Class(/* private fields */);Expand description
PCI device class codes.
Each entry contains the full 24-bit PCI class code (base class in bits 23-16, subclass in bits 15-8, programming interface in bits 7-0).
§Examples
fn probe_device(pdev: &pci::Device<Core>) -> Result {
let pci_class = pdev.pci_class();
dev_info!(
pdev.as_ref(),
"Detected PCI class: {}\n",
pci_class
);
Ok(())
}Implementations§
source§impl Class
impl Class
pub const NOT_DEFINED: Self = _
pub const NOT_DEFINED_VGA: Self = _
pub const STORAGE_SCSI: Self = _
pub const STORAGE_IDE: Self = _
pub const STORAGE_FLOPPY: Self = _
pub const STORAGE_IPI: Self = _
pub const STORAGE_RAID: Self = _
pub const STORAGE_SATA: Self = _
pub const STORAGE_SATA_AHCI: Self = _
pub const STORAGE_SAS: Self = _
pub const STORAGE_EXPRESS: Self = _
pub const STORAGE_OTHER: Self = _
pub const NETWORK_ETHERNET: Self = _
pub const NETWORK_TOKEN_RING: Self = _
pub const NETWORK_FDDI: Self = _
pub const NETWORK_ATM: Self = _
pub const NETWORK_OTHER: Self = _
pub const DISPLAY_VGA: Self = _
pub const DISPLAY_XGA: Self = _
pub const DISPLAY_3D: Self = _
pub const DISPLAY_OTHER: Self = _
pub const MULTIMEDIA_VIDEO: Self = _
pub const MULTIMEDIA_AUDIO: Self = _
pub const MULTIMEDIA_PHONE: Self = _
pub const MULTIMEDIA_HD_AUDIO: Self = _
pub const MULTIMEDIA_OTHER: Self = _
pub const MEMORY_RAM: Self = _
pub const MEMORY_FLASH: Self = _
pub const MEMORY_CXL: Self = _
pub const MEMORY_OTHER: Self = _
pub const BRIDGE_HOST: Self = _
pub const BRIDGE_ISA: Self = _
pub const BRIDGE_EISA: Self = _
pub const BRIDGE_MC: Self = _
pub const BRIDGE_PCI_NORMAL: Self = _
pub const BRIDGE_PCI_SUBTRACTIVE: Self = _
pub const BRIDGE_PCMCIA: Self = _
pub const BRIDGE_NUBUS: Self = _
pub const BRIDGE_CARDBUS: Self = _
pub const BRIDGE_RACEWAY: Self = _
pub const BRIDGE_OTHER: Self = _
pub const COMMUNICATION_SERIAL: Self = _
pub const COMMUNICATION_PARALLEL: Self = _
pub const COMMUNICATION_MULTISERIAL: Self = _
pub const COMMUNICATION_MODEM: Self = _
pub const COMMUNICATION_OTHER: Self = _
pub const SYSTEM_PIC: Self = _
pub const SYSTEM_PIC_IOAPIC: Self = _
pub const SYSTEM_PIC_IOXAPIC: Self = _
pub const SYSTEM_DMA: Self = _
pub const SYSTEM_TIMER: Self = _
pub const SYSTEM_RTC: Self = _
pub const SYSTEM_PCI_HOTPLUG: Self = _
pub const SYSTEM_SDHCI: Self = _
pub const SYSTEM_RCEC: Self = _
pub const SYSTEM_OTHER: Self = _
pub const INPUT_KEYBOARD: Self = _
pub const INPUT_PEN: Self = _
pub const INPUT_MOUSE: Self = _
pub const INPUT_SCANNER: Self = _
pub const INPUT_GAMEPORT: Self = _
pub const INPUT_OTHER: Self = _
pub const DOCKING_GENERIC: Self = _
pub const DOCKING_OTHER: Self = _
pub const PROCESSOR_386: Self = _
pub const PROCESSOR_486: Self = _
pub const PROCESSOR_PENTIUM: Self = _
pub const PROCESSOR_ALPHA: Self = _
pub const PROCESSOR_POWERPC: Self = _
pub const PROCESSOR_MIPS: Self = _
pub const PROCESSOR_CO: Self = _
pub const SERIAL_FIREWIRE: Self = _
pub const SERIAL_FIREWIRE_OHCI: Self = _
pub const SERIAL_ACCESS: Self = _
pub const SERIAL_SSA: Self = _
pub const SERIAL_USB_UHCI: Self = _
pub const SERIAL_USB_OHCI: Self = _
pub const SERIAL_USB_EHCI: Self = _
pub const SERIAL_USB_XHCI: Self = _
pub const SERIAL_USB_CDNS: Self = _
pub const SERIAL_USB_DEVICE: Self = _
pub const SERIAL_FIBER: Self = _
pub const SERIAL_SMBUS: Self = _
pub const SERIAL_IPMI_SMIC: Self = _
pub const SERIAL_IPMI_KCS: Self = _
pub const SERIAL_IPMI_BT: Self = _
pub const WIRELESS_RF_CONTROLLER: Self = _
pub const WIRELESS_WHCI: Self = _
pub const INTELLIGENT_I2O: Self = _
pub const SATELLITE_TV: Self = _
pub const SATELLITE_AUDIO: Self = _
pub const SATELLITE_VOICE: Self = _
pub const SATELLITE_DATA: Self = _
pub const CRYPT_NETWORK: Self = _
pub const CRYPT_ENTERTAINMENT: Self = _
pub const CRYPT_OTHER: Self = _
pub const SP_DPIO: Self = _
pub const SP_OTHER: Self = _
pub const ACCELERATOR_PROCESSING: Self = _
pub const OTHERS: Self = _
Trait Implementations§
source§impl PartialEq for Class
impl PartialEq for Class
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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
source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more