From d41b31cfc8ed956c3d27877605e966ea17d1e70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 6 Jun 2024 12:20:34 +0200 Subject: [PATCH] fix(pci): add `PciDevice::access` for underlying `ConfigRegionAccess` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/drivers/pci.rs | 4 ++++ 1 file changed, 4 insertions(+) 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) }