summaryrefslogtreecommitdiff
path: root/include/drm/intel/pciids.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2025-08-08 10:41:08 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2025-08-11 07:45:48 -0700
commitedb660ad79ffe81a982c2eca02360a6ffac83e46 (patch)
treeb3fb733889495fcba075f56cd852c72130cad12e /include/drm/intel/pciids.h
parentd301eb950da59f962bafe874cf5eb6d61a85b2c2 (diff)
drm/intel/pciids: Add match on vendor/id only
All our PCI ID macros match on the PCI class besides the vendor and devid, even for devices that may or may not have display. This may not work going forward, so add a simple INTEL_PCI_DEVICE that matches only on vendor/device IDs. Cc: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://lore.kernel.org/r/20250808-intel-pci-device-v1-1-ce3545d86502@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'include/drm/intel/pciids.h')
-rw-r--r--include/drm/intel/pciids.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/intel/pciids.h b/include/drm/intel/pciids.h
index 76f8d26f9cc9..da6301a6fcea 100644
--- a/include/drm/intel/pciids.h
+++ b/include/drm/intel/pciids.h
@@ -26,6 +26,11 @@
#define __PCIIDS_H__
#ifdef __KERNEL__
+#define INTEL_PCI_DEVICE(_id, _info) { \
+ PCI_DEVICE(PCI_VENDOR_ID_INTEL, (_id)), \
+ .driver_data = (kernel_ulong_t)(_info), \
+}
+
#define INTEL_VGA_DEVICE(_id, _info) { \
PCI_DEVICE(PCI_VENDOR_ID_INTEL, (_id)), \
.class = PCI_BASE_CLASS_DISPLAY << 16, .class_mask = 0xff << 16, \