diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/regops_gv11b.c | 941 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/regops_gv11b.h | 24 |
4 files changed, 969 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile index 4f7b5422..112abdf2 100644 --- a/drivers/gpu/nvgpu/Makefile +++ b/drivers/gpu/nvgpu/Makefile | |||
@@ -15,6 +15,7 @@ nvgpu-y += \ | |||
15 | $(nvgpu-t19x)/gv11b/gr_ctx_gv11b.o \ | 15 | $(nvgpu-t19x)/gv11b/gr_ctx_gv11b.o \ |
16 | $(nvgpu-t19x)/gv11b/pmu_gv11b.o \ | 16 | $(nvgpu-t19x)/gv11b/pmu_gv11b.o \ |
17 | $(nvgpu-t19x)/gv11b/therm_gv11b.o \ | 17 | $(nvgpu-t19x)/gv11b/therm_gv11b.o \ |
18 | $(nvgpu-t19x)/gv11b/subctx_gv11b.o | 18 | $(nvgpu-t19x)/gv11b/subctx_gv11b.o \ |
19 | $(nvgpu-t19x)/gv11b/regops_gv11b.o | ||
19 | 20 | ||
20 | nvgpu-$(CONFIG_TEGRA_GK20A) += $(nvgpu-t19x)/gv11b/platform_gv11b_tegra.o | 21 | nvgpu-$(CONFIG_TEGRA_GK20A) += $(nvgpu-t19x)/gv11b/platform_gv11b_tegra.o |
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 07f386e8..8b10245e 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "fb_gv11b.h" | 38 | #include "fb_gv11b.h" |
39 | #include "fifo_gv11b.h" | 39 | #include "fifo_gv11b.h" |
40 | #include "gv11b_gating_reglist.h" | 40 | #include "gv11b_gating_reglist.h" |
41 | #include "regops_gv11b.h" | ||
41 | 42 | ||
42 | #include <nvgpu/hw/gv11b/hw_proj_gv11b.h> | 43 | #include <nvgpu/hw/gv11b/hw_proj_gv11b.h> |
43 | 44 | ||
@@ -199,6 +200,7 @@ int gv11b_init_hal(struct gk20a *g) | |||
199 | gv11b_init_pmu_ops(gops); | 200 | gv11b_init_pmu_ops(gops); |
200 | gk20a_init_debug_ops(gops); | 201 | gk20a_init_debug_ops(gops); |
201 | gk20a_init_dbg_session_ops(gops); | 202 | gk20a_init_dbg_session_ops(gops); |
203 | gv11b_init_regops(gops); | ||
202 | gv11b_init_therm_ops(gops); | 204 | gv11b_init_therm_ops(gops); |
203 | gk20a_init_tsg_ops(gops); | 205 | gk20a_init_tsg_ops(gops); |
204 | gops->name = "gv11b"; | 206 | gops->name = "gv11b"; |
diff --git a/drivers/gpu/nvgpu/gv11b/regops_gv11b.c b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c new file mode 100644 index 00000000..8c5305b3 --- /dev/null +++ b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c | |||
@@ -0,0 +1,941 @@ | |||
1 | /* | ||
2 | * Tegra GV11b GPU Driver Register Ops | ||
3 | * | ||
4 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms and conditions of the GNU General Public License, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #include <linux/slab.h> | ||
20 | #include <linux/err.h> | ||
21 | #include <linux/bsearch.h> | ||
22 | #include <uapi/linux/nvgpu.h> | ||
23 | |||
24 | #include "gk20a/gk20a.h" | ||
25 | #include "gk20a/dbg_gpu_gk20a.h" | ||
26 | #include "gk20a/regops_gk20a.h" | ||
27 | #include "regops_gv11b.h" | ||
28 | |||
29 | static const struct regop_offset_range gv11b_global_whitelist_ranges[] = { | ||
30 | { 0x000004f0, 1}, | ||
31 | { 0x00001a00, 1}, | ||
32 | { 0x00009400, 1}, | ||
33 | { 0x00009410, 1}, | ||
34 | { 0x00009480, 1}, | ||
35 | { 0x00020200, 24}, | ||
36 | { 0x00021c04, 2}, | ||
37 | { 0x00021c14, 3}, | ||
38 | { 0x00021c24, 71}, | ||
39 | { 0x00021d44, 1}, | ||
40 | { 0x00021d4c, 1}, | ||
41 | { 0x00021d54, 1}, | ||
42 | { 0x00021d5c, 1}, | ||
43 | { 0x00021d68, 19}, | ||
44 | { 0x00021dbc, 16}, | ||
45 | { 0x00022430, 7}, | ||
46 | { 0x00022450, 1}, | ||
47 | { 0x0002245c, 2}, | ||
48 | { 0x00070000, 5}, | ||
49 | { 0x000840a8, 1}, | ||
50 | { 0x00084b5c, 1}, | ||
51 | { 0x000870a8, 1}, | ||
52 | { 0x000884e0, 1}, | ||
53 | { 0x000884f4, 1}, | ||
54 | { 0x0008e00c, 1}, | ||
55 | { 0x00100c18, 3}, | ||
56 | { 0x00100c84, 1}, | ||
57 | { 0x0010a0a8, 1}, | ||
58 | { 0x0010a4f0, 1}, | ||
59 | { 0x0013c808, 2}, | ||
60 | { 0x0013cc14, 1}, | ||
61 | { 0x0013ec18, 1}, | ||
62 | { 0x00140028, 1}, | ||
63 | { 0x00140280, 1}, | ||
64 | { 0x001402a0, 1}, | ||
65 | { 0x00140350, 1}, | ||
66 | { 0x00140480, 1}, | ||
67 | { 0x001404a0, 1}, | ||
68 | { 0x00140550, 1}, | ||
69 | { 0x00140680, 1}, | ||
70 | { 0x001406a0, 1}, | ||
71 | { 0x00140750, 1}, | ||
72 | { 0x00142028, 1}, | ||
73 | { 0x00142280, 1}, | ||
74 | { 0x001422a0, 1}, | ||
75 | { 0x00142350, 1}, | ||
76 | { 0x00142480, 1}, | ||
77 | { 0x001424a0, 1}, | ||
78 | { 0x00142550, 1}, | ||
79 | { 0x00142680, 1}, | ||
80 | { 0x001426a0, 1}, | ||
81 | { 0x00142750, 1}, | ||
82 | { 0x0017e028, 1}, | ||
83 | { 0x0017e280, 1}, | ||
84 | { 0x0017e294, 1}, | ||
85 | { 0x0017e29c, 2}, | ||
86 | { 0x0017e2ac, 1}, | ||
87 | { 0x0017e350, 1}, | ||
88 | { 0x0017e39c, 1}, | ||
89 | { 0x0017e480, 1}, | ||
90 | { 0x0017e4a0, 1}, | ||
91 | { 0x0017e550, 1}, | ||
92 | { 0x0017e680, 1}, | ||
93 | { 0x0017e6a0, 1}, | ||
94 | { 0x0017e750, 1}, | ||
95 | { 0x00180040, 41}, | ||
96 | { 0x001800ec, 1}, | ||
97 | { 0x001800f8, 4}, | ||
98 | { 0x0018010c, 1}, | ||
99 | { 0x00180240, 41}, | ||
100 | { 0x001802ec, 1}, | ||
101 | { 0x001802f8, 4}, | ||
102 | { 0x0018030c, 1}, | ||
103 | { 0x00180440, 41}, | ||
104 | { 0x001804ec, 1}, | ||
105 | { 0x001804f8, 4}, | ||
106 | { 0x0018050c, 1}, | ||
107 | { 0x00180640, 41}, | ||
108 | { 0x001806ec, 1}, | ||
109 | { 0x001806f8, 4}, | ||
110 | { 0x0018070c, 1}, | ||
111 | { 0x00180840, 41}, | ||
112 | { 0x001808ec, 1}, | ||
113 | { 0x001808f8, 4}, | ||
114 | { 0x0018090c, 1}, | ||
115 | { 0x00180a40, 41}, | ||
116 | { 0x00180aec, 1}, | ||
117 | { 0x00180af8, 4}, | ||
118 | { 0x00180b0c, 1}, | ||
119 | { 0x00180c40, 41}, | ||
120 | { 0x00180cec, 1}, | ||
121 | { 0x00180cf8, 4}, | ||
122 | { 0x00180d0c, 1}, | ||
123 | { 0x00180e40, 41}, | ||
124 | { 0x00180eec, 1}, | ||
125 | { 0x00180ef8, 4}, | ||
126 | { 0x00180f0c, 1}, | ||
127 | { 0x00181040, 41}, | ||
128 | { 0x001810ec, 1}, | ||
129 | { 0x001810f8, 4}, | ||
130 | { 0x0018110c, 1}, | ||
131 | { 0x00181240, 41}, | ||
132 | { 0x001812ec, 1}, | ||
133 | { 0x001812f8, 4}, | ||
134 | { 0x0018130c, 1}, | ||
135 | { 0x00181440, 41}, | ||
136 | { 0x001814ec, 1}, | ||
137 | { 0x001814f8, 4}, | ||
138 | { 0x0018150c, 1}, | ||
139 | { 0x00181640, 41}, | ||
140 | { 0x001816ec, 1}, | ||
141 | { 0x001816f8, 4}, | ||
142 | { 0x0018170c, 1}, | ||
143 | { 0x00181840, 41}, | ||
144 | { 0x001818ec, 1}, | ||
145 | { 0x001818f8, 4}, | ||
146 | { 0x0018190c, 1}, | ||
147 | { 0x00181a40, 41}, | ||
148 | { 0x00181aec, 1}, | ||
149 | { 0x00181af8, 4}, | ||
150 | { 0x00181b0c, 1}, | ||
151 | { 0x00181c40, 41}, | ||
152 | { 0x00181cec, 1}, | ||
153 | { 0x00181cf8, 4}, | ||
154 | { 0x00181d0c, 1}, | ||
155 | { 0x00181e40, 41}, | ||
156 | { 0x00181eec, 1}, | ||
157 | { 0x00181ef8, 4}, | ||
158 | { 0x00181f0c, 1}, | ||
159 | { 0x00182040, 41}, | ||
160 | { 0x001820ec, 1}, | ||
161 | { 0x001820f8, 4}, | ||
162 | { 0x0018210c, 1}, | ||
163 | { 0x00182240, 41}, | ||
164 | { 0x001822ec, 1}, | ||
165 | { 0x001822f8, 4}, | ||
166 | { 0x0018230c, 1}, | ||
167 | { 0x00182440, 41}, | ||
168 | { 0x001824ec, 1}, | ||
169 | { 0x001824f8, 4}, | ||
170 | { 0x0018250c, 1}, | ||
171 | { 0x00182640, 41}, | ||
172 | { 0x001826ec, 1}, | ||
173 | { 0x001826f8, 4}, | ||
174 | { 0x0018270c, 1}, | ||
175 | { 0x00182840, 41}, | ||
176 | { 0x001828ec, 1}, | ||
177 | { 0x001828f8, 4}, | ||
178 | { 0x0018290c, 1}, | ||
179 | { 0x00182a40, 41}, | ||
180 | { 0x00182aec, 1}, | ||
181 | { 0x00182af8, 4}, | ||
182 | { 0x00182b0c, 1}, | ||
183 | { 0x00182c40, 41}, | ||
184 | { 0x00182cec, 1}, | ||
185 | { 0x00182cf8, 4}, | ||
186 | { 0x00182d0c, 1}, | ||
187 | { 0x00182e40, 41}, | ||
188 | { 0x00182eec, 1}, | ||
189 | { 0x00182ef8, 4}, | ||
190 | { 0x00182f0c, 1}, | ||
191 | { 0x00183040, 41}, | ||
192 | { 0x001830ec, 1}, | ||
193 | { 0x001830f8, 4}, | ||
194 | { 0x0018310c, 1}, | ||
195 | { 0x00183240, 41}, | ||
196 | { 0x001832ec, 1}, | ||
197 | { 0x001832f8, 4}, | ||
198 | { 0x0018330c, 1}, | ||
199 | { 0x00183440, 41}, | ||
200 | { 0x001834ec, 1}, | ||
201 | { 0x001834f8, 4}, | ||
202 | { 0x0018350c, 1}, | ||
203 | { 0x00183640, 41}, | ||
204 | { 0x001836ec, 1}, | ||
205 | { 0x001836f8, 4}, | ||
206 | { 0x0018370c, 1}, | ||
207 | { 0x00183840, 41}, | ||
208 | { 0x001838ec, 1}, | ||
209 | { 0x001838f8, 4}, | ||
210 | { 0x0018390c, 1}, | ||
211 | { 0x00183a40, 41}, | ||
212 | { 0x00183aec, 1}, | ||
213 | { 0x00183af8, 4}, | ||
214 | { 0x00183b0c, 1}, | ||
215 | { 0x00183c40, 41}, | ||
216 | { 0x00183cec, 1}, | ||
217 | { 0x00183cf8, 4}, | ||
218 | { 0x00183d0c, 1}, | ||
219 | { 0x00183e40, 41}, | ||
220 | { 0x00183eec, 1}, | ||
221 | { 0x00183ef8, 4}, | ||
222 | { 0x00183f0c, 1}, | ||
223 | { 0x001c80a8, 1}, | ||
224 | { 0x001c9100, 1}, | ||
225 | { 0x001cc0a8, 1}, | ||
226 | { 0x001cd100, 1}, | ||
227 | { 0x001d00a8, 1}, | ||
228 | { 0x001d1100, 1}, | ||
229 | { 0x00200040, 41}, | ||
230 | { 0x002000ec, 1}, | ||
231 | { 0x002000f8, 4}, | ||
232 | { 0x0020010c, 1}, | ||
233 | { 0x00200240, 41}, | ||
234 | { 0x002002ec, 1}, | ||
235 | { 0x002002f8, 4}, | ||
236 | { 0x0020030c, 1}, | ||
237 | { 0x00200440, 41}, | ||
238 | { 0x002004ec, 1}, | ||
239 | { 0x002004f8, 4}, | ||
240 | { 0x0020050c, 1}, | ||
241 | { 0x00200640, 41}, | ||
242 | { 0x002006ec, 1}, | ||
243 | { 0x002006f8, 4}, | ||
244 | { 0x0020070c, 1}, | ||
245 | { 0x00200840, 41}, | ||
246 | { 0x002008ec, 1}, | ||
247 | { 0x002008f8, 4}, | ||
248 | { 0x0020090c, 1}, | ||
249 | { 0x00200a40, 41}, | ||
250 | { 0x00200aec, 1}, | ||
251 | { 0x00200af8, 4}, | ||
252 | { 0x00200b0c, 1}, | ||
253 | { 0x00200c40, 41}, | ||
254 | { 0x00200cec, 1}, | ||
255 | { 0x00200cf8, 4}, | ||
256 | { 0x00200d0c, 1}, | ||
257 | { 0x00200e40, 41}, | ||
258 | { 0x00200eec, 1}, | ||
259 | { 0x00200ef8, 4}, | ||
260 | { 0x00200f0c, 1}, | ||
261 | { 0x00201040, 41}, | ||
262 | { 0x002010ec, 1}, | ||
263 | { 0x002010f8, 4}, | ||
264 | { 0x0020110c, 1}, | ||
265 | { 0x00201240, 41}, | ||
266 | { 0x002012ec, 1}, | ||
267 | { 0x002012f8, 4}, | ||
268 | { 0x0020130c, 1}, | ||
269 | { 0x00201440, 41}, | ||
270 | { 0x002014ec, 1}, | ||
271 | { 0x002014f8, 4}, | ||
272 | { 0x0020150c, 1}, | ||
273 | { 0x00201640, 41}, | ||
274 | { 0x002016ec, 1}, | ||
275 | { 0x002016f8, 4}, | ||
276 | { 0x0020170c, 1}, | ||
277 | { 0x00201840, 41}, | ||
278 | { 0x002018ec, 1}, | ||
279 | { 0x002018f8, 4}, | ||
280 | { 0x0020190c, 1}, | ||
281 | { 0x00201a40, 41}, | ||
282 | { 0x00201aec, 1}, | ||
283 | { 0x00201af8, 4}, | ||
284 | { 0x00201b0c, 1}, | ||
285 | { 0x00201c40, 41}, | ||
286 | { 0x00201cec, 1}, | ||
287 | { 0x00201cf8, 4}, | ||
288 | { 0x00201d0c, 1}, | ||
289 | { 0x00201e40, 41}, | ||
290 | { 0x00201eec, 1}, | ||
291 | { 0x00201ef8, 4}, | ||
292 | { 0x00201f0c, 1}, | ||
293 | { 0x00202040, 41}, | ||
294 | { 0x002020ec, 1}, | ||
295 | { 0x002020f8, 4}, | ||
296 | { 0x0020210c, 1}, | ||
297 | { 0x00202240, 41}, | ||
298 | { 0x002022ec, 1}, | ||
299 | { 0x002022f8, 4}, | ||
300 | { 0x0020230c, 1}, | ||
301 | { 0x00202440, 41}, | ||
302 | { 0x002024ec, 1}, | ||
303 | { 0x002024f8, 4}, | ||
304 | { 0x0020250c, 1}, | ||
305 | { 0x00202640, 41}, | ||
306 | { 0x002026ec, 1}, | ||
307 | { 0x002026f8, 4}, | ||
308 | { 0x0020270c, 1}, | ||
309 | { 0x00202840, 41}, | ||
310 | { 0x002028ec, 1}, | ||
311 | { 0x002028f8, 4}, | ||
312 | { 0x0020290c, 1}, | ||
313 | { 0x00202a40, 41}, | ||
314 | { 0x00202aec, 1}, | ||
315 | { 0x00202af8, 4}, | ||
316 | { 0x00202b0c, 1}, | ||
317 | { 0x00202c40, 41}, | ||
318 | { 0x00202cec, 1}, | ||
319 | { 0x00202cf8, 4}, | ||
320 | { 0x00202d0c, 1}, | ||
321 | { 0x00202e40, 41}, | ||
322 | { 0x00202eec, 1}, | ||
323 | { 0x00202ef8, 4}, | ||
324 | { 0x00202f0c, 1}, | ||
325 | { 0x00203040, 41}, | ||
326 | { 0x002030ec, 1}, | ||
327 | { 0x002030f8, 4}, | ||
328 | { 0x0020310c, 1}, | ||
329 | { 0x00203240, 41}, | ||
330 | { 0x002032ec, 1}, | ||
331 | { 0x002032f8, 4}, | ||
332 | { 0x0020330c, 1}, | ||
333 | { 0x00203440, 41}, | ||
334 | { 0x002034ec, 1}, | ||
335 | { 0x002034f8, 4}, | ||
336 | { 0x0020350c, 1}, | ||
337 | { 0x00203640, 41}, | ||
338 | { 0x002036ec, 1}, | ||
339 | { 0x002036f8, 4}, | ||
340 | { 0x0020370c, 1}, | ||
341 | { 0x00203840, 41}, | ||
342 | { 0x002038ec, 1}, | ||
343 | { 0x002038f8, 4}, | ||
344 | { 0x0020390c, 1}, | ||
345 | { 0x00203a40, 41}, | ||
346 | { 0x00203aec, 1}, | ||
347 | { 0x00203af8, 4}, | ||
348 | { 0x00203b0c, 1}, | ||
349 | { 0x00203c40, 41}, | ||
350 | { 0x00203cec, 1}, | ||
351 | { 0x00203cf8, 4}, | ||
352 | { 0x00203d0c, 1}, | ||
353 | { 0x00203e40, 41}, | ||
354 | { 0x00203eec, 1}, | ||
355 | { 0x00203ef8, 4}, | ||
356 | { 0x00203f0c, 1}, | ||
357 | { 0x00240040, 41}, | ||
358 | { 0x002400ec, 1}, | ||
359 | { 0x002400f8, 4}, | ||
360 | { 0x0024010c, 1}, | ||
361 | { 0x00240240, 41}, | ||
362 | { 0x002402ec, 1}, | ||
363 | { 0x002402f8, 4}, | ||
364 | { 0x0024030c, 1}, | ||
365 | { 0x00240440, 41}, | ||
366 | { 0x002404ec, 1}, | ||
367 | { 0x002404f8, 4}, | ||
368 | { 0x0024050c, 1}, | ||
369 | { 0x00240640, 41}, | ||
370 | { 0x002406ec, 1}, | ||
371 | { 0x002406f8, 4}, | ||
372 | { 0x0024070c, 1}, | ||
373 | { 0x00240840, 41}, | ||
374 | { 0x002408ec, 1}, | ||
375 | { 0x002408f8, 4}, | ||
376 | { 0x0024090c, 1}, | ||
377 | { 0x00240a40, 41}, | ||
378 | { 0x00240aec, 1}, | ||
379 | { 0x00240af8, 4}, | ||
380 | { 0x00240b0c, 1}, | ||
381 | { 0x00240c40, 41}, | ||
382 | { 0x00240cec, 1}, | ||
383 | { 0x00240cf8, 4}, | ||
384 | { 0x00240d0c, 1}, | ||
385 | { 0x00240e40, 41}, | ||
386 | { 0x00240eec, 1}, | ||
387 | { 0x00240ef8, 4}, | ||
388 | { 0x00240f0c, 1}, | ||
389 | { 0x00241040, 41}, | ||
390 | { 0x002410ec, 1}, | ||
391 | { 0x002410f8, 4}, | ||
392 | { 0x0024110c, 1}, | ||
393 | { 0x00241240, 41}, | ||
394 | { 0x002412ec, 1}, | ||
395 | { 0x002412f8, 4}, | ||
396 | { 0x0024130c, 1}, | ||
397 | { 0x00241440, 41}, | ||
398 | { 0x002414ec, 1}, | ||
399 | { 0x002414f8, 4}, | ||
400 | { 0x0024150c, 1}, | ||
401 | { 0x00241640, 41}, | ||
402 | { 0x002416ec, 1}, | ||
403 | { 0x002416f8, 4}, | ||
404 | { 0x0024170c, 1}, | ||
405 | { 0x00241840, 41}, | ||
406 | { 0x002418ec, 1}, | ||
407 | { 0x002418f8, 4}, | ||
408 | { 0x0024190c, 1}, | ||
409 | { 0x00241a40, 41}, | ||
410 | { 0x00241aec, 1}, | ||
411 | { 0x00241af8, 4}, | ||
412 | { 0x00241b0c, 1}, | ||
413 | { 0x00241c40, 41}, | ||
414 | { 0x00241cec, 1}, | ||
415 | { 0x00241cf8, 4}, | ||
416 | { 0x00241d0c, 1}, | ||
417 | { 0x00241e40, 41}, | ||
418 | { 0x00241eec, 1}, | ||
419 | { 0x00241ef8, 4}, | ||
420 | { 0x00241f0c, 1}, | ||
421 | { 0x00242040, 41}, | ||
422 | { 0x002420ec, 1}, | ||
423 | { 0x002420f8, 4}, | ||
424 | { 0x0024210c, 1}, | ||
425 | { 0x00242240, 41}, | ||
426 | { 0x002422ec, 1}, | ||
427 | { 0x002422f8, 4}, | ||
428 | { 0x0024230c, 1}, | ||
429 | { 0x00242440, 41}, | ||
430 | { 0x002424ec, 1}, | ||
431 | { 0x002424f8, 4}, | ||
432 | { 0x0024250c, 1}, | ||
433 | { 0x00242640, 41}, | ||
434 | { 0x002426ec, 1}, | ||
435 | { 0x002426f8, 4}, | ||
436 | { 0x0024270c, 1}, | ||
437 | { 0x00242840, 41}, | ||
438 | { 0x002428ec, 1}, | ||
439 | { 0x002428f8, 4}, | ||
440 | { 0x0024290c, 1}, | ||
441 | { 0x00242a40, 41}, | ||
442 | { 0x00242aec, 1}, | ||
443 | { 0x00242af8, 4}, | ||
444 | { 0x00242b0c, 1}, | ||
445 | { 0x00242c40, 41}, | ||
446 | { 0x00242cec, 1}, | ||
447 | { 0x00242cf8, 4}, | ||
448 | { 0x00242d0c, 1}, | ||
449 | { 0x00242e40, 41}, | ||
450 | { 0x00242eec, 1}, | ||
451 | { 0x00242ef8, 4}, | ||
452 | { 0x00242f0c, 1}, | ||
453 | { 0x00243040, 41}, | ||
454 | { 0x002430ec, 1}, | ||
455 | { 0x002430f8, 4}, | ||
456 | { 0x0024310c, 1}, | ||
457 | { 0x00243240, 41}, | ||
458 | { 0x002432ec, 1}, | ||
459 | { 0x002432f8, 4}, | ||
460 | { 0x0024330c, 1}, | ||
461 | { 0x00243440, 41}, | ||
462 | { 0x002434ec, 1}, | ||
463 | { 0x002434f8, 4}, | ||
464 | { 0x0024350c, 1}, | ||
465 | { 0x00243640, 41}, | ||
466 | { 0x002436ec, 1}, | ||
467 | { 0x002436f8, 4}, | ||
468 | { 0x0024370c, 1}, | ||
469 | { 0x00243840, 41}, | ||
470 | { 0x002438ec, 1}, | ||
471 | { 0x002438f8, 4}, | ||
472 | { 0x0024390c, 1}, | ||
473 | { 0x00243a40, 41}, | ||
474 | { 0x00243aec, 1}, | ||
475 | { 0x00243af8, 4}, | ||
476 | { 0x00243b0c, 1}, | ||
477 | { 0x00243c40, 41}, | ||
478 | { 0x00243cec, 1}, | ||
479 | { 0x00243cf8, 4}, | ||
480 | { 0x00243d0c, 1}, | ||
481 | { 0x00243e40, 41}, | ||
482 | { 0x00243eec, 1}, | ||
483 | { 0x00243ef8, 4}, | ||
484 | { 0x00243f0c, 1}, | ||
485 | { 0x00244000, 1}, | ||
486 | { 0x00244008, 1}, | ||
487 | { 0x00244010, 3}, | ||
488 | { 0x00246000, 1}, | ||
489 | { 0x00246008, 1}, | ||
490 | { 0x00246010, 3}, | ||
491 | { 0x00248000, 1}, | ||
492 | { 0x00248008, 1}, | ||
493 | { 0x00248010, 3}, | ||
494 | { 0x0024a000, 1}, | ||
495 | { 0x0024a008, 1}, | ||
496 | { 0x0024a010, 3}, | ||
497 | { 0x0024a020, 3}, | ||
498 | { 0x0024a030, 3}, | ||
499 | { 0x0024a040, 3}, | ||
500 | { 0x0024a050, 3}, | ||
501 | { 0x0024a060, 4}, | ||
502 | { 0x0024a074, 7}, | ||
503 | { 0x0024a094, 3}, | ||
504 | { 0x0024a0a4, 1}, | ||
505 | { 0x0024a100, 6}, | ||
506 | { 0x0024a124, 1}, | ||
507 | { 0x00400500, 1}, | ||
508 | { 0x0040415c, 1}, | ||
509 | { 0x00404468, 1}, | ||
510 | { 0x00404498, 1}, | ||
511 | { 0x00405800, 1}, | ||
512 | { 0x00405840, 2}, | ||
513 | { 0x00405850, 1}, | ||
514 | { 0x00405908, 1}, | ||
515 | { 0x00405a00, 1}, | ||
516 | { 0x00405b50, 1}, | ||
517 | { 0x00406024, 5}, | ||
518 | { 0x00407010, 1}, | ||
519 | { 0x00407808, 1}, | ||
520 | { 0x0040803c, 1}, | ||
521 | { 0x00408804, 1}, | ||
522 | { 0x0040880c, 1}, | ||
523 | { 0x00408900, 2}, | ||
524 | { 0x00408910, 1}, | ||
525 | { 0x00408944, 1}, | ||
526 | { 0x00408984, 1}, | ||
527 | { 0x004090a8, 1}, | ||
528 | { 0x004098a0, 1}, | ||
529 | { 0x00409b00, 1}, | ||
530 | { 0x0041000c, 1}, | ||
531 | { 0x00410110, 1}, | ||
532 | { 0x00410184, 1}, | ||
533 | { 0x0041040c, 1}, | ||
534 | { 0x00410510, 1}, | ||
535 | { 0x00410584, 1}, | ||
536 | { 0x00418000, 1}, | ||
537 | { 0x00418008, 1}, | ||
538 | { 0x00418380, 2}, | ||
539 | { 0x00418400, 2}, | ||
540 | { 0x004184a0, 1}, | ||
541 | { 0x00418604, 1}, | ||
542 | { 0x00418680, 1}, | ||
543 | { 0x00418704, 1}, | ||
544 | { 0x00418714, 1}, | ||
545 | { 0x00418800, 1}, | ||
546 | { 0x0041881c, 1}, | ||
547 | { 0x00418830, 1}, | ||
548 | { 0x00418884, 1}, | ||
549 | { 0x004188b0, 1}, | ||
550 | { 0x004188c8, 3}, | ||
551 | { 0x004188fc, 1}, | ||
552 | { 0x00418b04, 1}, | ||
553 | { 0x00418c04, 1}, | ||
554 | { 0x00418c10, 8}, | ||
555 | { 0x00418c88, 1}, | ||
556 | { 0x00418d00, 1}, | ||
557 | { 0x00418e00, 1}, | ||
558 | { 0x00418e08, 1}, | ||
559 | { 0x00418e34, 1}, | ||
560 | { 0x00418e40, 4}, | ||
561 | { 0x00418e58, 16}, | ||
562 | { 0x00418f08, 1}, | ||
563 | { 0x00419000, 1}, | ||
564 | { 0x0041900c, 1}, | ||
565 | { 0x00419018, 1}, | ||
566 | { 0x00419854, 1}, | ||
567 | { 0x00419864, 1}, | ||
568 | { 0x00419a04, 2}, | ||
569 | { 0x00419b04, 1}, | ||
570 | { 0x00419b3c, 1}, | ||
571 | { 0x00419b48, 1}, | ||
572 | { 0x00419b50, 1}, | ||
573 | { 0x00419ba0, 2}, | ||
574 | { 0x00419bb0, 1}, | ||
575 | { 0x00419bdc, 1}, | ||
576 | { 0x00419c0c, 1}, | ||
577 | { 0x00419c8c, 1}, | ||
578 | { 0x00419d00, 1}, | ||
579 | { 0x00419d08, 2}, | ||
580 | { 0x00419e08, 1}, | ||
581 | { 0x00419e80, 8}, | ||
582 | { 0x00419ea8, 5}, | ||
583 | { 0x00419f00, 8}, | ||
584 | { 0x00419f28, 5}, | ||
585 | { 0x00419f80, 8}, | ||
586 | { 0x00419fa8, 5}, | ||
587 | { 0x0041a02c, 2}, | ||
588 | { 0x0041a0a0, 1}, | ||
589 | { 0x0041a0a8, 1}, | ||
590 | { 0x0041a890, 2}, | ||
591 | { 0x0041a8a0, 3}, | ||
592 | { 0x0041a8b0, 2}, | ||
593 | { 0x0041b014, 1}, | ||
594 | { 0x0041b0cc, 1}, | ||
595 | { 0x0041b1dc, 1}, | ||
596 | { 0x0041b214, 1}, | ||
597 | { 0x0041b2cc, 1}, | ||
598 | { 0x0041b3dc, 1}, | ||
599 | { 0x0041be0c, 3}, | ||
600 | { 0x0041becc, 1}, | ||
601 | { 0x0041bfdc, 1}, | ||
602 | { 0x0041c054, 1}, | ||
603 | { 0x0041c304, 1}, | ||
604 | { 0x0041c33c, 1}, | ||
605 | { 0x0041c348, 1}, | ||
606 | { 0x0041c350, 1}, | ||
607 | { 0x0041c3a0, 2}, | ||
608 | { 0x0041c3b0, 1}, | ||
609 | { 0x0041c3dc, 1}, | ||
610 | { 0x0041c40c, 1}, | ||
611 | { 0x0041c48c, 1}, | ||
612 | { 0x0041c500, 1}, | ||
613 | { 0x0041c508, 2}, | ||
614 | { 0x0041c608, 1}, | ||
615 | { 0x0041c680, 8}, | ||
616 | { 0x0041c6a8, 5}, | ||
617 | { 0x0041c700, 8}, | ||
618 | { 0x0041c728, 5}, | ||
619 | { 0x0041c780, 8}, | ||
620 | { 0x0041c7a8, 5}, | ||
621 | { 0x0041c854, 1}, | ||
622 | { 0x0041cb04, 1}, | ||
623 | { 0x0041cb3c, 1}, | ||
624 | { 0x0041cb48, 1}, | ||
625 | { 0x0041cb50, 1}, | ||
626 | { 0x0041cba0, 2}, | ||
627 | { 0x0041cbb0, 1}, | ||
628 | { 0x0041cbdc, 1}, | ||
629 | { 0x0041cc0c, 1}, | ||
630 | { 0x0041cc8c, 1}, | ||
631 | { 0x0041cd00, 1}, | ||
632 | { 0x0041cd08, 2}, | ||
633 | { 0x0041ce08, 1}, | ||
634 | { 0x0041ce80, 8}, | ||
635 | { 0x0041cea8, 5}, | ||
636 | { 0x0041cf00, 8}, | ||
637 | { 0x0041cf28, 5}, | ||
638 | { 0x0041cf80, 8}, | ||
639 | { 0x0041cfa8, 5}, | ||
640 | { 0x0041d054, 1}, | ||
641 | { 0x0041d304, 1}, | ||
642 | { 0x0041d33c, 1}, | ||
643 | { 0x0041d348, 1}, | ||
644 | { 0x0041d350, 1}, | ||
645 | { 0x0041d3a0, 2}, | ||
646 | { 0x0041d3b0, 1}, | ||
647 | { 0x0041d3dc, 1}, | ||
648 | { 0x0041d40c, 1}, | ||
649 | { 0x0041d48c, 1}, | ||
650 | { 0x0041d500, 1}, | ||
651 | { 0x0041d508, 2}, | ||
652 | { 0x0041d608, 1}, | ||
653 | { 0x0041d680, 8}, | ||
654 | { 0x0041d6a8, 5}, | ||
655 | { 0x0041d700, 8}, | ||
656 | { 0x0041d728, 5}, | ||
657 | { 0x0041d780, 8}, | ||
658 | { 0x0041d7a8, 5}, | ||
659 | { 0x0041d854, 1}, | ||
660 | { 0x0041db04, 1}, | ||
661 | { 0x0041db3c, 1}, | ||
662 | { 0x0041db48, 1}, | ||
663 | { 0x0041db50, 1}, | ||
664 | { 0x0041dba0, 2}, | ||
665 | { 0x0041dbb0, 1}, | ||
666 | { 0x0041dbdc, 1}, | ||
667 | { 0x0041dc0c, 1}, | ||
668 | { 0x0041dc8c, 1}, | ||
669 | { 0x0041dd00, 1}, | ||
670 | { 0x0041dd08, 2}, | ||
671 | { 0x0041de08, 1}, | ||
672 | { 0x0041de80, 8}, | ||
673 | { 0x0041dea8, 5}, | ||
674 | { 0x0041df00, 8}, | ||
675 | { 0x0041df28, 5}, | ||
676 | { 0x0041df80, 8}, | ||
677 | { 0x0041dfa8, 5}, | ||
678 | { 0x00500384, 1}, | ||
679 | { 0x005004a0, 1}, | ||
680 | { 0x00500604, 1}, | ||
681 | { 0x00500680, 1}, | ||
682 | { 0x00500714, 1}, | ||
683 | { 0x0050081c, 1}, | ||
684 | { 0x00500884, 1}, | ||
685 | { 0x005008b0, 1}, | ||
686 | { 0x005008c8, 3}, | ||
687 | { 0x005008fc, 1}, | ||
688 | { 0x00500b04, 1}, | ||
689 | { 0x00500c04, 1}, | ||
690 | { 0x00500c10, 8}, | ||
691 | { 0x00500c88, 1}, | ||
692 | { 0x00500d00, 1}, | ||
693 | { 0x00500e08, 1}, | ||
694 | { 0x00500f08, 1}, | ||
695 | { 0x00501000, 1}, | ||
696 | { 0x0050100c, 1}, | ||
697 | { 0x00501018, 1}, | ||
698 | { 0x00501854, 1}, | ||
699 | { 0x00501b04, 1}, | ||
700 | { 0x00501b3c, 1}, | ||
701 | { 0x00501b48, 1}, | ||
702 | { 0x00501b50, 1}, | ||
703 | { 0x00501ba0, 2}, | ||
704 | { 0x00501bb0, 1}, | ||
705 | { 0x00501bdc, 1}, | ||
706 | { 0x00501c0c, 1}, | ||
707 | { 0x00501c8c, 1}, | ||
708 | { 0x00501d00, 1}, | ||
709 | { 0x00501d08, 2}, | ||
710 | { 0x00501e08, 1}, | ||
711 | { 0x00501e80, 8}, | ||
712 | { 0x00501ea8, 5}, | ||
713 | { 0x00501f00, 8}, | ||
714 | { 0x00501f28, 5}, | ||
715 | { 0x00501f80, 8}, | ||
716 | { 0x00501fa8, 5}, | ||
717 | { 0x0050202c, 2}, | ||
718 | { 0x005020a0, 1}, | ||
719 | { 0x005020a8, 1}, | ||
720 | { 0x00502890, 2}, | ||
721 | { 0x005028a0, 3}, | ||
722 | { 0x005028b0, 2}, | ||
723 | { 0x00503014, 1}, | ||
724 | { 0x005030cc, 1}, | ||
725 | { 0x005031dc, 1}, | ||
726 | { 0x00503214, 1}, | ||
727 | { 0x005032cc, 1}, | ||
728 | { 0x005033dc, 1}, | ||
729 | { 0x00503e14, 1}, | ||
730 | { 0x00503ecc, 1}, | ||
731 | { 0x00503fdc, 1}, | ||
732 | { 0x00504054, 1}, | ||
733 | { 0x00504304, 1}, | ||
734 | { 0x0050433c, 1}, | ||
735 | { 0x00504348, 1}, | ||
736 | { 0x00504350, 1}, | ||
737 | { 0x005043a0, 2}, | ||
738 | { 0x005043b0, 1}, | ||
739 | { 0x005043dc, 1}, | ||
740 | { 0x0050440c, 1}, | ||
741 | { 0x0050448c, 1}, | ||
742 | { 0x00504500, 1}, | ||
743 | { 0x00504508, 2}, | ||
744 | { 0x00504608, 1}, | ||
745 | { 0x00504680, 8}, | ||
746 | { 0x005046a8, 5}, | ||
747 | { 0x00504700, 8}, | ||
748 | { 0x00504728, 5}, | ||
749 | { 0x00504780, 8}, | ||
750 | { 0x005047a8, 5}, | ||
751 | { 0x00504854, 1}, | ||
752 | { 0x00504b04, 1}, | ||
753 | { 0x00504b3c, 1}, | ||
754 | { 0x00504b48, 1}, | ||
755 | { 0x00504b50, 1}, | ||
756 | { 0x00504ba0, 2}, | ||
757 | { 0x00504bb0, 1}, | ||
758 | { 0x00504bdc, 1}, | ||
759 | { 0x00504c0c, 1}, | ||
760 | { 0x00504c8c, 1}, | ||
761 | { 0x00504d00, 1}, | ||
762 | { 0x00504d08, 2}, | ||
763 | { 0x00504e08, 1}, | ||
764 | { 0x00504e80, 8}, | ||
765 | { 0x00504ea8, 5}, | ||
766 | { 0x00504f00, 8}, | ||
767 | { 0x00504f28, 5}, | ||
768 | { 0x00504f80, 8}, | ||
769 | { 0x00504fa8, 5}, | ||
770 | { 0x00505054, 1}, | ||
771 | { 0x00505304, 1}, | ||
772 | { 0x0050533c, 1}, | ||
773 | { 0x00505348, 1}, | ||
774 | { 0x00505350, 1}, | ||
775 | { 0x005053a0, 2}, | ||
776 | { 0x005053b0, 1}, | ||
777 | { 0x005053dc, 1}, | ||
778 | { 0x0050540c, 1}, | ||
779 | { 0x0050548c, 1}, | ||
780 | { 0x00505500, 1}, | ||
781 | { 0x00505508, 2}, | ||
782 | { 0x00505608, 1}, | ||
783 | { 0x00505680, 8}, | ||
784 | { 0x005056a8, 5}, | ||
785 | { 0x00505700, 8}, | ||
786 | { 0x00505728, 5}, | ||
787 | { 0x00505780, 8}, | ||
788 | { 0x005057a8, 5}, | ||
789 | { 0x00505854, 1}, | ||
790 | { 0x00505b04, 1}, | ||
791 | { 0x00505b3c, 1}, | ||
792 | { 0x00505b48, 1}, | ||
793 | { 0x00505b50, 1}, | ||
794 | { 0x00505ba0, 2}, | ||
795 | { 0x00505bb0, 1}, | ||
796 | { 0x00505bdc, 1}, | ||
797 | { 0x00505c0c, 1}, | ||
798 | { 0x00505c8c, 1}, | ||
799 | { 0x00505d00, 1}, | ||
800 | { 0x00505d08, 2}, | ||
801 | { 0x00505e08, 1}, | ||
802 | { 0x00505e80, 8}, | ||
803 | { 0x00505ea8, 5}, | ||
804 | { 0x00505f00, 8}, | ||
805 | { 0x00505f28, 5}, | ||
806 | { 0x00505f80, 8}, | ||
807 | { 0x00505fa8, 5}, | ||
808 | { 0x00900100, 1}, | ||
809 | { 0x009a0100, 1}, | ||
810 | }; | ||
811 | |||
812 | static const u32 gv11b_global_whitelist_ranges_count = | ||
813 | ARRAY_SIZE(gv11b_global_whitelist_ranges); | ||
814 | |||
815 | /* context */ | ||
816 | |||
817 | /* runcontrol */ | ||
818 | static const u32 gv11b_runcontrol_whitelist[] = { | ||
819 | }; | ||
820 | static const u32 gv11b_runcontrol_whitelist_count = | ||
821 | ARRAY_SIZE(gv11b_runcontrol_whitelist); | ||
822 | |||
823 | static const struct regop_offset_range gv11b_runcontrol_whitelist_ranges[] = { | ||
824 | }; | ||
825 | static const u32 gv11b_runcontrol_whitelist_ranges_count = | ||
826 | ARRAY_SIZE(gv11b_runcontrol_whitelist_ranges); | ||
827 | |||
828 | |||
829 | /* quad ctl */ | ||
830 | static const u32 gv11b_qctl_whitelist[] = { | ||
831 | }; | ||
832 | static const u32 gv11b_qctl_whitelist_count = | ||
833 | ARRAY_SIZE(gv11b_qctl_whitelist); | ||
834 | |||
835 | static const struct regop_offset_range gv11b_qctl_whitelist_ranges[] = { | ||
836 | }; | ||
837 | static const u32 gv11b_qctl_whitelist_ranges_count = | ||
838 | ARRAY_SIZE(gv11b_qctl_whitelist_ranges); | ||
839 | |||
840 | static const struct regop_offset_range *gv11b_get_global_whitelist_ranges(void) | ||
841 | { | ||
842 | return gv11b_global_whitelist_ranges; | ||
843 | } | ||
844 | |||
845 | static int gv11b_get_global_whitelist_ranges_count(void) | ||
846 | { | ||
847 | return gv11b_global_whitelist_ranges_count; | ||
848 | } | ||
849 | |||
850 | static const struct regop_offset_range *gv11b_get_context_whitelist_ranges(void) | ||
851 | { | ||
852 | return gv11b_global_whitelist_ranges; | ||
853 | } | ||
854 | |||
855 | static int gv11b_get_context_whitelist_ranges_count(void) | ||
856 | { | ||
857 | return gv11b_global_whitelist_ranges_count; | ||
858 | } | ||
859 | |||
860 | static const u32 *gv11b_get_runcontrol_whitelist(void) | ||
861 | { | ||
862 | return gv11b_runcontrol_whitelist; | ||
863 | } | ||
864 | |||
865 | static int gv11b_get_runcontrol_whitelist_count(void) | ||
866 | { | ||
867 | return gv11b_runcontrol_whitelist_count; | ||
868 | } | ||
869 | |||
870 | static const | ||
871 | struct regop_offset_range *gv11b_get_runcontrol_whitelist_ranges(void) | ||
872 | { | ||
873 | return gv11b_runcontrol_whitelist_ranges; | ||
874 | } | ||
875 | |||
876 | static int gv11b_get_runcontrol_whitelist_ranges_count(void) | ||
877 | { | ||
878 | return gv11b_runcontrol_whitelist_ranges_count; | ||
879 | } | ||
880 | |||
881 | static const u32 *gv11b_get_qctl_whitelist(void) | ||
882 | { | ||
883 | return gv11b_qctl_whitelist; | ||
884 | } | ||
885 | |||
886 | static int gv11b_get_qctl_whitelist_count(void) | ||
887 | { | ||
888 | return gv11b_qctl_whitelist_count; | ||
889 | } | ||
890 | |||
891 | static const struct regop_offset_range *gv11b_get_qctl_whitelist_ranges(void) | ||
892 | { | ||
893 | return gv11b_qctl_whitelist_ranges; | ||
894 | } | ||
895 | |||
896 | static int gv11b_get_qctl_whitelist_ranges_count(void) | ||
897 | { | ||
898 | return gv11b_qctl_whitelist_ranges_count; | ||
899 | } | ||
900 | |||
901 | static int gv11b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) | ||
902 | { | ||
903 | /* Not needed on gv11b */ | ||
904 | return 0; | ||
905 | } | ||
906 | |||
907 | void gv11b_init_regops(struct gpu_ops *gops) | ||
908 | { | ||
909 | gops->regops.get_global_whitelist_ranges = | ||
910 | gv11b_get_global_whitelist_ranges; | ||
911 | gops->regops.get_global_whitelist_ranges_count = | ||
912 | gv11b_get_global_whitelist_ranges_count; | ||
913 | |||
914 | gops->regops.get_context_whitelist_ranges = | ||
915 | gv11b_get_context_whitelist_ranges; | ||
916 | gops->regops.get_context_whitelist_ranges_count = | ||
917 | gv11b_get_context_whitelist_ranges_count; | ||
918 | |||
919 | gops->regops.get_runcontrol_whitelist = | ||
920 | gv11b_get_runcontrol_whitelist; | ||
921 | gops->regops.get_runcontrol_whitelist_count = | ||
922 | gv11b_get_runcontrol_whitelist_count; | ||
923 | |||
924 | gops->regops.get_runcontrol_whitelist_ranges = | ||
925 | gv11b_get_runcontrol_whitelist_ranges; | ||
926 | gops->regops.get_runcontrol_whitelist_ranges_count = | ||
927 | gv11b_get_runcontrol_whitelist_ranges_count; | ||
928 | |||
929 | gops->regops.get_qctl_whitelist = | ||
930 | gv11b_get_qctl_whitelist; | ||
931 | gops->regops.get_qctl_whitelist_count = | ||
932 | gv11b_get_qctl_whitelist_count; | ||
933 | |||
934 | gops->regops.get_qctl_whitelist_ranges = | ||
935 | gv11b_get_qctl_whitelist_ranges; | ||
936 | gops->regops.get_qctl_whitelist_ranges_count = | ||
937 | gv11b_get_qctl_whitelist_ranges_count; | ||
938 | |||
939 | gops->regops.apply_smpc_war = | ||
940 | gv11b_apply_smpc_war; | ||
941 | } | ||
diff --git a/drivers/gpu/nvgpu/gv11b/regops_gv11b.h b/drivers/gpu/nvgpu/gv11b/regops_gv11b.h new file mode 100644 index 00000000..b7250818 --- /dev/null +++ b/drivers/gpu/nvgpu/gv11b/regops_gv11b.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * | ||
3 | * Tegra GV11B GPU Driver Register Ops | ||
4 | * | ||
5 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms and conditions of the GNU General Public License, | ||
9 | * version 2, as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
14 | * more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | #ifndef __REGOPS_GV11B_H_ | ||
20 | #define __REGOPS_GV11B_H_ | ||
21 | |||
22 | void gv11b_init_regops(struct gpu_ops *gops); | ||
23 | |||
24 | #endif /* __REGOPS_GV11B_H_ */ | ||