]> git.ipfire.org Git - thirdparty/linux.git/commit
gpu: nova-core: allow register aliases
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:53 +0000 (22:23 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 16:12:30 +0000 (18:12 +0200)
commite66aaaffe017bffedc98abfcc12afed6214173bc
tree71f2d01f38ba56f6d1711885dbad3b4e283a101a
parentcdfe233ee6cde6b82f0527fe7e0e599d4118b336
gpu: nova-core: allow register aliases

Some registers (notably scratch registers) don't have a definitive
purpose, but need to be interpreted differently depending on context.

Expand the register!() macro to support a syntax indicating that a
register type should be at the same offset as another one, but under a
different name, and with different fields and documentation.

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