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