Deleted Added
full compact
drm_drv.c (184213) drm_drv.c (186299)
1/*-
2 * Copyright 1999, 2000 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

--- 15 unchanged lines hidden (view full) ---

24 *
25 * Authors:
26 * Rickard E. (Rik) Faith <faith@valinux.com>
27 * Gareth Hughes <gareth@valinux.com>
28 *
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright 1999, 2000 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

--- 15 unchanged lines hidden (view full) ---

24 *
25 * Authors:
26 * Rickard E. (Rik) Faith <faith@valinux.com>
27 * Gareth Hughes <gareth@valinux.com>
28 *
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/drm/drm_drv.c 184213 2008-10-23 20:23:03Z rnoland $");
32__FBSDID("$FreeBSD: head/sys/dev/drm/drm_drv.c 186299 2008-12-18 21:58:57Z rnoland $");
33
34/** @file drm_drv.c
35 * The catch-all file for DRM device support, including module setup/teardown,
36 * open/close, and ioctl dispatch.
37 */
38
39
40#include <sys/limits.h>

--- 106 unchanged lines hidden (view full) ---

147 realdev = dev;
148 vendor = pci_get_vendor(realdev);
149 device = pci_get_device(realdev);
150#else
151 vendor = pci_get_vendor(dev);
152 device = pci_get_device(dev);
153#endif
154
33
34/** @file drm_drv.c
35 * The catch-all file for DRM device support, including module setup/teardown,
36 * open/close, and ioctl dispatch.
37 */
38
39
40#include <sys/limits.h>

--- 106 unchanged lines hidden (view full) ---

147 realdev = dev;
148 vendor = pci_get_vendor(realdev);
149 device = pci_get_device(realdev);
150#else
151 vendor = pci_get_vendor(dev);
152 device = pci_get_device(dev);
153#endif
154
155 if (pci_get_class(dev) != PCIC_DISPLAY
156 || pci_get_subclass(dev) != PCIS_DISPLAY_VGA)
157 return ENXIO;
158
155 id_entry = drm_find_description(vendor, device, idlist);
156 if (id_entry != NULL) {
157 device_set_desc(dev, id_entry->name);
158 return 0;
159 }
160
161 return ENXIO;
162}

--- 619 unchanged lines hidden ---
159 id_entry = drm_find_description(vendor, device, idlist);
160 if (id_entry != NULL) {
161 device_set_desc(dev, id_entry->name);
162 return 0;
163 }
164
165 return ENXIO;
166}

--- 619 unchanged lines hidden ---