]> git.ipfire.org Git - thirdparty/linux.git/commit
gpu: nova-core: expose the offset of each register as a type constant
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:52 +0000 (22:23 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 16:12:30 +0000 (18:12 +0200)
commitcdfe233ee6cde6b82f0527fe7e0e599d4118b336
treeb2f84a2ab09b272f145bdfa286106d6155981df3
parent8dd1433d905051f2d2e5ad8864da2de915a2f11f
gpu: nova-core: expose the offset of each register as a type constant

Although we want to access registers using the provided methods, it is
sometimes needed to use their raw offset, for instance when working with
a register array.

Expose the offset of each register using a type constant to avoid
resorting to hardcoded values.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-8-ecf41ef99252@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/regs/macros.rs