添加rust重构版本的HPET驱动和tsc驱动,并使用HPET校准tsc频率和cpu总线频率 (#412)

* 添加rust重构版本的HPET驱动和tsc驱动,并使用HPET校准tsc频率和cpu总线频率

* 把hpet.c移动到arch文件夹下
This commit is contained in:
LoGin
2023-10-26 23:08:39 +08:00
committed by GitHub
parent ad1d649edd
commit fbe6becd6d
29 changed files with 946 additions and 391 deletions

View File

@ -22,6 +22,7 @@ pub mod bus;
mod c_adapter;
pub mod glue;
pub mod old;
pub mod pmtmr;
mod sysfs;
static mut __ACPI_TABLE: Option<acpi::AcpiTables<AcpiHandlerImpl>> = None;

View File

@ -0,0 +1,4 @@
pub const ACPI_PM_OVERRUN: u64 = 1 << 24;
/// Number of PMTMR ticks expected during calibration run
pub const PMTMR_TICKS_PER_SEC: u64 = 3579545;