MCPcopy Index your code
hub / github.com/cloud-hypervisor/cloud-hypervisor / PciSubclass

Interface PciSubclass

pci/src/configuration.rs:82–85  ·  view source on GitHub ↗

A PCI subclass. Each class in `PciClassCode` can specify a unique set of subclasses. This trait is implemented by each subclass. It allows use of a trait object to generate configurations.

Source from the content-addressed store, hash-verified

80/// A PCI subclass. Each class in `PciClassCode` can specify a unique set of subclasses. This trait
81/// is implemented by each subclass. It allows use of a trait object to generate configurations.
82pub trait PciSubclass {
83 /// Convert this subclass to the value used in the PCI specification.
84 fn get_register_value(&self) -> u8;
85}
86
87/// Subclasses of the MultimediaController class.
88#[allow(dead_code)]

Callers

nothing calls this directly

Implementers 7

ivshmem.rsdevices/src/ivshmem.rs
pvmemcontrol.rsdevices/src/pvmemcontrol.rs
pvpanic.rsdevices/src/pvpanic.rs
vfio.rspci/src/vfio.rs
vfio_user.rspci/src/vfio_user.rs
configuration.rspci/src/configuration.rs
pci_device.rsvirtio-devices/src/transport/pci_devic

Calls

no outgoing calls

Tested by

no test coverage detected