summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm2/drmP.h
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2013-08-25 00:13:53 +0000
committerdumbbell <dumbbell@FreeBSD.org>2013-08-25 00:13:53 +0000
commitd1f3b5c0e2ca6604e1791a3d0147aa3ef9b0c5c8 (patch)
tree12773d6dce9b73449f72e16474ab92fb66346fa4 /sys/dev/drm2/drmP.h
parentcdf933a4a40d6d5a612f1bbc96ef2ca0f92237a4 (diff)
downloadFreeBSD-src-d1f3b5c0e2ca6604e1791a3d0147aa3ef9b0c5c8.zip
FreeBSD-src-d1f3b5c0e2ca6604e1791a3d0147aa3ef9b0c5c8.tar.gz
drm: Use driver-provided "use_msi" callback to determine if MSI is blacklisted
For now, keep the static array for i915. But eventually, it should be moved to a callback in the driver itself.
Diffstat (limited to 'sys/dev/drm2/drmP.h')
-rw-r--r--sys/dev/drm2/drmP.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h
index 9db04f3..284bb7f 100644
--- a/sys/dev/drm2/drmP.h
+++ b/sys/dev/drm2/drmP.h
@@ -698,6 +698,7 @@ struct drm_gem_object {
struct drm_driver_info {
int (*load)(struct drm_device *, unsigned long flags);
+ int (*use_msi)(struct drm_device *, unsigned long flags);
int (*firstopen)(struct drm_device *);
int (*open)(struct drm_device *, struct drm_file *);
void (*preclose)(struct drm_device *, struct drm_file *file_priv);
@@ -829,8 +830,10 @@ struct drm_device {
struct drm_driver_info *driver;
drm_pci_id_list_t *id_entry; /* PCI ID, name, and chipset private */
- u_int16_t pci_device; /* PCI device id */
- u_int16_t pci_vendor; /* PCI vendor id */
+ uint16_t pci_device; /* PCI device id */
+ uint16_t pci_vendor; /* PCI vendor id */
+ uint16_t pci_subdevice; /* PCI subsystem device id */
+ uint16_t pci_subvendor; /* PCI subsystem vendor id */
char *unique; /* Unique identifier: e.g., busid */
int unique_len; /* Length of unique field */
OpenPOWER on IntegriCloud