libnx/nx/include/switch/nvidia/gpu/cmd_list.h
2018-03-17 23:00:25 +01:00

17 lines
397 B
C

typedef struct NvGpu NvGpu;
typedef struct {
NvBuffer buffer;
size_t num_cmds;
size_t max_cmds;
NvGpu* parent;
} NvCmdList;
Result nvCmdListCreate(NvCmdList* c, NvGpu* parent, size_t max_cmds);
void nvCmdListClose(NvCmdList* c);
iova_t nvCmdListGetGpuAddr(NvCmdList* c);
u64 nvCmdListGetListSize(NvCmdList* c);
u32* nvCmdListInsert(NvCmdList* c, size_t num_cmds);