summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nvgpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r--include/uapi/linux/nvgpu.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index b1c602db..b4c7e829 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -917,11 +917,28 @@ struct nvgpu_dbg_gpu_suspend_resume_contexts_args {
917 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 18, struct nvgpu_dbg_gpu_suspend_resume_contexts_args) 917 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 18, struct nvgpu_dbg_gpu_suspend_resume_contexts_args)
918 918
919 919
920#define NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY_CMD_READ 1
921#define NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY_CMD_WRITE 2
922
923struct nvgpu_dbg_gpu_access_fb_memory_args {
924 __u32 cmd; /* in: either read or write */
925
926 __s32 dmabuf_fd; /* in: dmabuf fd of the buffer in FB */
927 __u64 offset; /* in: offset within buffer in FB, should be 4B aligned */
928
929 __u64 buffer; /* in/out: temp buffer to read/write from */
930 __u64 size; /* in: size of the buffer i.e. size of read/write in bytes, should be 4B aligned */
931};
932
933#define NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY \
934 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 19, struct nvgpu_dbg_gpu_access_fb_memory_args)
935
936
920#define NVGPU_DBG_GPU_IOCTL_LAST \ 937#define NVGPU_DBG_GPU_IOCTL_LAST \
921 _IOC_NR(NVGPU_DBG_GPU_IOCTL_SUSPEND_RESUME_CONTEXTS) 938 _IOC_NR(NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY)
922 939
923#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ 940#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
924 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) 941 sizeof(struct nvgpu_dbg_gpu_access_fb_memory_args)
925 942
926/* 943/*
927 * /dev/nvhost-gpu device 944 * /dev/nvhost-gpu device