File Index
Files and directories
Sign in
FILE

sec2.rs

File preview with syntax highlighting.

linux-6.19.14/drivers/gpu/nova-core/falcon/sec2.rs RUST
 1// SPDX-License-Identifier: GPL-2.0
 2
 3use 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.
13pub(crate) struct Sec2(());
14
15impl RegisterBase<PFalconBase> for Sec2 {
16    const BASE: usize = 0x00840000;
17}
18
19impl RegisterBase<PFalcon2Base> for Sec2 {
20    const BASE: usize = 0x00841000;
21}
22
23impl FalconEngine for Sec2 {
24    const ID: Self = Sec2(());
25}
~/ Read-only file preview.