Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/drivers/gpu/nova-core/falcon/sec2.rs
50850 views
1
// SPDX-License-Identifier: GPL-2.0
2
3
use crate::{
4
falcon::{
5
FalconEngine,
6
PFalcon2Base,
7
PFalconBase, //
8
},
9
regs::macros::RegisterBase,
10
};
11
12
/// Type specifying the `Sec2` falcon engine. Cannot be instantiated.
13
pub(crate) struct Sec2(());
14
15
impl RegisterBase<PFalconBase> for Sec2 {
16
const BASE: usize = 0x00840000;
17
}
18
19
impl RegisterBase<PFalcon2Base> for Sec2 {
20
const BASE: usize = 0x00841000;
21
}
22
23
impl FalconEngine for Sec2 {
24
const ID: Self = Sec2(());
25
}
26
27