Information about a PCI device
| 91 | |
| 92 | /// Information about a PCI device |
| 93 | pub struct Device { |
| 94 | pub location: PciLocation, |
| 95 | pub vendor_id: u16, // Identifies the manufacturer of the device |
| 96 | pub device_id: u16, // Identifies the particular device. Valid IDs are allocated by the vendor |
| 97 | pub class: u8, // The type of function the device performs |
| 98 | pub subclass: u8, // The specific function the device performs |
| 99 | pub prog_if: u8, // register-level programming interface, if any |
| 100 | pub revision_id: u8, // revision identifier. Valid IDs are allocated by the vendor |
| 101 | pub header_type: u8, |
| 102 | pub subsystem_id: u16 |
| 103 | } |
| 104 | |
| 105 | impl Device { |
| 106 | pub fn class_str(&self) -> &'static str { |
nothing calls this directly
no outgoing calls
no test coverage detected