diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h | 96 |
1 files changed, 46 insertions, 50 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h index e2a4f2f2..747566f0 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h | |||
@@ -94,10 +94,6 @@ static inline u32 ctxsw_prog_main_image_pm_mode_m(void) | |||
94 | { | 94 | { |
95 | return 0x7 << 0; | 95 | return 0x7 << 0; |
96 | } | 96 | } |
97 | static inline u32 ctxsw_prog_main_image_pm_mode_v(u32 r) | ||
98 | { | ||
99 | return (r >> 0) & 0x7; | ||
100 | } | ||
101 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) | 97 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) |
102 | { | 98 | { |
103 | return 0x0; | 99 | return 0x0; |
@@ -106,18 +102,14 @@ static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void) | |||
106 | { | 102 | { |
107 | return 0x7 << 3; | 103 | return 0x7 << 3; |
108 | } | 104 | } |
109 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_v(u32 r) | 105 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) |
110 | { | 106 | { |
111 | return (r >> 3) & 0x7; | 107 | return 0x8; |
112 | } | 108 | } |
113 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) | 109 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) |
114 | { | 110 | { |
115 | return 0x0; | 111 | return 0x0; |
116 | } | 112 | } |
117 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) | ||
118 | { | ||
119 | return 0x8; | ||
120 | } | ||
121 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) | 113 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) |
122 | { | 114 | { |
123 | return 0x0000002c; | 115 | return 0x0000002c; |
@@ -138,46 +130,6 @@ static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void) | |||
138 | { | 130 | { |
139 | return 0x600dc0de; | 131 | return 0x600dc0de; |
140 | } | 132 | } |
141 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) | ||
142 | { | ||
143 | return 0x000000a0; | ||
144 | } | ||
145 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void) | ||
146 | { | ||
147 | return 0x0; | ||
148 | } | ||
149 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_none_f(void) | ||
150 | { | ||
151 | return 0x1; | ||
152 | } | ||
153 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) | ||
154 | { | ||
155 | return 0x2; | ||
156 | } | ||
157 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) | ||
158 | { | ||
159 | return 0x000000a4; | ||
160 | } | ||
161 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) | ||
162 | { | ||
163 | return 0x000000a8; | ||
164 | } | ||
165 | static inline u32 ctxsw_prog_main_image_misc_options_o(void) | ||
166 | { | ||
167 | return 0x0000003c; | ||
168 | } | ||
169 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) | ||
170 | { | ||
171 | return 0x1 << 3; | ||
172 | } | ||
173 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) | ||
174 | { | ||
175 | return 0x0; | ||
176 | } | ||
177 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_enabled_f(void) | ||
178 | { | ||
179 | return 0x8; | ||
180 | } | ||
181 | static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) | 133 | static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) |
182 | { | 134 | { |
183 | return 0x0000000c; | 135 | return 0x0000000c; |
@@ -242,4 +194,48 @@ static inline u32 ctxsw_prog_extended_num_smpc_quadrants_v(void) | |||
242 | { | 194 | { |
243 | return 0x00000004; | 195 | return 0x00000004; |
244 | } | 196 | } |
197 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) | ||
198 | { | ||
199 | return 0x000000a0; | ||
200 | } | ||
201 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void) | ||
202 | { | ||
203 | return 2; | ||
204 | } | ||
205 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v) | ||
206 | { | ||
207 | return (v & 0x3) << 0; | ||
208 | } | ||
209 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void) | ||
210 | { | ||
211 | return 0x3 << 0; | ||
212 | } | ||
213 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r) | ||
214 | { | ||
215 | return (r >> 0) & 0x3; | ||
216 | } | ||
217 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) | ||
218 | { | ||
219 | return 0x2; | ||
220 | } | ||
221 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) | ||
222 | { | ||
223 | return 0x000000a4; | ||
224 | } | ||
225 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) | ||
226 | { | ||
227 | return 0x000000a8; | ||
228 | } | ||
229 | static inline u32 ctxsw_prog_main_image_misc_options_o(void) | ||
230 | { | ||
231 | return 0x0000003c; | ||
232 | } | ||
233 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) | ||
234 | { | ||
235 | return 0x1 << 3; | ||
236 | } | ||
237 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) | ||
238 | { | ||
239 | return 0x0; | ||
240 | } | ||
245 | #endif | 241 | #endif |