2 * Copyright 2012 Red Hat Inc.
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:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
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.
25 #include <linux/console.h>
26 #include <linux/module.h>
27 #include <linux/pci.h>
29 #include <core/device.h>
30 #include <core/client.h>
31 #include <core/gpuobj.h>
32 #include <core/class.h>
34 #include <subdev/device.h>
35 #include <subdev/vm.h>
37 #include <engine/disp.h>
39 #include "nouveau_drm.h"
40 #include "nouveau_dma.h"
41 #include "nouveau_ttm.h"
42 #include "nouveau_gem.h"
43 #include "nouveau_agp.h"
44 #include "nouveau_vga.h"
45 #include "nouveau_pm.h"
46 #include "nouveau_acpi.h"
47 #include "nouveau_bios.h"
48 #include "nouveau_ioctl.h"
49 #include "nouveau_abi16.h"
50 #include "nouveau_fbcon.h"
51 #include "nouveau_fence.h"
52 #include "nouveau_debugfs.h"
54 MODULE_PARM_DESC(config, "option string to pass to driver core");
55 static char *nouveau_config;
56 module_param_named(config, nouveau_config, charp, 0400);
58 MODULE_PARM_DESC(debug, "debug string to pass to driver core");
59 static char *nouveau_debug;
60 module_param_named(debug, nouveau_debug, charp, 0400);
62 MODULE_PARM_DESC(noaccel, "disable kernel/abi16 acceleration");
63 static int nouveau_noaccel = 0;
64 module_param_named(noaccel, nouveau_noaccel, int, 0400);
66 MODULE_PARM_DESC(modeset, "enable driver (default: auto, "
67 "0 = disabled, 1 = enabled, 2 = headless)");
68 int nouveau_modeset = -1;
69 module_param_named(modeset, nouveau_modeset, int, 0400);
71 static struct drm_driver driver;
74 nouveau_drm_vblank_handler(struct nouveau_eventh *event, int head)
76 struct nouveau_drm *drm =
77 container_of(event, struct nouveau_drm, vblank[head]);
78 drm_handle_vblank(drm->dev, head);
79 return NVKM_EVENT_KEEP;
83 nouveau_drm_vblank_enable(struct drm_device *dev, int head)
85 struct nouveau_drm *drm = nouveau_drm(dev);
86 struct nouveau_disp *pdisp = nouveau_disp(drm->device);
88 if (WARN_ON_ONCE(head > ARRAY_SIZE(drm->vblank)))
90 WARN_ON_ONCE(drm->vblank[head].func);
91 drm->vblank[head].func = nouveau_drm_vblank_handler;
92 nouveau_event_get(pdisp->vblank, head, &drm->vblank[head]);
97 nouveau_drm_vblank_disable(struct drm_device *dev, int head)
99 struct nouveau_drm *drm = nouveau_drm(dev);
100 struct nouveau_disp *pdisp = nouveau_disp(drm->device);
101 if (drm->vblank[head].func)
102 nouveau_event_put(pdisp->vblank, head, &drm->vblank[head]);
105 drm->vblank[head].func = NULL;
109 nouveau_name(struct pci_dev *pdev)
111 u64 name = (u64)pci_domain_nr(pdev->bus) << 32;
112 name |= pdev->bus->number << 16;
113 name |= PCI_SLOT(pdev->devfn) << 8;
114 return name | PCI_FUNC(pdev->devfn);
118 nouveau_cli_create(struct pci_dev *pdev, const char *name,
119 int size, void **pcli)
121 struct nouveau_cli *cli;
125 ret = nouveau_client_create_(name, nouveau_name(pdev), nouveau_config,
126 nouveau_debug, size, pcli);
130 nouveau_client_destroy(&cli->base);
135 mutex_init(&cli->mutex);
140 nouveau_cli_destroy(struct nouveau_cli *cli)
142 struct nouveau_object *client = nv_object(cli);
143 nouveau_vm_ref(NULL, &cli->base.vm, NULL);
144 nouveau_client_fini(&cli->base, false);
145 atomic_set(&client->refcount, 1);
146 nouveau_object_ref(NULL, &client);
150 nouveau_accel_fini(struct nouveau_drm *drm)
152 nouveau_gpuobj_ref(NULL, &drm->notify);
153 nouveau_channel_del(&drm->channel);
154 nouveau_channel_del(&drm->cechan);
156 nouveau_fence(drm)->dtor(drm);
160 nouveau_accel_init(struct nouveau_drm *drm)
162 struct nouveau_device *device = nv_device(drm->device);
163 struct nouveau_object *object;
170 /* initialise synchronisation routines */
171 if (device->card_type < NV_10) ret = nv04_fence_create(drm);
172 else if (device->chipset < 0x17) ret = nv10_fence_create(drm);
173 else if (device->card_type < NV_50) ret = nv17_fence_create(drm);
174 else if (device->chipset < 0x84) ret = nv50_fence_create(drm);
175 else if (device->card_type < NV_C0) ret = nv84_fence_create(drm);
176 else ret = nvc0_fence_create(drm);
178 NV_ERROR(drm, "failed to initialise sync subsystem, %d\n", ret);
179 nouveau_accel_fini(drm);
183 if (device->card_type >= NV_E0) {
184 ret = nouveau_channel_new(drm, &drm->client, NVDRM_DEVICE,
186 NVE0_CHANNEL_IND_ENGINE_CE0 |
187 NVE0_CHANNEL_IND_ENGINE_CE1, 0,
190 NV_ERROR(drm, "failed to create ce channel, %d\n", ret);
192 arg0 = NVE0_CHANNEL_IND_ENGINE_GR;
199 ret = nouveau_channel_new(drm, &drm->client, NVDRM_DEVICE, NVDRM_CHAN,
200 arg0, arg1, &drm->channel);
202 NV_ERROR(drm, "failed to create kernel channel, %d\n", ret);
203 nouveau_accel_fini(drm);
207 if (device->card_type < NV_C0) {
208 ret = nouveau_gpuobj_new(drm->device, NULL, 32, 0, 0,
211 NV_ERROR(drm, "failed to allocate notifier, %d\n", ret);
212 nouveau_accel_fini(drm);
216 ret = nouveau_object_new(nv_object(drm),
217 drm->channel->handle, NvNotify0,
218 0x003d, &(struct nv_dma_class) {
219 .flags = NV_DMA_TARGET_VRAM |
221 .start = drm->notify->addr,
222 .limit = drm->notify->addr + 31
223 }, sizeof(struct nv_dma_class),
226 nouveau_accel_fini(drm);
232 nouveau_bo_move_init(drm);
235 static int nouveau_drm_probe(struct pci_dev *pdev,
236 const struct pci_device_id *pent)
238 struct nouveau_device *device;
239 struct apertures_struct *aper;
243 /* remove conflicting drivers (vesafb, efifb etc) */
244 aper = alloc_apertures(3);
248 aper->ranges[0].base = pci_resource_start(pdev, 1);
249 aper->ranges[0].size = pci_resource_len(pdev, 1);
252 if (pci_resource_len(pdev, 2)) {
253 aper->ranges[aper->count].base = pci_resource_start(pdev, 2);
254 aper->ranges[aper->count].size = pci_resource_len(pdev, 2);
258 if (pci_resource_len(pdev, 3)) {
259 aper->ranges[aper->count].base = pci_resource_start(pdev, 3);
260 aper->ranges[aper->count].size = pci_resource_len(pdev, 3);
265 boot = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW;
267 remove_conflicting_framebuffers(aper, "nouveaufb", boot);
270 ret = nouveau_device_create(pdev, nouveau_name(pdev), pci_name(pdev),
271 nouveau_config, nouveau_debug, &device);
275 pci_set_master(pdev);
277 ret = drm_get_pci_dev(pdev, pent, &driver);
279 nouveau_object_ref(NULL, (struct nouveau_object **)&device);
286 static struct lock_class_key drm_client_lock_class_key;
289 nouveau_drm_load(struct drm_device *dev, unsigned long flags)
291 struct pci_dev *pdev = dev->pdev;
292 struct nouveau_device *device;
293 struct nouveau_drm *drm;
296 ret = nouveau_cli_create(pdev, "DRM", sizeof(*drm), (void**)&drm);
299 lockdep_set_class(&drm->client.mutex, &drm_client_lock_class_key);
301 dev->dev_private = drm;
304 INIT_LIST_HEAD(&drm->clients);
305 spin_lock_init(&drm->tile.lock);
307 /* make sure AGP controller is in a consistent state before we
308 * (possibly) execute vbios init tables (see nouveau_agp.h)
310 if (drm_pci_device_is_agp(dev) && dev->agp) {
311 /* dummy device object, doesn't init anything, but allows
312 * agp code access to registers
314 ret = nouveau_object_new(nv_object(drm), NVDRM_CLIENT,
315 NVDRM_DEVICE, 0x0080,
316 &(struct nv_device_class) {
319 ~(NV_DEVICE_DISABLE_MMIO |
320 NV_DEVICE_DISABLE_IDENTIFY),
322 }, sizeof(struct nv_device_class),
327 nouveau_agp_reset(drm);
328 nouveau_object_del(nv_object(drm), NVDRM_CLIENT, NVDRM_DEVICE);
331 ret = nouveau_object_new(nv_object(drm), NVDRM_CLIENT, NVDRM_DEVICE,
332 0x0080, &(struct nv_device_class) {
336 }, sizeof(struct nv_device_class),
341 /* workaround an odd issue on nvc1 by disabling the device's
342 * nosnoop capability. hopefully won't cause issues until a
343 * better fix is found - assuming there is one...
345 device = nv_device(drm->device);
346 if (nv_device(drm->device)->chipset == 0xc1)
347 nv_mask(device, 0x00088080, 0x00000800, 0x00000000);
349 nouveau_vga_init(drm);
350 nouveau_agp_init(drm);
352 if (device->card_type >= NV_50) {
353 ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40),
354 0x1000, &drm->client.base.vm);
359 ret = nouveau_ttm_init(drm);
363 ret = nouveau_bios_init(dev);
367 ret = nouveau_display_create(dev);
371 if (dev->mode_config.num_crtc) {
372 ret = nouveau_display_init(dev);
377 nouveau_pm_init(dev);
379 nouveau_accel_init(drm);
380 nouveau_fbcon_init(dev);
384 nouveau_display_destroy(dev);
386 nouveau_bios_takedown(dev);
388 nouveau_ttm_fini(drm);
390 nouveau_agp_fini(drm);
391 nouveau_vga_fini(drm);
393 nouveau_cli_destroy(&drm->client);
398 nouveau_drm_unload(struct drm_device *dev)
400 struct nouveau_drm *drm = nouveau_drm(dev);
402 nouveau_fbcon_fini(dev);
403 nouveau_accel_fini(drm);
405 nouveau_pm_fini(dev);
407 if (dev->mode_config.num_crtc)
408 nouveau_display_fini(dev);
409 nouveau_display_destroy(dev);
411 nouveau_bios_takedown(dev);
413 nouveau_ttm_fini(drm);
414 nouveau_agp_fini(drm);
415 nouveau_vga_fini(drm);
417 nouveau_cli_destroy(&drm->client);
422 nouveau_drm_remove(struct pci_dev *pdev)
424 struct drm_device *dev = pci_get_drvdata(pdev);
425 struct nouveau_drm *drm = nouveau_drm(dev);
426 struct nouveau_object *device;
428 device = drm->client.base.device;
431 nouveau_object_ref(NULL, &device);
432 nouveau_object_debug();
436 nouveau_do_suspend(struct drm_device *dev)
438 struct nouveau_drm *drm = nouveau_drm(dev);
439 struct nouveau_cli *cli;
442 if (dev->mode_config.num_crtc) {
443 NV_INFO(drm, "suspending fbcon...\n");
444 nouveau_fbcon_set_suspend(dev, 1);
446 NV_INFO(drm, "suspending display...\n");
447 ret = nouveau_display_suspend(dev);
452 NV_INFO(drm, "evicting buffers...\n");
453 ttm_bo_evict_mm(&drm->ttm.bdev, TTM_PL_VRAM);
455 if (drm->fence && nouveau_fence(drm)->suspend) {
456 if (!nouveau_fence(drm)->suspend(drm))
460 NV_INFO(drm, "suspending client object trees...\n");
461 list_for_each_entry(cli, &drm->clients, head) {
462 ret = nouveau_client_fini(&cli->base, true);
467 ret = nouveau_client_fini(&drm->client.base, true);
471 nouveau_agp_fini(drm);
475 list_for_each_entry_continue_reverse(cli, &drm->clients, head) {
476 nouveau_client_init(&cli->base);
479 if (dev->mode_config.num_crtc) {
480 NV_INFO(drm, "resuming display...\n");
481 nouveau_display_resume(dev);
486 int nouveau_pmops_suspend(struct device *dev)
488 struct pci_dev *pdev = to_pci_dev(dev);
489 struct drm_device *drm_dev = pci_get_drvdata(pdev);
492 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF)
495 ret = nouveau_do_suspend(drm_dev);
499 pci_save_state(pdev);
500 pci_disable_device(pdev);
501 pci_set_power_state(pdev, PCI_D3hot);
507 nouveau_do_resume(struct drm_device *dev)
509 struct nouveau_drm *drm = nouveau_drm(dev);
510 struct nouveau_cli *cli;
512 NV_INFO(drm, "re-enabling device...\n");
514 nouveau_agp_reset(drm);
516 NV_INFO(drm, "resuming client object trees...\n");
517 nouveau_client_init(&drm->client.base);
518 nouveau_agp_init(drm);
520 list_for_each_entry(cli, &drm->clients, head) {
521 nouveau_client_init(&cli->base);
524 if (drm->fence && nouveau_fence(drm)->resume)
525 nouveau_fence(drm)->resume(drm);
527 nouveau_run_vbios_init(dev);
528 nouveau_pm_resume(dev);
530 if (dev->mode_config.num_crtc) {
531 NV_INFO(drm, "resuming display...\n");
532 nouveau_display_resume(dev);
537 int nouveau_pmops_resume(struct device *dev)
539 struct pci_dev *pdev = to_pci_dev(dev);
540 struct drm_device *drm_dev = pci_get_drvdata(pdev);
543 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF)
546 pci_set_power_state(pdev, PCI_D0);
547 pci_restore_state(pdev);
548 ret = pci_enable_device(pdev);
551 pci_set_master(pdev);
553 return nouveau_do_resume(drm_dev);
556 static int nouveau_pmops_freeze(struct device *dev)
558 struct pci_dev *pdev = to_pci_dev(dev);
559 struct drm_device *drm_dev = pci_get_drvdata(pdev);
561 return nouveau_do_suspend(drm_dev);
564 static int nouveau_pmops_thaw(struct device *dev)
566 struct pci_dev *pdev = to_pci_dev(dev);
567 struct drm_device *drm_dev = pci_get_drvdata(pdev);
569 return nouveau_do_resume(drm_dev);
574 nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv)
576 struct pci_dev *pdev = dev->pdev;
577 struct nouveau_drm *drm = nouveau_drm(dev);
578 struct nouveau_cli *cli;
579 char name[32], tmpname[TASK_COMM_LEN];
582 get_task_comm(tmpname, current);
583 snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid));
585 ret = nouveau_cli_create(pdev, name, sizeof(*cli), (void **)&cli);
589 if (nv_device(drm->device)->card_type >= NV_50) {
590 ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40),
591 0x1000, &cli->base.vm);
593 nouveau_cli_destroy(cli);
598 fpriv->driver_priv = cli;
600 mutex_lock(&drm->client.mutex);
601 list_add(&cli->head, &drm->clients);
602 mutex_unlock(&drm->client.mutex);
607 nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv)
609 struct nouveau_cli *cli = nouveau_cli(fpriv);
610 struct nouveau_drm *drm = nouveau_drm(dev);
613 nouveau_abi16_fini(cli->abi16);
615 mutex_lock(&drm->client.mutex);
616 list_del(&cli->head);
617 mutex_unlock(&drm->client.mutex);
621 nouveau_drm_postclose(struct drm_device *dev, struct drm_file *fpriv)
623 struct nouveau_cli *cli = nouveau_cli(fpriv);
624 nouveau_cli_destroy(cli);
627 static struct drm_ioctl_desc
629 DRM_IOCTL_DEF_DRV(NOUVEAU_GETPARAM, nouveau_abi16_ioctl_getparam, DRM_UNLOCKED|DRM_AUTH),
630 DRM_IOCTL_DEF_DRV(NOUVEAU_SETPARAM, nouveau_abi16_ioctl_setparam, DRM_UNLOCKED|DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
631 DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_ALLOC, nouveau_abi16_ioctl_channel_alloc, DRM_UNLOCKED|DRM_AUTH),
632 DRM_IOCTL_DEF_DRV(NOUVEAU_CHANNEL_FREE, nouveau_abi16_ioctl_channel_free, DRM_UNLOCKED|DRM_AUTH),
633 DRM_IOCTL_DEF_DRV(NOUVEAU_GROBJ_ALLOC, nouveau_abi16_ioctl_grobj_alloc, DRM_UNLOCKED|DRM_AUTH),
634 DRM_IOCTL_DEF_DRV(NOUVEAU_NOTIFIEROBJ_ALLOC, nouveau_abi16_ioctl_notifierobj_alloc, DRM_UNLOCKED|DRM_AUTH),
635 DRM_IOCTL_DEF_DRV(NOUVEAU_GPUOBJ_FREE, nouveau_abi16_ioctl_gpuobj_free, DRM_UNLOCKED|DRM_AUTH),
636 DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_NEW, nouveau_gem_ioctl_new, DRM_UNLOCKED|DRM_AUTH),
637 DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_PUSHBUF, nouveau_gem_ioctl_pushbuf, DRM_UNLOCKED|DRM_AUTH),
638 DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_CPU_PREP, nouveau_gem_ioctl_cpu_prep, DRM_UNLOCKED|DRM_AUTH),
639 DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_CPU_FINI, nouveau_gem_ioctl_cpu_fini, DRM_UNLOCKED|DRM_AUTH),
640 DRM_IOCTL_DEF_DRV(NOUVEAU_GEM_INFO, nouveau_gem_ioctl_info, DRM_UNLOCKED|DRM_AUTH),
643 static const struct file_operations
644 nouveau_driver_fops = {
645 .owner = THIS_MODULE,
647 .release = drm_release,
648 .unlocked_ioctl = drm_ioctl,
649 .mmap = nouveau_ttm_mmap,
651 .fasync = drm_fasync,
653 #if defined(CONFIG_COMPAT)
654 .compat_ioctl = nouveau_compat_ioctl,
656 .llseek = noop_llseek,
659 static struct drm_driver
662 DRIVER_USE_AGP | DRIVER_PCI_DMA | DRIVER_SG |
663 DRIVER_GEM | DRIVER_MODESET | DRIVER_PRIME,
665 .load = nouveau_drm_load,
666 .unload = nouveau_drm_unload,
667 .open = nouveau_drm_open,
668 .preclose = nouveau_drm_preclose,
669 .postclose = nouveau_drm_postclose,
670 .lastclose = nouveau_vga_lastclose,
672 #if defined(CONFIG_DEBUG_FS)
673 .debugfs_init = nouveau_debugfs_init,
674 .debugfs_cleanup = nouveau_debugfs_takedown,
677 .get_vblank_counter = drm_vblank_count,
678 .enable_vblank = nouveau_drm_vblank_enable,
679 .disable_vblank = nouveau_drm_vblank_disable,
681 .ioctls = nouveau_ioctls,
682 .fops = &nouveau_driver_fops,
684 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
685 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
686 .gem_prime_export = drm_gem_prime_export,
687 .gem_prime_import = drm_gem_prime_import,
688 .gem_prime_pin = nouveau_gem_prime_pin,
689 .gem_prime_get_sg_table = nouveau_gem_prime_get_sg_table,
690 .gem_prime_import_sg_table = nouveau_gem_prime_import_sg_table,
691 .gem_prime_vmap = nouveau_gem_prime_vmap,
692 .gem_prime_vunmap = nouveau_gem_prime_vunmap,
694 .gem_init_object = nouveau_gem_object_new,
695 .gem_free_object = nouveau_gem_object_del,
696 .gem_open_object = nouveau_gem_object_open,
697 .gem_close_object = nouveau_gem_object_close,
699 .dumb_create = nouveau_display_dumb_create,
700 .dumb_map_offset = nouveau_display_dumb_map_offset,
701 .dumb_destroy = nouveau_display_dumb_destroy,
706 .date = GIT_REVISION,
710 .major = DRIVER_MAJOR,
711 .minor = DRIVER_MINOR,
712 .patchlevel = DRIVER_PATCHLEVEL,
715 static struct pci_device_id
716 nouveau_drm_pci_table[] = {
718 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID),
719 .class = PCI_BASE_CLASS_DISPLAY << 16,
720 .class_mask = 0xff << 16,
723 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA_SGS, PCI_ANY_ID),
724 .class = PCI_BASE_CLASS_DISPLAY << 16,
725 .class_mask = 0xff << 16,
730 static const struct dev_pm_ops nouveau_pm_ops = {
731 .suspend = nouveau_pmops_suspend,
732 .resume = nouveau_pmops_resume,
733 .freeze = nouveau_pmops_freeze,
734 .thaw = nouveau_pmops_thaw,
735 .poweroff = nouveau_pmops_freeze,
736 .restore = nouveau_pmops_resume,
739 static struct pci_driver
740 nouveau_drm_pci_driver = {
742 .id_table = nouveau_drm_pci_table,
743 .probe = nouveau_drm_probe,
744 .remove = nouveau_drm_remove,
745 .driver.pm = &nouveau_pm_ops,
749 nouveau_drm_init(void)
751 driver.num_ioctls = ARRAY_SIZE(nouveau_ioctls);
753 if (nouveau_modeset == -1) {
754 #ifdef CONFIG_VGA_CONSOLE
755 if (vgacon_text_force())
760 if (!nouveau_modeset)
763 nouveau_register_dsm_handler();
764 return drm_pci_init(&driver, &nouveau_drm_pci_driver);
768 nouveau_drm_exit(void)
770 if (!nouveau_modeset)
773 drm_pci_exit(&driver, &nouveau_drm_pci_driver);
774 nouveau_unregister_dsm_handler();
777 module_init(nouveau_drm_init);
778 module_exit(nouveau_drm_exit);
780 MODULE_DEVICE_TABLE(pci, nouveau_drm_pci_table);
781 MODULE_AUTHOR(DRIVER_AUTHOR);
782 MODULE_DESCRIPTION(DRIVER_DESC);
783 MODULE_LICENSE("GPL and additional rights");