summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h96
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}
97static inline u32 ctxsw_prog_main_image_pm_mode_v(u32 r)
98{
99 return (r >> 0) & 0x7;
100}
101static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) 97static 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}
109static inline u32 ctxsw_prog_main_image_pm_smpc_mode_v(u32 r) 105static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
110{ 106{
111 return (r >> 3) & 0x7; 107 return 0x8;
112} 108}
113static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) 109static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
114{ 110{
115 return 0x0; 111 return 0x0;
116} 112}
117static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
118{
119 return 0x8;
120}
121static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) 113static 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}
141static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
142{
143 return 0x000000a0;
144}
145static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
146{
147 return 0x0;
148}
149static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_none_f(void)
150{
151 return 0x1;
152}
153static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
154{
155 return 0x2;
156}
157static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
158{
159 return 0x000000a4;
160}
161static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
162{
163 return 0x000000a8;
164}
165static inline u32 ctxsw_prog_main_image_misc_options_o(void)
166{
167 return 0x0000003c;
168}
169static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
170{
171 return 0x1 << 3;
172}
173static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
174{
175 return 0x0;
176}
177static inline u32 ctxsw_prog_main_image_misc_options_verif_features_enabled_f(void)
178{
179 return 0x8;
180}
181static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) 133static 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}
197static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
198{
199 return 0x000000a0;
200}
201static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
202{
203 return 2;
204}
205static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
206{
207 return (v & 0x3) << 0;
208}
209static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
210{
211 return 0x3 << 0;
212}
213static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
214{
215 return (r >> 0) & 0x3;
216}
217static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
218{
219 return 0x2;
220}
221static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
222{
223 return 0x000000a4;
224}
225static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
226{
227 return 0x000000a8;
228}
229static inline u32 ctxsw_prog_main_image_misc_options_o(void)
230{
231 return 0x0000003c;
232}
233static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
234{
235 return 0x1 << 3;
236}
237static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
238{
239 return 0x0;
240}
245#endif 241#endif