aarch64_cpu/registers/ich_ap0r2_el2.rs
1// SPDX-License-Identifier: Apache-2.0 OR MIT
2//
3// Copyright (c) 2024 by the author(s)
4//
5// Author(s):
6// - Sangwan Kwon <sangwan.kwon@samsung.com>
7
8//! Interrupt Controller Hyp Active Priorities Group 0 Registers - EL2
9//!
10//! Provides information about Group 0 virtual active priorities for EL2.
11
12use tock_registers::interfaces::{Readable, Writeable};
13
14pub struct Reg;
15
16impl Readable for Reg {
17 type T = u64;
18 type R = ();
19
20 sys_coproc_read_raw!(u64, "ICH_AP0R2_EL2", "x");
21}
22
23impl Writeable for Reg {
24 type T = u64;
25 type R = ();
26
27 sys_coproc_write_raw!(u64, "ICH_AP0R2_EL2", "x");
28}
29
30pub const ICH_AP0R2_EL2: Reg = Reg {};