linux/drivers/gpu/drm/lima/lima_dump.h

/* SPDX-License-Identifier: GPL-2.0 OR MIT */
/* Copyright 2020 Qiang Yu <[email protected]> */

#ifndef __LIMA_DUMP_H__
#define __LIMA_DUMP_H__

#include <linux/types.h>

/**
 * dump file format for all the information to start a lima task
 *
 * top level format
 * | magic code "LIMA" | format version | num tasks | data size |
 * | reserved | reserved | reserved | reserved |
 * | task 1 ID | task 1 size | num chunks | reserved | task 1 data |
 * | task 2 ID | task 2 size | num chunks | reserved | task 2 data |
 * ...
 *
 * task data format
 * | chunk 1 ID | chunk 1 size | reserved | reserved | chunk 1 data |
 * | chunk 2 ID | chunk 2 size | reserved | reserved | chunk 2 data |
 * ...
 *
 */

#define LIMA_DUMP_MAJOR
#define LIMA_DUMP_MINOR

#define LIMA_DUMP_MAGIC

struct lima_dump_head {};

#define LIMA_DUMP_TASK_GP
#define LIMA_DUMP_TASK_PP
#define LIMA_DUMP_TASK_NUM

struct lima_dump_task {};

#define LIMA_DUMP_CHUNK_FRAME
#define LIMA_DUMP_CHUNK_BUFFER
#define LIMA_DUMP_CHUNK_PROCESS_NAME
#define LIMA_DUMP_CHUNK_PROCESS_ID
#define LIMA_DUMP_CHUNK_NUM

struct lima_dump_chunk {};

struct lima_dump_chunk_buffer {};

struct lima_dump_chunk_pid {};

#endif