diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-02-10 11:00:50 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:51:34 +0100 |
commit | 6e90a8f8136f65273fe7320904e06b27a8a40eda (patch) | |
tree | 6f3b9f44f54241961b64a0589600d016d732c56e /rust/hw/timer/hpet/src/lib.rs | |
parent | 269a8f155c7265488945e60ef0cae77556017ddd (diff) | |
download | qemu-6e90a8f8136f65273fe7320904e06b27a8a40eda.zip qemu-6e90a8f8136f65273fe7320904e06b27a8a40eda.tar.gz qemu-6e90a8f8136f65273fe7320904e06b27a8a40eda.tar.bz2 |
rust/timer/hpet: add qom and qdev APIs support
Implement QOM & QAPI support for HPET device.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250210030051.2562726-10-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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/hw/timer/hpet/src/lib.rs b/rust/hw/timer/hpet/src/lib.rs index d6ac0b2..5e7c961 100644 --- a/rust/hw/timer/hpet/src/lib.rs +++ b/rust/hw/timer/hpet/src/lib.rs @@ -7,5 +7,9 @@ //! This library implements a device model for the IA-PC HPET (High //! Precision Event Timers) device in QEMU. +use qemu_api::c_str; + pub mod fw_cfg; pub mod hpet; + +pub const TYPE_HPET: &::std::ffi::CStr = c_str!("hpet"); |