mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00

Define HPETFwEntry structure with the same memory layout as hpet_fw_entry in C. Further, define the global hpet_cfg variable in Rust which is the same as the C version. This hpet_cfg variable in Rust will replace the C version one and allows both Rust code and C code to access it. The Rust version of hpet_cfg is self-contained, avoiding unsafe access to C code. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250210030051.2562726-8-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
18 lines
398 B
TOML
18 lines
398 B
TOML
[package]
|
|
name = "hpet"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Zhao Liu <zhao1.liu@intel.com>"]
|
|
license = "GPL-2.0-or-later"
|
|
description = "IA-PC High Precision Event Timer emulation in Rust"
|
|
rust-version = "1.63.0"
|
|
|
|
[lib]
|
|
crate-type = ["staticlib"]
|
|
|
|
[dependencies]
|
|
qemu_api = { path = "../../../qemu-api" }
|
|
qemu_api_macros = { path = "../../../qemu-api-macros" }
|
|
|
|
[lints]
|
|
workspace = true
|