Change IoPort to architecture-independent

This commit is contained in:
Yuke Peng
2025-03-30 15:52:21 +08:00
committed by Tate, Hongliang Tian
parent 85d4cdbbb0
commit f89b248f3b
9 changed files with 69 additions and 118 deletions

View File

@ -2,8 +2,8 @@
//! PCI bus access
use super::device::io_port::{IoPort, ReadWriteAccess, WriteOnlyAccess};
use crate::{bus::pci::PciDeviceLocation, prelude::*};
use super::device::io_port::{ReadWriteAccess, WriteOnlyAccess};
use crate::{bus::pci::PciDeviceLocation, io::IoPort, prelude::*};
static PCI_ADDRESS_PORT: IoPort<u32, WriteOnlyAccess> = unsafe { IoPort::new(0x0CF8) };
static PCI_DATA_PORT: IoPort<u32, ReadWriteAccess> = unsafe { IoPort::new(0x0CFC) };