Commit | Line | Data |
---|---|---|
2a259a3d BS |
1 | /* |
2 | * Copyright 2012 Red Hat Inc. | |
3 | * | |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | |
5 | * copy of this software and associated documentation files (the "Software"), | |
6 | * to deal in the Software without restriction, including without limitation | |
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
8 | * and/or sell copies of the Software, and to permit persons to whom the | |
9 | * Software is furnished to do so, subject to the following conditions: | |
10 | * | |
11 | * The above copyright notice and this permission notice shall be included in | |
12 | * all copies or substantial portions of the Software. | |
13 | * | |
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
20 | * OTHER DEALINGS IN THE SOFTWARE. | |
21 | * | |
22 | */ | |
23 | ||
ebb945a9 BS |
24 | #include <core/object.h> |
25 | #include <core/client.h> | |
26 | #include <core/device.h> | |
27 | #include <core/class.h> | |
28 | #include <core/mm.h> | |
2a259a3d | 29 | |
ebb945a9 BS |
30 | #include <subdev/fb.h> |
31 | #include <subdev/timer.h> | |
32 | #include <subdev/instmem.h> | |
33 | ||
34 | #include "nouveau_drm.h" | |
2a259a3d | 35 | #include "nouveau_dma.h" |
ebb945a9 BS |
36 | #include "nouveau_gem.h" |
37 | #include "nouveau_chan.h" | |
2a259a3d | 38 | #include "nouveau_abi16.h" |
ebb945a9 BS |
39 | |
40 | struct nouveau_abi16 * | |
41 | nouveau_abi16_get(struct drm_file *file_priv, struct drm_device *dev) | |
42 | { | |
43 | struct nouveau_cli *cli = nouveau_cli(file_priv); | |
44 | mutex_lock(&cli->mutex); | |
45 | if (!cli->abi16) { | |
46 | struct nouveau_abi16 *abi16; | |
47 | cli->abi16 = abi16 = kzalloc(sizeof(*abi16), GFP_KERNEL); | |
48 | if (cli->abi16) { | |
49 | INIT_LIST_HEAD(&abi16->channels); | |
50 | abi16->client = nv_object(cli); | |
51 | ||
52 | /* allocate device object targeting client's default | |
53 | * device (ie. the one that belongs to the fd it | |
54 | * opened) | |
55 | */ | |
56 | if (nouveau_object_new(abi16->client, NVDRM_CLIENT, | |
57 | NVDRM_DEVICE, 0x0080, | |
58 | &(struct nv_device_class) { | |
59 | .device = ~0ULL, | |
60 | }, | |
61 | sizeof(struct nv_device_class), | |
62 | &abi16->device) == 0) | |
63 | return cli->abi16; | |
64 | ||
65 | kfree(cli->abi16); | |
66 | cli->abi16 = NULL; | |
67 | } | |
68 | ||
69 | mutex_unlock(&cli->mutex); | |
70 | } | |
71 | return cli->abi16; | |
72 | } | |
73 | ||
74 | int | |
75 | nouveau_abi16_put(struct nouveau_abi16 *abi16, int ret) | |
76 | { | |
77 | struct nouveau_cli *cli = (void *)abi16->client; | |
78 | mutex_unlock(&cli->mutex); | |
79 | return ret; | |
80 | } | |
81 | ||
82 | u16 | |
83 | nouveau_abi16_swclass(struct nouveau_drm *drm) | |
84 | { | |
85 | switch (nv_device(drm->device)->card_type) { | |
86 | case NV_04: | |
87 | return 0x006e; | |
88 | case NV_10: | |
89 | case NV_20: | |
90 | case NV_30: | |
91 | case NV_40: | |
92 | return 0x016e; | |
93 | case NV_50: | |
94 | return 0x506e; | |
95 | case NV_C0: | |
96 | case NV_D0: | |
97 | case NV_E0: | |
98 | return 0x906e; | |
99 | } | |
100 | ||
101 | return 0x0000; | |
102 | } | |
103 | ||
104 | static void | |
105 | nouveau_abi16_ntfy_fini(struct nouveau_abi16_chan *chan, | |
106 | struct nouveau_abi16_ntfy *ntfy) | |
107 | { | |
108 | nouveau_mm_free(&chan->heap, &ntfy->node); | |
109 | list_del(&ntfy->head); | |
110 | kfree(ntfy); | |
111 | } | |
112 | ||
113 | static void | |
114 | nouveau_abi16_chan_fini(struct nouveau_abi16 *abi16, | |
115 | struct nouveau_abi16_chan *chan) | |
116 | { | |
117 | struct nouveau_abi16_ntfy *ntfy, *temp; | |
118 | ||
2b77c1c0 MS |
119 | /* wait for all activity to stop before releasing notify object, which |
120 | * may be still in use */ | |
121 | if (chan->chan && chan->ntfy) | |
122 | nouveau_channel_idle(chan->chan); | |
123 | ||
ebb945a9 BS |
124 | /* cleanup notifier state */ |
125 | list_for_each_entry_safe(ntfy, temp, &chan->notifiers, head) { | |
126 | nouveau_abi16_ntfy_fini(chan, ntfy); | |
127 | } | |
128 | ||
129 | if (chan->ntfy) { | |
130 | nouveau_bo_vma_del(chan->ntfy, &chan->ntfy_vma); | |
131 | drm_gem_object_unreference_unlocked(chan->ntfy->gem); | |
132 | } | |
133 | ||
134 | if (chan->heap.block_size) | |
135 | nouveau_mm_fini(&chan->heap); | |
136 | ||
137 | /* destroy channel object, all children will be killed too */ | |
138 | if (chan->chan) { | |
139 | abi16->handles &= ~(1 << (chan->chan->handle & 0xffff)); | |
140 | nouveau_channel_del(&chan->chan); | |
141 | } | |
142 | ||
143 | list_del(&chan->head); | |
144 | kfree(chan); | |
145 | } | |
146 | ||
147 | void | |
148 | nouveau_abi16_fini(struct nouveau_abi16 *abi16) | |
149 | { | |
150 | struct nouveau_cli *cli = (void *)abi16->client; | |
151 | struct nouveau_abi16_chan *chan, *temp; | |
152 | ||
153 | /* cleanup channels */ | |
154 | list_for_each_entry_safe(chan, temp, &abi16->channels, head) { | |
155 | nouveau_abi16_chan_fini(abi16, chan); | |
156 | } | |
157 | ||
158 | /* destroy the device object */ | |
159 | nouveau_object_del(abi16->client, NVDRM_CLIENT, NVDRM_DEVICE); | |
160 | ||
161 | kfree(cli->abi16); | |
162 | cli->abi16 = NULL; | |
163 | } | |
2a259a3d BS |
164 | |
165 | int | |
166 | nouveau_abi16_ioctl_getparam(ABI16_IOCTL_ARGS) | |
167 | { | |
ebb945a9 BS |
168 | struct nouveau_drm *drm = nouveau_drm(dev); |
169 | struct nouveau_device *device = nv_device(drm->device); | |
170 | struct nouveau_timer *ptimer = nouveau_timer(device); | |
2a259a3d BS |
171 | struct drm_nouveau_getparam *getparam = data; |
172 | ||
173 | switch (getparam->param) { | |
174 | case NOUVEAU_GETPARAM_CHIPSET_ID: | |
ebb945a9 | 175 | getparam->value = device->chipset; |
2a259a3d BS |
176 | break; |
177 | case NOUVEAU_GETPARAM_PCI_VENDOR: | |
178 | getparam->value = dev->pci_vendor; | |
179 | break; | |
180 | case NOUVEAU_GETPARAM_PCI_DEVICE: | |
181 | getparam->value = dev->pci_device; | |
182 | break; | |
183 | case NOUVEAU_GETPARAM_BUS_TYPE: | |
184 | if (drm_pci_device_is_agp(dev)) | |
185 | getparam->value = 0; | |
186 | else | |
187 | if (!pci_is_pcie(dev->pdev)) | |
188 | getparam->value = 1; | |
189 | else | |
190 | getparam->value = 2; | |
191 | break; | |
192 | case NOUVEAU_GETPARAM_FB_SIZE: | |
ebb945a9 | 193 | getparam->value = drm->gem.vram_available; |
2a259a3d BS |
194 | break; |
195 | case NOUVEAU_GETPARAM_AGP_SIZE: | |
ebb945a9 | 196 | getparam->value = drm->gem.gart_available; |
2a259a3d BS |
197 | break; |
198 | case NOUVEAU_GETPARAM_VM_VRAM_BASE: | |
199 | getparam->value = 0; /* deprecated */ | |
200 | break; | |
201 | case NOUVEAU_GETPARAM_PTIMER_TIME: | |
ebb945a9 | 202 | getparam->value = ptimer->read(ptimer); |
2a259a3d BS |
203 | break; |
204 | case NOUVEAU_GETPARAM_HAS_BO_USAGE: | |
205 | getparam->value = 1; | |
206 | break; | |
207 | case NOUVEAU_GETPARAM_HAS_PAGEFLIP: | |
208 | getparam->value = 1; | |
209 | break; | |
210 | case NOUVEAU_GETPARAM_GRAPH_UNITS: | |
211 | /* NV40 and NV50 versions are quite different, but register | |
212 | * address is the same. User is supposed to know the card | |
213 | * family anyway... */ | |
ebb945a9 BS |
214 | if (device->chipset >= 0x40) { |
215 | getparam->value = nv_rd32(device, 0x001540); | |
2a259a3d BS |
216 | break; |
217 | } | |
218 | /* FALLTHRU */ | |
219 | default: | |
ebb945a9 | 220 | nv_debug(device, "unknown parameter %lld\n", getparam->param); |
2a259a3d BS |
221 | return -EINVAL; |
222 | } | |
223 | ||
224 | return 0; | |
225 | } | |
226 | ||
227 | int | |
228 | nouveau_abi16_ioctl_setparam(ABI16_IOCTL_ARGS) | |
229 | { | |
230 | return -EINVAL; | |
231 | } | |
232 | ||
233 | int | |
234 | nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS) | |
235 | { | |
2a259a3d | 236 | struct drm_nouveau_channel_alloc *init = data; |
ebb945a9 BS |
237 | struct nouveau_cli *cli = nouveau_cli(file_priv); |
238 | struct nouveau_drm *drm = nouveau_drm(dev); | |
239 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); | |
240 | struct nouveau_abi16_chan *chan; | |
241 | struct nouveau_client *client; | |
242 | struct nouveau_device *device; | |
243 | struct nouveau_instmem *imem; | |
244 | struct nouveau_fb *pfb; | |
2a259a3d BS |
245 | int ret; |
246 | ||
ebb945a9 BS |
247 | if (unlikely(!abi16)) |
248 | return -ENOMEM; | |
bf7e438b MS |
249 | |
250 | if (!drm->channel) | |
251 | return nouveau_abi16_put(abi16, -ENODEV); | |
252 | ||
ebb945a9 | 253 | client = nv_client(abi16->client); |
ebb945a9 BS |
254 | device = nv_device(abi16->device); |
255 | imem = nouveau_instmem(device); | |
256 | pfb = nouveau_fb(device); | |
257 | ||
49469800 BS |
258 | /* hack to allow channel engine type specification on kepler */ |
259 | if (device->card_type >= NV_E0) { | |
260 | if (init->fb_ctxdma_handle != ~0) | |
261 | init->fb_ctxdma_handle = NVE0_CHANNEL_IND_ENGINE_GR; | |
262 | else | |
263 | init->fb_ctxdma_handle = init->tt_ctxdma_handle; | |
264 | ||
265 | /* allow flips to be executed if this is a graphics channel */ | |
266 | init->tt_ctxdma_handle = 0; | |
267 | if (init->fb_ctxdma_handle == NVE0_CHANNEL_IND_ENGINE_GR) | |
268 | init->tt_ctxdma_handle = 1; | |
269 | } | |
270 | ||
271 | if (init->fb_ctxdma_handle == ~0 || init->tt_ctxdma_handle == ~0) | |
272 | return nouveau_abi16_put(abi16, -EINVAL); | |
273 | ||
ebb945a9 BS |
274 | /* allocate "abi16 channel" data and make up a handle for it */ |
275 | init->channel = ffsll(~abi16->handles); | |
276 | if (!init->channel--) | |
277 | return nouveau_abi16_put(abi16, -ENOSPC); | |
278 | ||
279 | chan = kzalloc(sizeof(*chan), GFP_KERNEL); | |
280 | if (!chan) | |
281 | return nouveau_abi16_put(abi16, -ENOMEM); | |
282 | ||
283 | INIT_LIST_HEAD(&chan->notifiers); | |
284 | list_add(&chan->head, &abi16->channels); | |
285 | abi16->handles |= (1 << init->channel); | |
2a259a3d | 286 | |
ebb945a9 BS |
287 | /* create channel object and initialise dma and fence management */ |
288 | ret = nouveau_channel_new(drm, cli, NVDRM_DEVICE, NVDRM_CHAN | | |
289 | init->channel, init->fb_ctxdma_handle, | |
290 | init->tt_ctxdma_handle, &chan->chan); | |
2a259a3d | 291 | if (ret) |
ebb945a9 BS |
292 | goto done; |
293 | ||
294 | if (device->card_type >= NV_50) | |
295 | init->pushbuf_domains = NOUVEAU_GEM_DOMAIN_VRAM | | |
296 | NOUVEAU_GEM_DOMAIN_GART; | |
297 | else | |
298 | if (chan->chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) | |
2a259a3d | 299 | init->pushbuf_domains = NOUVEAU_GEM_DOMAIN_VRAM; |
ebb945a9 BS |
300 | else |
301 | init->pushbuf_domains = NOUVEAU_GEM_DOMAIN_GART; | |
2a259a3d | 302 | |
ebb945a9 | 303 | if (device->card_type < NV_C0) { |
2a259a3d BS |
304 | init->subchan[0].handle = 0x00000000; |
305 | init->subchan[0].grclass = 0x0000; | |
306 | init->subchan[1].handle = NvSw; | |
ebb945a9 | 307 | init->subchan[1].grclass = 0x506e; |
2a259a3d BS |
308 | init->nr_subchan = 2; |
309 | } | |
310 | ||
311 | /* Named memory object area */ | |
ebb945a9 BS |
312 | ret = nouveau_gem_new(dev, PAGE_SIZE, 0, NOUVEAU_GEM_DOMAIN_GART, |
313 | 0, 0, &chan->ntfy); | |
314 | if (ret == 0) | |
315 | ret = nouveau_bo_pin(chan->ntfy, TTM_PL_FLAG_TT); | |
316 | if (ret) | |
317 | goto done; | |
318 | ||
319 | if (device->card_type >= NV_50) { | |
320 | ret = nouveau_bo_vma_add(chan->ntfy, client->vm, | |
321 | &chan->ntfy_vma); | |
322 | if (ret) | |
323 | goto done; | |
324 | } | |
325 | ||
326 | ret = drm_gem_handle_create(file_priv, chan->ntfy->gem, | |
2a259a3d | 327 | &init->notifier_handle); |
ebb945a9 BS |
328 | if (ret) |
329 | goto done; | |
2a259a3d | 330 | |
ebb945a9 BS |
331 | ret = nouveau_mm_init(&chan->heap, 0, PAGE_SIZE, 1); |
332 | done: | |
333 | if (ret) | |
334 | nouveau_abi16_chan_fini(abi16, chan); | |
335 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
336 | } |
337 | ||
ebb945a9 | 338 | |
2a259a3d BS |
339 | int |
340 | nouveau_abi16_ioctl_channel_free(ABI16_IOCTL_ARGS) | |
341 | { | |
342 | struct drm_nouveau_channel_free *req = data; | |
ebb945a9 BS |
343 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
344 | struct nouveau_abi16_chan *chan; | |
345 | int ret = -ENOENT; | |
2a259a3d | 346 | |
ebb945a9 BS |
347 | if (unlikely(!abi16)) |
348 | return -ENOMEM; | |
2a259a3d | 349 | |
ebb945a9 BS |
350 | list_for_each_entry(chan, &abi16->channels, head) { |
351 | if (chan->chan->handle == (NVDRM_CHAN | req->channel)) { | |
352 | nouveau_abi16_chan_fini(abi16, chan); | |
353 | return nouveau_abi16_put(abi16, 0); | |
354 | } | |
355 | } | |
356 | ||
357 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
358 | } |
359 | ||
360 | int | |
361 | nouveau_abi16_ioctl_grobj_alloc(ABI16_IOCTL_ARGS) | |
362 | { | |
363 | struct drm_nouveau_grobj_alloc *init = data; | |
ebb945a9 BS |
364 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); |
365 | struct nouveau_drm *drm = nouveau_drm(dev); | |
366 | struct nouveau_object *object; | |
2a259a3d BS |
367 | int ret; |
368 | ||
ebb945a9 BS |
369 | if (unlikely(!abi16)) |
370 | return -ENOMEM; | |
371 | ||
2a259a3d | 372 | if (init->handle == ~0) |
ebb945a9 | 373 | return nouveau_abi16_put(abi16, -EINVAL); |
2a259a3d BS |
374 | |
375 | /* compatibility with userspace that assumes 506e for all chipsets */ | |
376 | if (init->class == 0x506e) { | |
ebb945a9 | 377 | init->class = nouveau_abi16_swclass(drm); |
2a259a3d | 378 | if (init->class == 0x906e) |
ebb945a9 | 379 | return nouveau_abi16_put(abi16, 0); |
2a259a3d BS |
380 | } |
381 | ||
ebb945a9 BS |
382 | ret = nouveau_object_new(abi16->client, NVDRM_CHAN | init->channel, |
383 | init->handle, init->class, NULL, 0, &object); | |
384 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
385 | } |
386 | ||
387 | int | |
388 | nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS) | |
389 | { | |
ebb945a9 BS |
390 | struct drm_nouveau_notifierobj_alloc *info = data; |
391 | struct nouveau_drm *drm = nouveau_drm(dev); | |
392 | struct nouveau_device *device = nv_device(drm->device); | |
393 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); | |
b43decd2 | 394 | struct nouveau_abi16_chan *chan = NULL, *temp; |
ebb945a9 BS |
395 | struct nouveau_abi16_ntfy *ntfy; |
396 | struct nouveau_object *object; | |
f756944a | 397 | struct nv_dma_class args = {}; |
2a259a3d BS |
398 | int ret; |
399 | ||
ebb945a9 BS |
400 | if (unlikely(!abi16)) |
401 | return -ENOMEM; | |
402 | ||
2a259a3d | 403 | /* completely unnecessary for these chipsets... */ |
ebb945a9 BS |
404 | if (unlikely(nv_device(abi16->device)->card_type >= NV_C0)) |
405 | return nouveau_abi16_put(abi16, -EINVAL); | |
2a259a3d | 406 | |
b43decd2 ML |
407 | list_for_each_entry(temp, &abi16->channels, head) { |
408 | if (temp->chan->handle == (NVDRM_CHAN | info->channel)) { | |
409 | chan = temp; | |
ebb945a9 | 410 | break; |
b43decd2 | 411 | } |
ebb945a9 | 412 | } |
2a259a3d | 413 | |
ebb945a9 BS |
414 | if (!chan) |
415 | return nouveau_abi16_put(abi16, -ENOENT); | |
416 | ||
417 | ntfy = kzalloc(sizeof(*ntfy), GFP_KERNEL); | |
418 | if (!ntfy) | |
419 | return nouveau_abi16_put(abi16, -ENOMEM); | |
420 | ||
421 | list_add(&ntfy->head, &chan->notifiers); | |
422 | ntfy->handle = info->handle; | |
423 | ||
424 | ret = nouveau_mm_head(&chan->heap, 1, info->size, info->size, 1, | |
425 | &ntfy->node); | |
426 | if (ret) | |
427 | goto done; | |
428 | ||
429 | args.start = ntfy->node->offset; | |
430 | args.limit = ntfy->node->offset + ntfy->node->length - 1; | |
431 | if (device->card_type >= NV_50) { | |
432 | args.flags = NV_DMA_TARGET_VM | NV_DMA_ACCESS_VM; | |
433 | args.start += chan->ntfy_vma.offset; | |
434 | args.limit += chan->ntfy_vma.offset; | |
435 | } else | |
436 | if (drm->agp.stat == ENABLED) { | |
437 | args.flags = NV_DMA_TARGET_AGP | NV_DMA_ACCESS_RDWR; | |
438 | args.start += drm->agp.base + chan->ntfy->bo.offset; | |
439 | args.limit += drm->agp.base + chan->ntfy->bo.offset; | |
440 | } else { | |
441 | args.flags = NV_DMA_TARGET_VM | NV_DMA_ACCESS_RDWR; | |
442 | args.start += chan->ntfy->bo.offset; | |
443 | args.limit += chan->ntfy->bo.offset; | |
444 | } | |
445 | ||
446 | ret = nouveau_object_new(abi16->client, chan->chan->handle, | |
447 | ntfy->handle, 0x003d, &args, | |
448 | sizeof(args), &object); | |
449 | if (ret) | |
450 | goto done; | |
451 | ||
452 | done: | |
453 | if (ret) | |
454 | nouveau_abi16_ntfy_fini(chan, ntfy); | |
455 | return nouveau_abi16_put(abi16, ret); | |
2a259a3d BS |
456 | } |
457 | ||
458 | int | |
459 | nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS) | |
460 | { | |
ebb945a9 BS |
461 | struct drm_nouveau_gpuobj_free *fini = data; |
462 | struct nouveau_abi16 *abi16 = nouveau_abi16_get(file_priv, dev); | |
b43decd2 | 463 | struct nouveau_abi16_chan *chan = NULL, *temp; |
ebb945a9 | 464 | struct nouveau_abi16_ntfy *ntfy; |
2a259a3d BS |
465 | int ret; |
466 | ||
ebb945a9 BS |
467 | if (unlikely(!abi16)) |
468 | return -ENOMEM; | |
469 | ||
b43decd2 ML |
470 | list_for_each_entry(temp, &abi16->channels, head) { |
471 | if (temp->chan->handle == (NVDRM_CHAN | fini->channel)) { | |
472 | chan = temp; | |
ebb945a9 | 473 | break; |
b43decd2 | 474 | } |
ebb945a9 BS |
475 | } |
476 | ||
477 | if (!chan) | |
478 | return nouveau_abi16_put(abi16, -ENOENT); | |
2a259a3d | 479 | |
ebb945a9 BS |
480 | /* synchronize with the user channel and destroy the gpu object */ |
481 | nouveau_channel_idle(chan->chan); | |
2a259a3d | 482 | |
ebb945a9 BS |
483 | ret = nouveau_object_del(abi16->client, chan->chan->handle, fini->handle); |
484 | if (ret) | |
485 | return nouveau_abi16_put(abi16, ret); | |
486 | ||
487 | /* cleanup extra state if this object was a notifier */ | |
488 | list_for_each_entry(ntfy, &chan->notifiers, head) { | |
489 | if (ntfy->handle == fini->handle) { | |
490 | nouveau_mm_free(&chan->heap, &ntfy->node); | |
491 | list_del(&ntfy->head); | |
492 | break; | |
493 | } | |
494 | } | |
495 | ||
496 | return nouveau_abi16_put(abi16, 0); | |
2a259a3d | 497 | } |