summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-06-07 17:08:11 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:08 -0400
commit5f74aa99e068fd5a84798d4909b1ee04c8821731 (patch)
treefdd43c975a61232460df7d2952003c9993ce3d0c /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parent0e4768f1e653cb3a134e0b226f655c08a40d63e4 (diff)
gpu: nvgpu: export APIs to allocate/destroy context buffers
Export below APIs in gr_gk20a.h header gk20a_gr_alloc_ctx_buffer() gk20a_gr_destroy_ctx_buffer() Jira NVGPUT-27 Change-Id: Ia181a3f464ffbc9abe12963dd709cebee9e7dbc9 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1743364 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index d25c845c..01c7f43d 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -843,4 +843,9 @@ int gr_gk20a_create_priv_addr_table(struct gk20a *g,
843void gr_gk20a_split_fbpa_broadcast_addr(struct gk20a *g, u32 addr, 843void gr_gk20a_split_fbpa_broadcast_addr(struct gk20a *g, u32 addr,
844 u32 num_fbpas, 844 u32 num_fbpas,
845 u32 *priv_addr_table, u32 *t); 845 u32 *priv_addr_table, u32 *t);
846
847void gk20a_gr_destroy_ctx_buffer(struct gk20a *g,
848 struct gr_ctx_buffer_desc *desc);
849int gk20a_gr_alloc_ctx_buffer(struct gk20a *g,
850 struct gr_ctx_buffer_desc *desc, size_t size);
846#endif /*__GR_GK20A_H__*/ 851#endif /*__GR_GK20A_H__*/