From 719923ad9fa7c6b2ca68a25d1ce4518aab844bc2 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Mon, 29 Sep 2014 13:16:15 +0300 Subject: gpu: nvgpu: rename gpu ioctls and structs to nvgpu To help remove the nvhost dependency from nvgpu, rename ioctl defines and structures used by nvgpu such that nvhost is replaced by nvgpu. Duplicate some structures as needed. Update header guards and such accordingly. Change-Id: Ifc3a867713072bae70256502735583ab38381877 Signed-off-by: Konsta Holtta Reviewed-on: http://git-master/r/542620 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index f60afd58..e9bf4505 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h @@ -15,8 +15,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#ifndef __GR_GK20A_H__ -#define __GR_GK20A_H__ +#ifndef GR_GK20A_H +#define GR_GK20A_H #include @@ -330,13 +330,13 @@ int gk20a_init_gr_channel(struct channel_gk20a *ch_gk20a); int gr_gk20a_init_ctx_vars(struct gk20a *g, struct gr_gk20a *gr); -struct nvhost_alloc_obj_ctx_args; -struct nvhost_free_obj_ctx_args; +struct nvgpu_alloc_obj_ctx_args; +struct nvgpu_free_obj_ctx_args; int gk20a_alloc_obj_ctx(struct channel_gk20a *c, - struct nvhost_alloc_obj_ctx_args *args); + struct nvgpu_alloc_obj_ctx_args *args); int gk20a_free_obj_ctx(struct channel_gk20a *c, - struct nvhost_free_obj_ctx_args *args); + struct nvgpu_free_obj_ctx_args *args); void gk20a_free_channel_ctx(struct channel_gk20a *c); int gk20a_gr_isr(struct gk20a *g); @@ -384,9 +384,9 @@ bool gk20a_gr_sm_debugger_attached(struct gk20a *g); int gk20a_gr_suspend(struct gk20a *g); -struct nvhost_dbg_gpu_reg_op; +struct nvgpu_dbg_gpu_reg_op; int gr_gk20a_exec_ctx_ops(struct channel_gk20a *ch, - struct nvhost_dbg_gpu_reg_op *ctx_ops, u32 num_ops, + struct nvgpu_dbg_gpu_reg_op *ctx_ops, u32 num_ops, u32 num_ctx_wr_ops, u32 num_ctx_rd_ops); int gr_gk20a_get_ctx_buffer_offsets(struct gk20a *g, u32 addr, @@ -424,4 +424,4 @@ int gr_gk20a_load_ctxsw_ucode(struct gk20a *g); void gr_gk20a_load_falcon_bind_instblk(struct gk20a *g); void gr_gk20a_free_tsg_gr_ctx(struct tsg_gk20a *c); -#endif /*__GR_GK20A_H__*/ +#endif /* GR_GK20A_H */ -- cgit v1.2.2