diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2026-03-25 11:46:14 +0900 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-03-26 15:08:27 +0900 |
| commit | b525d0c5e9ec4e51b54b8853047303957e8afbc4 (patch) | |
| tree | 8333300b5eec5706424424cc6f1d38d9ac00db76 /tools/perf/scripts/python | |
| parent | 442ba16a5a51368f5bafd011609f40782aec6d65 (diff) | |
gpu: nova-core: introduce `bounded_enum` macro
Introduce a powered-up version of our ad-hoc `impl_from_enum_to_u8`
macro that allows the definition of an enum type associated to a
`Bounded` of a given width, and provides the `From` and `TryFrom`
implementations required to use that enum as a register field member.
This allows us to generate the required conversion implementations for
using the kernel register macro and skip some tedious boilerplate.
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260325-b4-nova-register-v4-1-bdf172f0f6ca@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
