Remove jinux-pci and hide PCI ports

This commit is contained in:
Yuke Peng
2023-08-10 16:23:02 +08:00
committed by Tate, Hongliang Tian
parent b3799ff9c7
commit df42397cea
23 changed files with 3 additions and 1078 deletions

View File

@ -3,5 +3,4 @@
pub mod cmos;
pub mod io_port;
pub mod pci;
pub mod serial;

View File

@ -5,6 +5,7 @@ pub mod iommu;
pub(crate) mod irq;
mod kernel;
pub(crate) mod mm;
pub(crate) mod pci;
pub(crate) mod timer;
use alloc::fmt;

View File

@ -1,7 +1,6 @@
//! PCI bus io port
use super::io_port::IoPort;
use super::io_port::{ReadWriteAccess, WriteOnlyAccess};
use super::device::io_port::{IoPort, ReadWriteAccess, WriteOnlyAccess};
pub static PCI_ADDRESS_PORT: IoPort<u32, WriteOnlyAccess> = unsafe { IoPort::new(0x0CF8) };
pub static PCI_DATA_PORT: IoPort<u32, ReadWriteAccess> = unsafe { IoPort::new(0x0CFC) };

View File

@ -1,6 +1,6 @@
use core::iter;
use crate::arch::device::pci::{PCI_ADDRESS_PORT, PCI_DATA_PORT};
use crate::arch::pci::{PCI_ADDRESS_PORT, PCI_DATA_PORT};
use super::cfg_space::PciDeviceCommonCfgOffset;