|
@@ -820,6 +820,21 @@ struct pci_driver {
|
|
|
.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
|
|
|
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
|
|
|
|
|
|
+/**
|
|
|
+ * PCI_DEVICE_DATA - macro used to describe a specific PCI device in very short form
|
|
|
+ * @vend: the vendor name (without PCI_VENDOR_ID_ prefix)
|
|
|
+ * @dev: the device name (without PCI_DEVICE_ID_<vend>_ prefix)
|
|
|
+ * @data: the driver data to be filled
|
|
|
+ *
|
|
|
+ * This macro is used to create a struct pci_device_id that matches a
|
|
|
+ * specific PCI device. The subvendor, and subdevice fields will be set
|
|
|
+ * to PCI_ANY_ID.
|
|
|
+ */
|
|
|
+#define PCI_DEVICE_DATA(vend, dev, data) \
|
|
|
+ .vendor = PCI_VENDOR_ID_##vend, .device = PCI_DEVICE_ID_##vend##_##dev, \
|
|
|
+ .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0, \
|
|
|
+ .driver_data = (kernel_ulong_t)(data)
|
|
|
+
|
|
|
enum {
|
|
|
PCI_REASSIGN_ALL_RSRC = 0x00000001, /* Ignore firmware setup */
|
|
|
PCI_REASSIGN_ALL_BUS = 0x00000002, /* Reassign all bus numbers */
|