diff options
| author | Antonin Malzieu Ridolfi <dev@nanonej.com> | 2026-08-17 18:51:08 +0200 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-08-23 09:40:02 +0900 |
| commit | d53bc149eea6213e9c4a4604df5521db7b7296ca (patch) | |
| tree | 81a0b51f58190a45be4fbf519b554cfdf009fa2c /scripts/Makefile.thinlto | |
| parent | 6556f7556d622dbbc5c936df9d39c2f33600adfb (diff) | |
| download | linux-next-d53bc149eea6213e9c4a4604df5521db7b7296ca.tar.gz linux-next-d53bc149eea6213e9c4a4604df5521db7b7296ca.zip | |
gpu: nova-core: Extract PMC registers definitions
Move PMC register definitions (NV_PMC_BOOT_0, NV_PMC_BOOT_42) and
their associated implementations from the root regs.rs file into the
gpu module that own them, in the new gpu/regs.rs file.
This follows the same pattern established by previous commits for
GSP, PDISP, PFB, and PBUS registers: register definitions move to
the module that owns them, visibility changes to pub(super), and
cross-module access is provided via pub(crate) helper functions.
Since falcon.rs (outside the gpu module) also reads NV_PMC_BOOT_0 for
its raw value, a pub(crate) helper function boot_0_raw() is added in
gpu.rs to provide that access without exposing the register type
directly.
Suggested-by: Alexandre Courbot <acourbot@nvidia.com>
Suggested-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Antonin Malzieu Ridolfi <dev@nanonej.com>
Link: https://patch.msgid.link/20260817-b4-extract-pmc-registers-to-gpu-mod-v2-1-9dd1d599deb4@nanonej.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
