diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-08-27 07:17:05 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-31 00:42:57 -0400 |
commit | 16ef96d4de646a97cee250b1e178f15d5e0909c3 (patch) | |
tree | 6ed5a672e22eeaea2ca2f234df751a1406c66e86 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 5a140928c2397be4780367d2a3b11de2c5d17446 (diff) |
gpu: nvgpu: move priv cmd definitions to channel
struct priv_cmd_queue and struct priv_cmd_entry are related to the list
of jobs in a channel, so move their definitions from the mm header to
the channel header.
Jira NVGPU-967
Change-Id: Ib0cf3fd52be463e720165a47e56b14724273473e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1807371
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 708dada3..76a16216 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -85,22 +85,6 @@ gk20a_buffer_state_from_list(struct nvgpu_list_node *node) | |||
85 | ((uintptr_t)node - offsetof(struct gk20a_buffer_state, list)); | 85 | ((uintptr_t)node - offsetof(struct gk20a_buffer_state, list)); |
86 | }; | 86 | }; |
87 | 87 | ||
88 | struct priv_cmd_queue { | ||
89 | struct nvgpu_mem mem; | ||
90 | u32 size; /* num of entries in words */ | ||
91 | u32 put; /* put for priv cmd queue */ | ||
92 | u32 get; /* get for priv cmd queue */ | ||
93 | }; | ||
94 | |||
95 | struct priv_cmd_entry { | ||
96 | bool valid; | ||
97 | struct nvgpu_mem *mem; | ||
98 | u32 off; /* offset in mem, in u32 entries */ | ||
99 | u64 gva; | ||
100 | u32 get; /* start of entry in queue */ | ||
101 | u32 size; /* in words */ | ||
102 | }; | ||
103 | |||
104 | struct gk20a; | 88 | struct gk20a; |
105 | struct channel_gk20a; | 89 | struct channel_gk20a; |
106 | 90 | ||