1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2 /* Copyright 2020 Qiang Yu <yuq825@gmail.com> */
4 #ifndef __LIMA_DUMP_H__
5 #define __LIMA_DUMP_H__
7 #include <linux/types.h>
10 * dump file format for all the information to start a lima task
13 * | magic code "LIMA" | format version | num tasks | data size |
14 * | reserved | reserved | reserved | reserved |
15 * | task 1 ID | task 1 size | num chunks | reserved | task 1 data |
16 * | task 2 ID | task 2 size | num chunks | reserved | task 2 data |
20 * | chunk 1 ID | chunk 1 size | reserved | reserved | chunk 1 data |
21 * | chunk 2 ID | chunk 2 size | reserved | reserved | chunk 2 data |
26 #define LIMA_DUMP_MAJOR 1
27 #define LIMA_DUMP_MINOR 0
29 #define LIMA_DUMP_MAGIC 0x414d494c
31 struct lima_dump_head
{
40 #define LIMA_DUMP_TASK_GP 0
41 #define LIMA_DUMP_TASK_PP 1
42 #define LIMA_DUMP_TASK_NUM 2
44 struct lima_dump_task
{
51 #define LIMA_DUMP_CHUNK_FRAME 0
52 #define LIMA_DUMP_CHUNK_BUFFER 1
53 #define LIMA_DUMP_CHUNK_PROCESS_NAME 2
54 #define LIMA_DUMP_CHUNK_PROCESS_ID 3
55 #define LIMA_DUMP_CHUNK_NUM 4
57 struct lima_dump_chunk
{
63 struct lima_dump_chunk_buffer
{
70 struct lima_dump_chunk_pid
{