diff --git a/src/drivers/pci.rs b/src/drivers/pci.rs index 1ea8b0ee71..be590c6276 100644 --- a/src/drivers/pci.rs +++ b/src/drivers/pci.rs @@ -86,6 +86,10 @@ impl PciDevice { Self { address, access } } + pub fn access(&self) -> &T { + &self.access + } + pub fn header(&self) -> PciHeader { PciHeader::new(self.address) }