rust: pl011: move register definitions out of lib.rs

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini
2025-03-06 12:44:47 +01:00
parent 2d0050cbe2
commit 959fd759a2
3 changed files with 512 additions and 510 deletions
+5 -2
View File
@@ -26,10 +26,13 @@ use qemu_api::{
use crate::{
device_class,
registers::{self, Interrupt},
RegisterOffset,
registers::{self, Interrupt, RegisterOffset},
};
// TODO: You must disable the UART before any of the control registers are
// reprogrammed. When the UART is disabled in the middle of transmission or
// reception, it completes the current character before stopping
/// Integer Baud Rate Divider, `UARTIBRD`
const IBRD_MASK: u32 = 0xffff;
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff