pub struct PciDiagnostic {
pub io_port_works: bool,
pub cf8_readback: u32,
pub host_bridge_vendor: u16,
pub host_bridge_device: u16,
pub bus0_device_count: usize,
pub virtio_locations: Vec<(DeviceFunction, u16, u16)>,
}Expand description
Full diagnostic: returns structured info about PCI state.
Fields§
§io_port_works: boolWhether 0xCF8 read-back matches what we wrote
cf8_readback: u32Raw value read back from 0xCF8
host_bridge_vendor: u16Host bridge vendor ID (should be 0x8086 for Intel/QEMU)
host_bridge_device: u16Host bridge device ID
bus0_device_count: usizeAll devices found on bus 0
virtio_locations: Vec<(DeviceFunction, u16, u16)>Devices at common VirtIO locations
Auto Trait Implementations§
impl Freeze for PciDiagnostic
impl RefUnwindSafe for PciDiagnostic
impl Send for PciDiagnostic
impl Sync for PciDiagnostic
impl Unpin for PciDiagnostic
impl UnwindSafe for PciDiagnostic
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