rust: pl011: remove duplicate definitions
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Dec 2024 16:28:26 +0000 (17:28 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 28 Jan 2025 16:58:09 +0000 (17:58 +0100)
commitc44818a5fdbcca9a4e3474be70f8a2615e19922b
tree43ad617daa6403d9fde926b080dd3ff2aaf3d087
parenta1ab4eed8d37e4afb78367d766edeadfdb489027
rust: pl011: remove duplicate definitions

Unify the "Interrupt" enum and the "INT_*" constants with a struct
that contains the bits.  The "int_level" and "int_enabled" fields
could use a crate such as "bitflags".

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/hw/char/pl011/src/lib.rs