diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 0ef63d18..51207552 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <nvgpu/cond.h> | 30 | #include <nvgpu/cond.h> |
31 | #include <nvgpu/atomic.h> | 31 | #include <nvgpu/atomic.h> |
32 | #include <nvgpu/nvgpu_mem.h> | 32 | #include <nvgpu/nvgpu_mem.h> |
33 | 33 | #include <nvgpu/allocator.h> | |
34 | 34 | ||
35 | struct gk20a; | 35 | struct gk20a; |
36 | struct dbg_session_gk20a; | 36 | struct dbg_session_gk20a; |
@@ -109,6 +109,22 @@ struct notification { | |||
109 | u16 status; | 109 | u16 status; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | struct priv_cmd_queue { | ||
113 | struct nvgpu_mem mem; | ||
114 | u32 size; /* num of entries in words */ | ||
115 | u32 put; /* put for priv cmd queue */ | ||
116 | u32 get; /* get for priv cmd queue */ | ||
117 | }; | ||
118 | |||
119 | struct priv_cmd_entry { | ||
120 | bool valid; | ||
121 | struct nvgpu_mem *mem; | ||
122 | u32 off; /* offset in mem, in u32 entries */ | ||
123 | u64 gva; | ||
124 | u32 get; /* start of entry in queue */ | ||
125 | u32 size; /* in words */ | ||
126 | }; | ||
127 | |||
112 | struct channel_gk20a_job { | 128 | struct channel_gk20a_job { |
113 | struct nvgpu_mapped_buf **mapped_buffers; | 129 | struct nvgpu_mapped_buf **mapped_buffers; |
114 | int num_mapped_buffers; | 130 | int num_mapped_buffers; |