mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 02:40:46 +02:00
amd/registers: fix the kernel header parser with latest headers
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10261>
This commit is contained in:
parent
418da19f91
commit
a142925b7a
1 changed files with 3 additions and 2 deletions
|
|
@ -51,11 +51,12 @@ gfx_versions = {
|
|||
}
|
||||
|
||||
# match: static const struct IP_BASE GC_BASE ={ { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0 } },
|
||||
re_base = re.compile(r'^static const struct IP_BASE GC_BASE\s*=\s*{ { { { (\w+), (\w+), (\w+), (\w+), (\w+) } },\n')
|
||||
re_base = re.compile(r'^static const struct IP_BASE.*GC_BASE\s*=\s*{ { { { (\w+), (\w+), (\w+), (\w+), (\w+).*} },\n')
|
||||
|
||||
# match: #define mmSDMA0_DEC_START 0x0000
|
||||
# match: #define ixSDMA0_DEC_START 0x0000
|
||||
re_offset = re.compile(r'^#define (?P<mm>[mi][mx])(?P<name>\w+)\s+(?P<value>\w+)\n')
|
||||
# match: #define regSDMA0_DEC_START 0x0000
|
||||
re_offset = re.compile(r'^#define (?P<mm>(mm|ix|reg))(?P<name>\w+)\s+(?P<value>\w+)\n')
|
||||
|
||||
# match: #define SDMA0_DEC_START__START__SHIFT 0x0
|
||||
re_shift = re.compile(r'^#define (?P<name>\w+)__(?P<field>\w+)__SHIFT\s+(?P<value>\w+)\n')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue