mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 00:06:32 +00:00
添加rust重构版本的HPET驱动和tsc驱动,并使用HPET校准tsc频率和cpu总线频率 (#412)
* 添加rust重构版本的HPET驱动和tsc驱动,并使用HPET校准tsc频率和cpu总线频率 * 把hpet.c移动到arch文件夹下
This commit is contained in:
@ -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;
|
||||
|
4
kernel/src/driver/acpi/pmtmr.rs
Normal file
4
kernel/src/driver/acpi/pmtmr.rs
Normal 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;
|
Reference in New Issue
Block a user