]> Gentwo Git Trees - linux/.git/commit
gpu: nova-core: bitfield: Move bitfield-specific code from register! into new macro
authorJoel Fernandes <joelagnelf@nvidia.com>
Thu, 16 Oct 2025 15:13:21 +0000 (11:13 -0400)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 21 Oct 2025 13:38:57 +0000 (22:38 +0900)
commit71ea85be25b4f54a53ec03d5deaed52f5ee65da8
tree6203cd9a2153ffc4bc1ec75870545b8dee5ef058
parent3f674dc4ef1b3783f9d8dae33b46bf50eaac7c79
gpu: nova-core: bitfield: Move bitfield-specific code from register! into new macro

Move the bitfield-specific code from the register macro into a new macro
called bitfield. This will be used to define structs with bitfields,
similar to C language.

Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Edwin Peer <epeer@nvidia.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251016151323.1201196-3-joelagnelf@nvidia.com>
drivers/gpu/nova-core/bitfield.rs [new file with mode: 0644]
drivers/gpu/nova-core/nova_core.rs
drivers/gpu/nova-core/regs/macros.rs