diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index a1700ebf..7c8b4eae 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -35,6 +35,9 @@ struct dbg_profiler_object_data; | |||
35 | #include <linux/irqreturn.h> | 35 | #include <linux/irqreturn.h> |
36 | #include <linux/version.h> | 36 | #include <linux/version.h> |
37 | #include <linux/cdev.h> | 37 | #include <linux/cdev.h> |
38 | #ifdef CONFIG_DEBUG_FS | ||
39 | #include <linux/debugfs.h> | ||
40 | #endif | ||
38 | 41 | ||
39 | #include "../../../arch/arm/mach-tegra/iomap.h" | 42 | #include "../../../arch/arm/mach-tegra/iomap.h" |
40 | 43 | ||
@@ -150,7 +153,9 @@ struct gpu_ops { | |||
150 | struct zbc_entry *s_val, | 153 | struct zbc_entry *s_val, |
151 | u32 index); | 154 | u32 index); |
152 | void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr); | 155 | void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr); |
156 | #ifdef CONFIG_DEBUG_FS | ||
153 | void (*sync_debugfs)(struct gk20a *g); | 157 | void (*sync_debugfs)(struct gk20a *g); |
158 | #endif | ||
154 | void (*init_fs_state)(struct gk20a *g); | 159 | void (*init_fs_state)(struct gk20a *g); |
155 | void (*isr)(struct gk20a *g); | 160 | void (*isr)(struct gk20a *g); |
156 | u32 (*cbc_fix_config)(struct gk20a *g, int base); | 161 | u32 (*cbc_fix_config)(struct gk20a *g, int base); |
@@ -669,7 +674,9 @@ struct gpu_ops { | |||
669 | struct { | 674 | struct { |
670 | int (*init_therm_setup_hw)(struct gk20a *g); | 675 | int (*init_therm_setup_hw)(struct gk20a *g); |
671 | int (*elcg_init_idle_filters)(struct gk20a *g); | 676 | int (*elcg_init_idle_filters)(struct gk20a *g); |
677 | #ifdef CONFIG_DEBUG_FS | ||
672 | void (*therm_debugfs_init)(struct gk20a *g); | 678 | void (*therm_debugfs_init)(struct gk20a *g); |
679 | #endif | ||
673 | int (*get_internal_sensor_curr_temp)(struct gk20a *g, u32 *temp_f24_8); | 680 | int (*get_internal_sensor_curr_temp)(struct gk20a *g, u32 *temp_f24_8); |
674 | void (*get_internal_sensor_limits)(s32 *max_24_8, | 681 | void (*get_internal_sensor_limits)(s32 *max_24_8, |
675 | s32 *min_24_8); | 682 | s32 *min_24_8); |
@@ -1140,7 +1147,9 @@ struct gk20a { | |||
1140 | u32 tpc_fs_mask_user; | 1147 | u32 tpc_fs_mask_user; |
1141 | 1148 | ||
1142 | struct nvgpu_bios bios; | 1149 | struct nvgpu_bios bios; |
1150 | #ifdef CONFIG_DEBUG_FS | ||
1143 | struct debugfs_blob_wrapper bios_blob; | 1151 | struct debugfs_blob_wrapper bios_blob; |
1152 | #endif | ||
1144 | 1153 | ||
1145 | struct nvgpu_clk_arb *clk_arb; | 1154 | struct nvgpu_clk_arb *clk_arb; |
1146 | 1155 | ||