File: sec2.rs

package info (click to toggle)
linux 6.19.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,759,932 kB
  • sloc: ansic: 27,010,047; asm: 273,426; sh: 151,347; python: 81,280; makefile: 58,564; perl: 34,311; xml: 21,064; cpp: 5,986; yacc: 4,841; lex: 2,901; awk: 1,707; sed: 30; ruby: 25
file content (25 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
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
// SPDX-License-Identifier: GPL-2.0

use crate::{
    falcon::{
        FalconEngine,
        PFalcon2Base,
        PFalconBase, //
    },
    regs::macros::RegisterBase,
};

/// Type specifying the `Sec2` falcon engine. Cannot be instantiated.
pub(crate) struct Sec2(());

impl RegisterBase<PFalconBase> for Sec2 {
    const BASE: usize = 0x00840000;
}

impl RegisterBase<PFalcon2Base> for Sec2 {
    const BASE: usize = 0x00841000;
}

impl FalconEngine for Sec2 {
    const ID: Self = Sec2(());
}