Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0
2
3use crate::falcon::{FalconEngine, PFalcon2Base, PFalconBase};
4use crate::regs::macros::RegisterBase;
5
6/// Type specifying the `Sec2` falcon engine. Cannot be instantiated.
7pub(crate) struct Sec2(());
8
9impl RegisterBase<PFalconBase> for Sec2 {
10 const BASE: usize = 0x00840000;
11}
12
13impl RegisterBase<PFalcon2Base> for Sec2 {
14 const BASE: usize = 0x00841000;
15}
16
17impl FalconEngine for Sec2 {
18 const ID: Self = Sec2(());
19}