summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-03-15 18:49:18 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-31 20:21:34 -0400
commitdd88aed5cc3088285c5d0b900aebf705f52178c5 (patch)
tree371ffb74c97305be99fe312b45e30793dab36926 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent56df8c58088b5c8b4a09ce6f5e195614251bf8d0 (diff)
gpu: nvgpu: Split out pramin code
Split out the pramin interface code in preparation for splitting out the mem_desc code. JIRA NVGPU-12 Change-Id: I3f03447ea213cc15669b0934fa706e7cb22599b7 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1323323 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 88acc3ec..451e32ca 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -40,6 +40,7 @@ struct dbg_profiler_object_data;
40 40
41#include "../../../arch/arm/mach-tegra/iomap.h" 41#include "../../../arch/arm/mach-tegra/iomap.h"
42 42
43#include <nvgpu/pramin.h>
43#include <nvgpu/acr/nvgpu_acr.h> 44#include <nvgpu/acr/nvgpu_acr.h>
44 45
45#include "as_gk20a.h" 46#include "as_gk20a.h"
@@ -70,6 +71,8 @@ struct dbg_profiler_object_data;
70 x = val 71 x = val
71#endif 72#endif
72 73
74struct page_alloc_chunk;
75
73/* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds. 76/* PTIMER_REF_FREQ_HZ corresponds to a period of 32 nanoseconds.
74 32 ns is the resolution of ptimer. */ 77 32 ns is the resolution of ptimer. */
75#define PTIMER_REF_FREQ_HZ 31250000 78#define PTIMER_REF_FREQ_HZ 31250000
@@ -648,6 +651,13 @@ struct gpu_ops {
648 bool (*mmu_fault_pending)(struct gk20a *g); 651 bool (*mmu_fault_pending)(struct gk20a *g);
649 } mm; 652 } mm;
650 struct { 653 struct {
654 u32 (*enter)(struct gk20a *g, struct mem_desc *mem,
655 struct page_alloc_chunk *chunk, u32 w);
656 void (*exit)(struct gk20a *g, struct mem_desc *mem,
657 struct page_alloc_chunk *chunk);
658 u32 (*data032_r)(u32 i);
659 } pramin;
660 struct {
651 int (*init_therm_setup_hw)(struct gk20a *g); 661 int (*init_therm_setup_hw)(struct gk20a *g);
652 int (*elcg_init_idle_filters)(struct gk20a *g); 662 int (*elcg_init_idle_filters)(struct gk20a *g);
653 void (*therm_debugfs_init)(struct gk20a *g); 663 void (*therm_debugfs_init)(struct gk20a *g);