xref: /linux/drivers/gpu/nova-core/gsp.rs (revision 7c01dc25f5c828401a5807307c4f7dda6555469f)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 mod boot;
4 
5 use kernel::prelude::*;
6 
7 mod fw;
8 
9 pub(crate) use fw::{
10     GspFwWprMeta,
11     LibosParams, //
12 };
13 
14 pub(crate) const GSP_PAGE_SHIFT: usize = 12;
15 pub(crate) const GSP_PAGE_SIZE: usize = 1 << GSP_PAGE_SHIFT;
16 
17 /// GSP runtime data.
18 ///
19 /// This is an empty pinned placeholder for now.
20 #[pin_data]
21 pub(crate) struct Gsp {}
22 
23 impl Gsp {
24     pub(crate) fn new() -> impl PinInit<Self> {
25         pin_init!(Self {})
26     }
27 }
28