-
Notifications
You must be signed in to change notification settings - Fork 24
/
dbgdtr_el0.rs
58 lines (48 loc) · 1.57 KB
/
dbgdtr_el0.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
// Copyright (c) 2020-2023 by the author(s)
//
// Author(s):
// - Chris Brown <ccbrown112@gmail.com>
//! Debug Data Transfer Register, half-duplex
//!
//! Transfers 64 bits of data between the PE and an external debugger. Can transfer both ways using
//! only a single register.
use tock_registers::{
interfaces::{Readable, Writeable},
register_bitfields,
};
register_bitfields! {u64,
pub DBGDTR_EL0 [
/// Writes to this register set DTRRX to the value in this field and do not change RXfull.
///
/// Reads of this register:
///
/// - If RXfull is set to 1, return the last value written to DTRTX.
/// - If RXfull is set to 0, return an UNKNOWN value.
///
/// After the read, RXfull is cleared to 0.
HighWord OFFSET(32) NUMBITS(32) [],
/// Writes to this register set DTRTX to the value in this field and set TXfull to 1.
///
/// Reads of this register:
///
/// - If RXfull is set to 1, return the last value written to DTRRX.
/// - If RXfull is set to 0, return an UNKNOWN value.
///
/// After the read, RXfull is cleared to 0.
LowWord OFFSET(0) NUMBITS(32) []
]
}
pub struct Reg;
impl Readable for Reg {
type T = u64;
type R = DBGDTR_EL0::Register;
sys_coproc_read_raw!(u64, "DBGDTR_EL0", "x");
}
impl Writeable for Reg {
type T = u64;
type R = DBGDTR_EL0::Register;
sys_coproc_write_raw!(u64, "DBGDTR_EL0", "x");
}
pub const DBGDTR_EL0: Reg = Reg {};