Skip to contentSkip to conversation

MODULE_DEVICE_TABLE for Applicom fieldbus card driver

PATCH New Andrey Panin 1 participant 1 message Oct 19, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MODULE_DEVICE_TABLE for Applicom fieldbus card driver

Last patch for this week ...

Signature · 2 lines
Andrey Panin            | Embedded systems software engineer
[email protected]        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/char/applicom.c renamed from linux.vanilla/drivers/char/applicom.c +11 -0
diff -ur -X /usr/dontdiff /linux.vanilla/drivers/char/applicom.c /linux/drivers/char/applicom.c
@@ -72,6 +72,17 @@
 	"PCI2000PFB"
 };
 
+static struct pci_device_id applicom_pci_tbl[] = {
+	{ PCI_VENDOR_ID_APPLICOM, PCI_DEVICE_ID_APPLICOM_PCIGENERIC,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+	{ PCI_VENDOR_ID_APPLICOM, PCI_DEVICE_ID_APPLICOM_PCI2000IBS_CAN,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+	{ PCI_VENDOR_ID_APPLICOM, PCI_DEVICE_ID_APPLICOM_PCI2000PFB,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+	{ 0 }
+};
+MODULE_DEVICE_TABLE(pci, applicom_pci_tbl);
+
 MODULE_AUTHOR("David Woodhouse & Applicom International");
 MODULE_DESCRIPTION("Driver for Applicom Profibus card");
 MODULE_LICENSE("GPL");