diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h index 1692bb54..479db499 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_mc_gk20a.h | |||
@@ -110,14 +110,6 @@ static inline u32 mc_intr_mask_0_pmu_enabled_f(void) | |||
110 | { | 110 | { |
111 | return 0x1000000; | 111 | return 0x1000000; |
112 | } | 112 | } |
113 | static inline u32 mc_intr_mask_1_r(void) | ||
114 | { | ||
115 | return 0x00000644; | ||
116 | } | ||
117 | static inline u32 mc_intr_mask_1_pmu_enabled_f(void) | ||
118 | { | ||
119 | return 0x1000000; | ||
120 | } | ||
121 | static inline u32 mc_intr_en_0_r(void) | 113 | static inline u32 mc_intr_en_0_r(void) |
122 | { | 114 | { |
123 | return 0x00000140; | 115 | return 0x00000140; |
@@ -130,6 +122,30 @@ static inline u32 mc_intr_en_0_inta_hardware_f(void) | |||
130 | { | 122 | { |
131 | return 0x1; | 123 | return 0x1; |
132 | } | 124 | } |
125 | static inline u32 mc_intr_mask_1_r(void) | ||
126 | { | ||
127 | return 0x00000644; | ||
128 | } | ||
129 | static inline u32 mc_intr_mask_1_pmu_s(void) | ||
130 | { | ||
131 | return 1; | ||
132 | } | ||
133 | static inline u32 mc_intr_mask_1_pmu_f(u32 v) | ||
134 | { | ||
135 | return (v & 0x1) << 24; | ||
136 | } | ||
137 | static inline u32 mc_intr_mask_1_pmu_m(void) | ||
138 | { | ||
139 | return 0x1 << 24; | ||
140 | } | ||
141 | static inline u32 mc_intr_mask_1_pmu_v(u32 r) | ||
142 | { | ||
143 | return (r >> 24) & 0x1; | ||
144 | } | ||
145 | static inline u32 mc_intr_mask_1_pmu_enabled_f(void) | ||
146 | { | ||
147 | return 0x1000000; | ||
148 | } | ||
133 | static inline u32 mc_intr_en_1_r(void) | 149 | static inline u32 mc_intr_en_1_r(void) |
134 | { | 150 | { |
135 | return 0x00000144; | 151 | return 0x00000144; |