Skip to content

Instantly share code, notes, and snippets.

@jbohren
Created December 4, 2012 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbohren/4204869 to your computer and use it in GitHub Desktop.
Save jbohren/4204869 to your computer and use it in GitHub Desktop.
[PATCH] Adding device ID for PEAK PCIe card IPEH-003027
From d97ee63e108c3f6eff26368af0df3ba1d1050692 Mon Sep 17 00:00:00 2001
From: Jonathan Bohren <jbo@jhu.edu>
Date: Tue, 27 Nov 2012 09:13:11 -0500
Subject: [PATCH] Adding device ID for PEAK PCIe card IPEH-003027
Signed-off-by: Jonathan Bohren <jbo@jhu.edu>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
---
ksrc/drivers/can/sja1000/rtcan_peak_pci.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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);
--
1.7.9.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment