pub struct LegacyIoAccess;Expand description
Legacy I/O port PCI configuration access (0xCF8/0xCFC).
Uses standalone assembly (pci_io.S) for reliable I/O port access without compiler optimization interference.
Implementations§
Source§impl LegacyIoAccess
impl LegacyIoAccess
Sourcepub fn test_io_ports() -> bool
pub fn test_io_ports() -> bool
Test if PCI I/O ports are working. Returns true if the enable bit (bit 31) is readable after write.
Trait Implementations§
Source§impl ConfigAccess for LegacyIoAccess
impl ConfigAccess for LegacyIoAccess
Source§unsafe fn read32(&self, device: DeviceFunction, offset: u8) -> u32
unsafe fn read32(&self, device: DeviceFunction, offset: u8) -> u32
Read a 32-bit value from configuration space. Read more
Source§unsafe fn write32(&self, device: DeviceFunction, offset: u8, value: u32)
unsafe fn write32(&self, device: DeviceFunction, offset: u8, value: u32)
Write a 32-bit value to configuration space. Read more
Auto Trait Implementations§
impl Freeze for LegacyIoAccess
impl RefUnwindSafe for LegacyIoAccess
impl Send for LegacyIoAccess
impl Sync for LegacyIoAccess
impl Unpin for LegacyIoAccess
impl UnwindSafe for LegacyIoAccess
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more