From ca9b1d48fe0ed9def257f3e9c06a9d2561da58dc Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 3 Apr 2022 10:34:00 -0400 Subject: [PATCH] asahi: Decode resource allocation requests We already know much of this structure, let's pretty print to simplify our traces. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/io.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/asahi/lib/io.h b/src/asahi/lib/io.h index 8a4d058..6577559 100644 --- a/src/asahi/lib/io.h +++ b/src/asahi/lib/io.h @@ -187,6 +187,18 @@ agx_memory_type_name(uint32_t type) } } +struct agx_allocate_resource_req { + uint32_t unk0[5]; + uint32_t mode; + uint32_t unk6[6]; + uint64_t cpu_fixed; + uint64_t cpu_fixed_2; + uint32_t size; + uint32_t unk17[3]; + uint32_t flags; + uint32_t unk21[3]; +} __attribute__((packed)); + struct agx_allocate_resource_resp { /* Returned GPU virtual address */ uint64_t gpu_va; -- 2.7.4