Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ pub type InterruptPin = u8;

// TODO: documentation
pub trait ConfigRegionAccess {
fn function_exists(&self, address: PciAddress) -> bool;

/// Performs a PCI read at `address` with `offset`.
///
/// # Safety
Expand All @@ -93,11 +91,6 @@ pub trait ConfigRegionAccess {
}

impl<T: ConfigRegionAccess + ?Sized> ConfigRegionAccess for &T {
#[inline]
fn function_exists(&self, address: PciAddress) -> bool {
(**self).function_exists(address)
}

#[inline]
unsafe fn read(&self, address: PciAddress, offset: u16) -> u32 {
(**self).read(address, offset)
Expand Down