Skip to content

Commit

Permalink
fix(pci): add PciDevice::access for underlying ConfigRegionAccess
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Jun 6, 2024
1 parent 9d73165 commit d41b31c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ impl<T: ConfigRegionAccess> PciDevice<T> {
Self { address, access }
}

pub fn access(&self) -> &T {
&self.access
}

pub fn header(&self) -> PciHeader {
PciHeader::new(self.address)
}
Expand Down

0 comments on commit d41b31c

Please sign in to comment.