mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 01:52:32 -04:00
As per [1], we need one "use" item per line, in order to reduce merge conflicts. Furthermore, we need a trailing ", //" in order to tell rustfmt(1) to leave it alone. This does that for the entire nova-core driver. [1] https://docs.kernel.org/rust/coding-guidelines.html#imports Acked-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: John Hubbard <jhubbard@nvidia.com> [acourbot@nvidia.com: remove imports already in prelude as pointed out by Danilo.] [acourbot@nvidia.com: remove a few unneeded trailing `//`.] Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Message-ID: <20251107021006.434109-1-jhubbard@nvidia.com>
26 lines
499 B
Rust
26 lines
499 B
Rust
// 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(());
|
|
}
|