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/regops_gk20a.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.h b/drivers/gpu/nvgpu/gk20a/regops_gk20a.h index 808e8bbe..0c244f58 100644 --- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.h @@ -1,5 +1,4 @@ /* - * * Tegra GK20A GPU Debugger Driver Register Ops * * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. @@ -16,8 +15,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#ifndef __REGOPS_GK20A_H_ -#define __REGOPS_GK20A_H_ +#ifndef REGOPS_GK20A_H +#define REGOPS_GK20A_H #include @@ -27,11 +26,11 @@ struct regop_offset_range { }; int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s, - struct nvhost_dbg_gpu_reg_op *ops, + struct nvgpu_dbg_gpu_reg_op *ops, u64 num_ops); /* turn seriously unwieldy names -> something shorter */ -#define REGOP(x) NVHOST_DBG_GPU_REG_OP_##x +#define REGOP(x) NVGPU_DBG_GPU_REG_OP_##x static inline bool reg_op_is_gr_ctx(u8 type) { @@ -51,4 +50,4 @@ static inline bool reg_op_is_read(u8 op) bool is_bar0_global_offset_whitelisted_gk20a(struct gk20a *g, u32 offset); void gk20a_init_regops(struct gpu_ops *gops); -#endif /* __REGOPS_GK20A_H_ */ +#endif /* REGOPS_GK20A_H */ -- cgit v1.2.2