MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / Device

Class Device

pci/src/device.rs:93–103  ·  view source on GitHub ↗

Information about a PCI device

Source from the content-addressed store, hash-verified

91
92/// Information about a PCI device
93pub 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
105impl Device {
106 pub fn class_str(&self) -> &'static str {

Callers

nothing calls this directly

Implementers 1

main.rstcp/src/main.rs

Calls

no outgoing calls

Tested by

no test coverage detected