diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/regops_gk20a.h | 11 |
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 | ||
29 | int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s, | 28 | int 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 | ||
36 | static inline bool reg_op_is_gr_ctx(u8 type) | 35 | static inline bool reg_op_is_gr_ctx(u8 type) |
37 | { | 36 | { |
@@ -51,4 +50,4 @@ static inline bool reg_op_is_read(u8 op) | |||
51 | bool is_bar0_global_offset_whitelisted_gk20a(struct gk20a *g, u32 offset); | 50 | bool is_bar0_global_offset_whitelisted_gk20a(struct gk20a *g, u32 offset); |
52 | 51 | ||
53 | void gk20a_init_regops(struct gpu_ops *gops); | 52 | void gk20a_init_regops(struct gpu_ops *gops); |
54 | #endif /* __REGOPS_GK20A_H_ */ | 53 | #endif /* REGOPS_GK20A_H */ |