Module: xenomai-2.6
Branch: master
Commit: c6a900b6b9761992f38a07f102ece8e56bb80344
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=c6a900b6b9761992f38a07f102ece8e56bb80344

Author: Wolfgang Grandegger <w...@grandegger.com>
Date:   Tue Dec  4 16:16:38 2012 +0100

rtcan: Adding device ID for PEAK PCIe card IPEH-003027

Signed-off-by: Jonathan Bohren <j...@jhu.edu>
Acked-by: Wolfgang Grandegger <w...@grandegger.com>

---

 ksrc/drivers/can/sja1000/rtcan_peak_pci.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/can/sja1000/rtcan_peak_pci.c 
b/ksrc/drivers/can/sja1000/rtcan_peak_pci.c
index 53c8fef..b5ad226 100644
--- a/ksrc/drivers/can/sja1000/rtcan_peak_pci.c
+++ b/ksrc/drivers/can/sja1000/rtcan_peak_pci.c
@@ -71,13 +71,15 @@ struct rtcan_peak_pci
 #define PITA_MISC        0x1C        // miscellanoes register
 
 #define PEAK_PCI_VENDOR_ID   0x001C  // the PCI device and vendor IDs
-#define PEAK_PCI_DEVICE_ID   0x0001
+#define PEAK_PCI_DEVICE_ID   0x0001  // Device ID for PCI and older PCIe cards
+#define PEAK_PCIE_DEVICE_ID  0x0003  // Device ID for newer PCIe cards 
(IPEH-003027)
 
 #define PCI_CONFIG_PORT_SIZE 0x1000  // size of the config io-memory
 #define PCI_PORT_SIZE        0x0400  // size of a channel io-memory
 
 static struct pci_device_id peak_pci_tbl[] = {
        {PEAK_PCI_VENDOR_ID, PEAK_PCI_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 
0},
+       {PEAK_PCI_VENDOR_ID, PEAK_PCIE_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 
0},
        { }
 };
 MODULE_DEVICE_TABLE (pci, peak_pci_tbl);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to