summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/regops_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2014-09-29 06:16:15 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:33 -0400
commit719923ad9fa7c6b2ca68a25d1ce4518aab844bc2 (patch)
treebcb3dfbbd2968bf4b863f8990c11f05bc61ed6df /drivers/gpu/nvgpu/gk20a/regops_gk20a.h
parent83bf2aa83d922080884a9fe547b656e24495e16e (diff)
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 <kholtta@nvidia.com> Reviewed-on: http://git-master/r/542620 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/regops_gk20a.h11
1 files changed, 5 insertions, 6 deletions
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 @@
1/* 1/*
2 *
3 * Tegra GK20A GPU Debugger Driver Register Ops 2 * Tegra GK20A GPU Debugger Driver Register Ops
4 * 3 *
5 * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
@@ -16,8 +15,8 @@
16 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */ 17 */
19#ifndef __REGOPS_GK20A_H_ 18#ifndef REGOPS_GK20A_H
20#define __REGOPS_GK20A_H_ 19#define REGOPS_GK20A_H
21 20
22#include <linux/nvhost_dbg_gpu_ioctl.h> 21#include <linux/nvhost_dbg_gpu_ioctl.h>
23 22
@@ -27,11 +26,11 @@ struct regop_offset_range {
27}; 26};
28 27
29int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s, 28int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s,
30 struct nvhost_dbg_gpu_reg_op *ops, 29 struct nvgpu_dbg_gpu_reg_op *ops,
31 u64 num_ops); 30 u64 num_ops);
32 31
33/* turn seriously unwieldy names -> something shorter */ 32/* turn seriously unwieldy names -> something shorter */
34#define REGOP(x) NVHOST_DBG_GPU_REG_OP_##x 33#define REGOP(x) NVGPU_DBG_GPU_REG_OP_##x
35 34
36static inline bool reg_op_is_gr_ctx(u8 type) 35static inline bool reg_op_is_gr_ctx(u8 type)
37{ 36{
@@ -51,4 +50,4 @@ static inline bool reg_op_is_read(u8 op)
51bool is_bar0_global_offset_whitelisted_gk20a(struct gk20a *g, u32 offset); 50bool is_bar0_global_offset_whitelisted_gk20a(struct gk20a *g, u32 offset);
52 51
53void gk20a_init_regops(struct gpu_ops *gops); 52void gk20a_init_regops(struct gpu_ops *gops);
54#endif /* __REGOPS_GK20A_H_ */ 53#endif /* REGOPS_GK20A_H */