[PATCH] IXXAT CAN i165

From: Georg Gast
Date: Fri Feb 06 2015 - 07:03:53 EST


---
drivers/net/can/sja1000/plx_pci.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/drivers/net/can/sja1000/plx_pci.c b/drivers/net/can/sja1000/plx_pci.c
index 8836a74..7e59478 100644
--- a/drivers/net/can/sja1000/plx_pci.c
+++ b/drivers/net/can/sja1000/plx_pci.c
@@ -45,6 +45,7 @@ MODULE_SUPPORTED_DEVICE("Adlink PCI-7841/cPCI-7841, "
"esd CAN-PCIe/2000, "
"Connect Tech Inc. CANpro/104-Plus Opto (CRG001), "
"IXXAT PC-I 04/PCI, "
+ "IXXAT CAN i165, "
"ELCUS CAN-200-PCI")
MODULE_LICENSE("GPL v2");

@@ -131,6 +132,7 @@ struct plx_pci_card {
#define IXXAT_PCI_VENDOR_ID 0x10b5
#define IXXAT_PCI_DEVICE_ID 0x9050
#define IXXAT_PCI_SUB_SYS_ID 0x2540
+#define IXXAT_PCI_I165_SUB_SYS_ID 0x1065

#define MARATHON_PCI_DEVICE_ID 0x2715

@@ -215,6 +217,14 @@ static struct plx_pci_card_info plx_pci_card_info_ixxat = {
/* based on PLX9050 */
};

+static struct plx_pci_card_info plx_pci_card_info_ixxat_i165 = {
+ "IXXAT CAN i165", 1,
+ PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
+ {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x200, 0x80} },
+ &plx_pci_reset_common
+ /* based on PLX9050 */
+};
+
static struct plx_pci_card_info plx_pci_card_info_marathon = {
"Marathon CAN-bus-PCI", 2,
PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR,
@@ -312,6 +322,13 @@ static const struct pci_device_id plx_pci_tbl[] = {
(kernel_ulong_t)&plx_pci_card_info_ixxat
},
{
+ /* IXXAT CAN i165 card */
+ IXXAT_PCI_VENDOR_ID, IXXAT_PCI_DEVICE_ID,
+ PCI_ANY_ID, IXXAT_PCI_I165_SUB_SYS_ID,
+ 0, 0,
+ (kernel_ulong_t)&plx_pci_card_info_ixxat_i165
+ },
+ {
/* Marathon CAN-bus-PCI card */
PCI_VENDOR_ID_PLX, MARATHON_PCI_DEVICE_ID,
PCI_ANY_ID, PCI_ANY_ID,
@@ -514,6 +531,7 @@ static int plx_pci_add_card(struct pci_dev *pdev,
u32 val;
void __iomem *addr;

+ printk("plx_pci: Probing ...");
ci = (struct plx_pci_card_info *)ent->driver_data;

if (pci_enable_device(pdev) < 0) {
--
2.0.5


--------------040003030501010902090200--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/