diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-02-10 11:00:49 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:51:34 +0100 |
commit | 269a8f155c7265488945e60ef0cae77556017ddd (patch) | |
tree | 11d3dba08934c1835cf5043b05d8ef0581edfa1c /rust/hw/timer/hpet/src/lib.rs | |
parent | 0534248a6b515cb4dea29a6fd6c256dc77f2a953 (diff) | |
download | qemu-269a8f155c7265488945e60ef0cae77556017ddd.zip qemu-269a8f155c7265488945e60ef0cae77556017ddd.tar.gz qemu-269a8f155c7265488945e60ef0cae77556017ddd.tar.bz2 |
rust/timer/hpet: add basic HPET timer and HPETState
Add the HPETTimer and HPETState (HPET timer block), along with their
basic methods and register definitions.
This is in preparation for supporting the QAPI interfaces.
Note, wrap all items in HPETState that may be changed in the callback
called by C code into the BqlCell/BqlRefCell.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250210030051.2562726-9-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw/timer/hpet/src/lib.rs')
-rw-r--r-- | rust/hw/timer/hpet/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/hw/timer/hpet/src/lib.rs b/rust/hw/timer/hpet/src/lib.rs index 44e9f3f..d6ac0b2 100644 --- a/rust/hw/timer/hpet/src/lib.rs +++ b/rust/hw/timer/hpet/src/lib.rs @@ -8,3 +8,4 @@ //! Precision Event Timers) device in QEMU. pub mod fw_cfg; +pub mod hpet; |