Skip to contentSkip to conversation

rtcan: add rtcan_plx_pci driver

PATCH Superseded Pavel Cheblakov 4 participants 17 messages May 19, 2010 – Jun 6, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rtcan: add rtcan_plx_pci driver

This is a general driver for cards based on PLX90xx PCI-bridges. It supports following cards:
- Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
- Adlink PCI-7841/cPCI-7841 SE card
- esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
- esd CAN-PCI/PMC/266
- esd CAN-PCIe/2000
- Marathon CAN-bus-PCI card (http://www.marathon.ru/)
- TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)

This driver has been ported from socketcan of mainline Linux kernel 2.6.34. Support of esd cards has been added by Matthias Fuchs in linux-next

'rtcan_esd_pci' driver marked as deprecated.

---
 ksrc/drivers/can/sja1000/Kconfig         |   20 +-
 ksrc/drivers/can/sja1000/Makefile        |    7 +
 ksrc/drivers/can/sja1000/rtcan_plx_pci.c |  608 ++++++++++++++++++++++++++++++
 3 files changed, 634 insertions(+), 1 deletions(-)
 create mode 100644 ksrc/drivers/can/sja1000/rtcan_plx_pci.c
ksrc/drivers/can/sja1000/Kconfig +19 -1
index 56f4691..f1db6d0 100644
@@ -41,6 +41,21 @@ config XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI
 	the second channel working, Xenomai's shared interrupt support
 	must be enabled.
 
+config XENO_DRIVERS_CAN_SJA1000_PLX_PCI
+	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
+	tristate "PLX90xx PCI-bridge based Cards"
+	help
+
+	This driver is for CAN interface cards based on
+	the PLX90xx PCI bridge.
+	Driver supports now:
+	 - Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
+	 - Adlink PCI-7841/cPCI-7841 SE card
+	 - esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
+	 - esd CAN-PCI/PMC/266
+	 - esd CAN-PCIe/2000
+	 - Marathon CAN-bus-PCI card (http://www.marathon.ru/)
+	 - TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)
 
 config XENO_DRIVERS_CAN_SJA1000_EMS_PCI
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
@@ -52,7 +67,7 @@ config XENO_DRIVERS_CAN_SJA1000_EMS_PCI
 	working, Xenomai's shared interrupt support must be enabled.
 
 
-config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
+config XENO_DRIVERS_CAN_SJA1000_ESD_PCI (DEPRECATED)
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
 	tristate "ESD PCI Cards"
 	help
@@ -61,6 +76,9 @@ config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	CAN-PCI/266, CAN-PMC/266 (PMC), CAN-CPCI/200 (CompactPCI),
 	CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104)
 	from the esd electronic system design gmbh (http://www.esd.eu).
+	
+	This driver is deprecated. It's functionality is now provided by
+	"PLX90xx PCI-bridge based Cards" driver.
 
 
 config XENO_DRIVERS_CAN_SJA1000_PEAK_DNG
ksrc/drivers/can/sja1000/Makefile +7 -0
index 09a03ab..389ca04 100644
@@ -7,6 +7,7 @@ EXTRA_CFLAGS += -D__IN_XENOMAI__ -Iinclude/xenomai -Idrivers/xenomai/can -Idrive
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000) += xeno_can_sja1000.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_PCI) += xeno_can_peak_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_DNG) += xeno_can_peak_dng.o
+obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PLX_PCI) += xeno_can_plx_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI) += xeno_can_ixxat_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_EMS_PCI) += xeno_can_ems_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_ESD_PCI) += xeno_can_esd_pci.o
@@ -16,6 +17,7 @@ obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_MEM) += xeno_can_mem.o
 xeno_can_sja1000-y := rtcan_sja1000.o rtcan_sja1000_proc.o
 xeno_can_peak_pci-y := rtcan_peak_pci.o
 xeno_can_peak_dng-y := rtcan_peak_dng.o
+xeno_can_plx_pci-y := rtcan_plx_pci.o
 xeno_can_ixxat_pci-y := rtcan_ixxat_pci.o
 xeno_can_ems_pci-y := rtcan_ems_pci.o
 xeno_can_esd_pci-y := rtcan_esd_pci.o
@@ -31,6 +33,7 @@ O_TARGET := built-in.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000) += xeno_can_sja1000.o 
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_PCI) += xeno_can_peak_pci.o 
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_DNG) += xeno_can_peak_dng.o 
+obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PLX_PCI) += xeno_can_plx_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI) += xeno_can_ixxat_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_EMS_PCI) += xeno_can_ems_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_ESD_PCI) += xeno_can_esd_pci.o
@@ -42,6 +45,7 @@ list-multi := xeno_can_sja1000.o
 xeno_can_sja1000-objs := rtcan_sja1000.o rtcan_sja1000_proc.o
 xeno_can_peak_pci-objs := rtcan_peak_pci.o
 xeno_can_peak_dng-objs := rtcan_peak_dng.o
+xeno_can_plx_pci-objs := rtcan_plx_pci.o
 xeno_can_ixxat_pci-objs := rtcan_ixxat_pci.o
 xeno_can_ems_pci-objs := rtcan_ems_pci.o
 xeno_can_esd_pci-objs := rtcan_esd_pci.o
@@ -63,6 +67,9 @@ xeno_can_peak_pci.o: $(xeno_can_peak_pci-objs)
 xeno_can_peak_dng.o: $(xeno_can_peak_dng-objs)
 	$(LD) -r -o $@ $(xeno_can_peak_dng-objs)
 
+xeno_can_plx_pci.o: $(xeno_can_plx_pci-objs)
+	$(LD) -r -o $@ $(xeno_can_plx_pci-objs)
+
 xeno_can_ixxat_pci.o: $(xeno_can_ixxat_pci-objs)
 	$(LD) -r -o $@ $(xeno_can_ixxat_pci-objs)
 
ksrc/drivers/can/sja1000/rtcan_plx_pci.c new file +608 -0

608 lines not on this page · raw message

Signature · 1 line
1.6.0.6
#1 lore raw
Quoted 10 lines · Pavel Cheblakov

This is a general driver for cards based on PLX90xx PCI-bridges. It supports following cards:
- Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
- Adlink PCI-7841/cPCI-7841 SE card
- esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
- esd CAN-PCI/PMC/266
- esd CAN-PCIe/2000
- Marathon CAN-bus-PCI card (http://www.marathon.ru/)
- TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)

Quoted 7 lines

This driver has been ported from socketcan of mainline Linux kernel 2.6.34. Support of esd cards has been added by Matthias Fuchs in linux-next

'rtcan_esd_pci' driver marked as deprecated.

Looks good now, thanks.

Wolfgang.

#2 lore raw
Quoted 17 lines · Wolfgang Grandegger
Quoted 15 lines · Pavel Cheblakov

This is a general driver for cards based on PLX90xx PCI-bridges. It supports following cards:
- Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
- Adlink PCI-7841/cPCI-7841 SE card
- esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
- esd CAN-PCI/PMC/266
- esd CAN-PCIe/2000
- Marathon CAN-bus-PCI card (http://www.marathon.ru/)
- TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)

This driver has been ported from socketcan of mainline Linux kernel 2.6.34. Support of esd cards has been added by Matthias Fuchs in linux-next

'rtcan_esd_pci' driver marked as deprecated.

Quoted 8 lines
Quoted 3 lines

Looks good now, thanks.

Wolfgang.

Hello!

Wolfgang, will be added my driver to xenomai repo?
I want to share it with my colleagues and it will be a good resource.

Pavel

#3 lore raw
Quoted 25 lines · P.B.Cheblakov
Quoted 24 lines · Wolfgang Grandegger
Quoted 10 lines · Pavel Cheblakov

This is a general driver for cards based on PLX90xx PCI-bridges. It supports following cards:
- Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
- Adlink PCI-7841/cPCI-7841 SE card
- esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
- esd CAN-PCI/PMC/266
- esd CAN-PCIe/2000
- Marathon CAN-bus-PCI card (http://www.marathon.ru/)
- TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)

Quoted 9 lines

This driver has been ported from socketcan of mainline Linux kernel 2.6.34.
Support of esd cards has been added by Matthias Fuchs in linux-next

'rtcan_esd_pci' driver marked as deprecated.

Looks good now, thanks.

Quoted 7 lines
Quoted 2 lines

Wolfgang.

Hello!

Wolfgang, will be added my driver to xenomai repo?

From my point of view, yes. Gilles could you please commit this patch?

Thanks,

Wolfgan

#5 lore raw
Quoted 6 lines · Gilles Chanteperdrix
Quoted 1 line · Wolfgang Grandegger

From my point of view, yes. Gilles could you please commit this patch?

No, it seems the patch causes a build issue:

http://sisyphus.hd.free.fr/~gilles/bx/

Oops, obviously the Kconfig entry is invalid:

+config XENO_DRIVERS_CAN_SJA1000_ESD_PCI (DEPRECATED)

The "(DEPRECATED)" is causing the trouble, I assume.

depends on XENO_DRIVERS_CAN_SJA1000 && PCI tristate "ESD PCI Cards"

Maybe you want to add the "(DEPRECATED)" here.

help
@@ -61,6 +76,9 @@ config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
CAN-PCI/266, CAN-PMC/266 (PMC), CAN-CPCI/200 (CompactPCI), CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104) from the esd electronic system design gmbh (http://www.esd.eu).
+

Trailing white space!

+ This driver is deprecated. It's functionality is now provided by
+ "PLX90xx PCI-bridge based Cards" driver.

Pavel, could you please fix that.

Thanks,

Wolfgang.

#6 lore raw
Quoted 30 lines · Wolfgang Grandegger
Quoted 5 lines · Gilles Chanteperdrix
Quoted 1 line · Wolfgang Grandegger

From my point of view, yes. Gilles could you please commit this patch?

No, it seems the patch causes a build issue:

http://sisyphus.hd.free.fr/~gilles/bx/

Oops, obviously the Kconfig entry is invalid:

+config XENO_DRIVERS_CAN_SJA1000_ESD_PCI (DEPRECATED)

The "(DEPRECATED)" is causing the trouble, I assume.

ksrc/drivers/can/sja1000/Kconfig +0 -0
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
 	tristate "ESD PCI Cards"

Maybe you want to add the "(DEPRECATED)" here.

ksrc/drivers/can/sja1000/Kconfig +1 -0
 	help
@@ -61,6 +76,9 @@ config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	CAN-PCI/266, CAN-PMC/266 (PMC), CAN-CPCI/200 (CompactPCI),
 	CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104)
 	from the esd electronic system design gmbh (http://www.esd.eu).
+	
 

Trailing white space!

ksrc/drivers/can/sja1000/Kconfig +2 -0
+	This driver is deprecated. It's functionality is now provided by
+	"PLX90xx PCI-bridge based Cards" driver.
Quoted 1 line

Pavel, could you please fix that.

Ok. If these are the only differences between the patch which was actually tested and the patch you posted, simply tell us, I can fix it in my tree.

Signature · 1 line
					    Gilles.
#7 lore raw
Quoted 28 lines · Gilles Chanteperdrix
Quoted 27 lines · Wolfgang Grandegger
Quoted 5 lines · Gilles Chanteperdrix
Quoted 1 line · Wolfgang Grandegger

From my point of view, yes. Gilles could you please commit this patch?

No, it seems the patch causes a build issue:

http://sisyphus.hd.free.fr/~gilles/bx/

Oops, obviously the Kconfig entry is invalid:

+config XENO_DRIVERS_CAN_SJA1000_ESD_PCI (DEPRECATED)

The "(DEPRECATED)" is causing the trouble, I assume.

(quoted diff) +0 -0
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
 	tristate "ESD PCI Cards"

Maybe you want to add the "(DEPRECATED)" here.

(quoted diff) +1 -0
 	help
@@ -61,6 +76,9 @@ config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	CAN-PCI/266, CAN-PMC/266 (PMC), CAN-CPCI/200 (CompactPCI),
 	CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104)
 	from the esd electronic system design gmbh (http://www.esd.eu).
+	
 

Trailing white space!

Quoted 8 lines
Quoted 4 lines
(quoted diff) +2 -0
+	This driver is deprecated. It's functionality is now provided by
+	"PLX90xx PCI-bridge based Cards" driver.

Pavel, could you please fix that.

Ok. If these are the only differences between the patch which was actually tested and the patch you posted, simply tell us, I can fix it in my tree.

The attached patch fixes the remaining issues, including some compiler warnings :-(.

Thanks,

Wolfgang.

---
 ksrc/drivers/can/sja1000/Kconfig         |   10 ++++------
 ksrc/drivers/can/sja1000/rtcan_plx_pci.c |    8 ++++----
 2 files changed, 8 insertions(+), 10 deletions(-)
ksrc/drivers/can/sja1000/Kconfig +4 -6
Index: xenomai-2.5/ksrc/drivers/can/sja1000/Kconfig
===================================================================
@@ -66,21 +66,19 @@ config XENO_DRIVERS_CAN_SJA1000_EMS_PCI
 	Wünsche (http://www.ems-wuensche.de). To get the second channel
 	working, Xenomai's shared interrupt support must be enabled.
 
-
-config XENO_DRIVERS_CAN_SJA1000_ESD_PCI (DEPRECATED)
+config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
-	tristate "ESD PCI Cards"
+	tristate "ESD PCI Cards (DEPRECATED)"
 	help
 
 	This driver supports the esd PCI CAN cards CAN-PCI/200,
 	CAN-PCI/266, CAN-PMC/266 (PMC), CAN-CPCI/200 (CompactPCI),
 	CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104)
-	from the esd electronic system design gmbh (http://www.esd.eu).
-	
+	from the esd electronic system design gmbh (http://www.esd.eu)
+
 	This driver is deprecated. It's functionality is now provided by
 	"PLX90xx PCI-bridge based Cards" driver.
 
-
 config XENO_DRIVERS_CAN_SJA1000_PEAK_DNG
 	depends on XENO_DRIVERS_CAN_SJA1000 && !PARPORT
 	tristate "PEAK Parallel Port Dongle"
ksrc/drivers/can/sja1000/rtcan_plx_pci.c +4 -4
Index: xenomai-2.5/ksrc/drivers/can/sja1000/rtcan_plx_pci.c
===================================================================
@@ -288,12 +288,12 @@ static DEFINE_PCI_DEVICE_TABLE(plx_pci_t
 };
 MODULE_DEVICE_TABLE(pci, plx_pci_tbl);
 
-static u8 plx_pci_read_reg(const struct rtcan_device *dev, int port)
+static u8 plx_pci_read_reg(struct rtcan_device *dev, int port)
 {
 	return ioread8((void* __iomem)dev->base_addr + port);
 }
 
-static void plx_pci_write_reg(const struct rtcan_device *dev, int port, u8 val)
+static void plx_pci_write_reg(struct rtcan_device *dev, int port, u8 val)
 {
 	iowrite8(val, (void* __iomem)dev->base_addr + port);
 }
@@ -303,7 +303,7 @@ static void plx_pci_write_reg(const stru
  * by trying to switch 'em from the Basic mode into the PeliCAN mode.
  * Also check states of some registers in reset mode.
  */
-static inline int plx_pci_check_sja1000(const struct rtcan_device *dev)
+static inline int plx_pci_check_sja1000(struct rtcan_device *dev)
 {
 	int flag = 0;
 
@@ -507,7 +507,7 @@ static int __devinit plx_pci_add_card(st
 		}
 
 		strncpy(dev->name, RTCAN_DEV_NAME, IFNAMSIZ);
-		dev->board_name = ci->name;
+		dev->board_name = (char *)ci->name;
 
 		card->rtcan_dev[i] = dev;
 		chip = card->rtcan_dev[i]->priv;
#8 lore raw
Quoted 56 lines · Wolfgang Grandegger
Quoted 32 lines · Gilles Chanteperdrix
Quoted 30 lines · Wolfgang Grandegger
Quoted 8 lines · Gilles Chanteperdrix
Quoted 2 lines · Wolfgang Grandegger

From my point of view, yes. Gilles could you please commit this patch?

No, it seems the patch causes a build issue:

http://sisyphus.hd.free.fr/~gilles/bx/

Oops, obviously the Kconfig entry is invalid:

+config XENO_DRIVERS_CAN_SJA1000_ESD_PCI (DEPRECATED)

The "(DEPRECATED)" is causing the trouble, I assume.

(quoted diff) +0 -0
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
 	tristate "ESD PCI Cards"

Maybe you want to add the "(DEPRECATED)" here.

ksrc/drivers/can/sja1000/Kconfig +1 -0
 	help
@@ -61,6 +76,9 @@ config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	CAN-PCI/266, CAN-PMC/266 (PMC), CAN-CPCI/200 (CompactPCI),
 	CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104)
 	from the esd electronic system design gmbh (http://www.esd.eu).
+	
 

Trailing white space!

Quoted 9 lines
Quoted 5 lines
(quoted diff) +2 -0
+	This driver is deprecated. It's functionality is now provided by
+	"PLX90xx PCI-bridge based Cards" driver.

Pavel, could you please fix that.

Ok. If these are the only differences between the patch which was actually tested and the patch you posted, simply tell us, I can fix it in my tree.

The attached patch fixes the remaining issues, including some compiler warnings :-(.

Thanks,

Wolfgang.

---
 ksrc/drivers/can/sja1000/Kconfig         |   10 ++++------
 ksrc/drivers/can/sja1000/rtcan_plx_pci.c |    8 ++++----
 2 files changed, 8 insertions(+), 10 deletions(-)

[snip]

Quoted 30 lines

Index: xenomai-2.5/ksrc/drivers/can/sja1000/rtcan_plx_pci.c
===================================================================

ksrc/drivers/can/sja1000/rtcan_plx_pci.c +3 -3
@@ -288,12 +288,12 @@ static DEFINE_PCI_DEVICE_TABLE(plx_pci_t
 };
 MODULE_DEVICE_TABLE(pci, plx_pci_tbl);
 
-static u8 plx_pci_read_reg(const struct rtcan_device *dev, int port)
+static u8 plx_pci_read_reg(struct rtcan_device *dev, int port)
 {
 	return ioread8((void* __iomem)dev->base_addr + port);
 }
 
-static void plx_pci_write_reg(const struct rtcan_device *dev, int port, u8 val)
+static void plx_pci_write_reg(struct rtcan_device *dev, int port, u8 val)
 {
 	iowrite8(val, (void* __iomem)dev->base_addr + port);
 }
@@ -303,7 +303,7 @@ static void plx_pci_write_reg(const stru
  * by trying to switch 'em from the Basic mode into the PeliCAN mode.
  * Also check states of some registers in reset mode.
  */
-static inline int plx_pci_check_sja1000(const struct rtcan_device *dev)
+static inline int plx_pci_check_sja1000(struct rtcan_device *dev)
 {
 	int flag = 0;
 

ksrc/drivers/can/sja1000/rtcan_plx_pci.c static int __devinit plx_pci_add_card(st · line 513

Quoted 8 lines
ksrc/drivers/can/sja1000/rtcan_plx_pci.c +1 -1
@@ -507,7 +507,7 @@ static int __devinit plx_pci_add_card(st
 		}
 
 		strncpy(dev->name, RTCAN_DEV_NAME, IFNAMSIZ);
-		dev->board_name = ci->name;
+		dev->board_name = (char *)ci->name;
 
 		card->rtcan_dev[i] = dev;
 		chip = card->rtcan_dev[i]->priv;

Wolfgang, I purposely emphasize diferences between Socketcan API and RT-CAN API. I think, that API in Socketcan is slightly better (e.g. 'const' in function declaration). I'm sorry that I haven't said it previously.

Pavel

#9 lore raw

PATCH v3 1/1 rtcan: add rtcan_plx_pci driver

In reply to Wolfgang Grandegger

This is a general driver for cards based on PLX90xx PCI-bridges. It supports following cards:
- Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
- Adlink PCI-7841/cPCI-7841 SE card
- esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
- esd CAN-PCI/PMC/266
- esd CAN-PCIe/2000
- Marathon CAN-bus-PCI card (http://www.marathon.ru/)
- TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)

This driver has been ported from socketcan of mainline Linux kernel 2.6.34. Support of esd cards has been added by Matthias Fuchs in linux-next

'rtcan_esd_pci' driver marked as deprecated.

---
 ksrc/drivers/can/sja1000/Kconfig         |   20 +-
 ksrc/drivers/can/sja1000/Makefile        |    7 +
 ksrc/drivers/can/sja1000/rtcan_plx_pci.c |  608 ++++++++++++++++++++++++++++++
 3 files changed, 633 insertions(+), 2 deletions(-)
 create mode 100644 ksrc/drivers/can/sja1000/rtcan_plx_pci.c
ksrc/drivers/can/sja1000/Kconfig +18 -2
index 56f4691..fdb12dc 100644
@@ -41,6 +41,21 @@ config XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI
 	the second channel working, Xenomai's shared interrupt support
 	must be enabled.
 
+config XENO_DRIVERS_CAN_SJA1000_PLX_PCI
+	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
+	tristate "PLX90xx PCI-bridge based Cards"
+	help
+
+	This driver is for CAN interface cards based on
+	the PLX90xx PCI bridge.
+	Driver supports now:
+	 - Adlink PCI-7841/cPCI-7841 card (http://www.adlinktech.com/)
+	 - Adlink PCI-7841/cPCI-7841 SE card
+	 - esd CAN-PCI/CPCI/PCI104/200 (http://www.esd.eu/)
+	 - esd CAN-PCI/PMC/266
+	 - esd CAN-PCIe/2000
+	 - Marathon CAN-bus-PCI card (http://www.marathon.ru/)
+	 - TEWS TECHNOLOGIES TPMC810 card (http://www.tews.com/)
 
 config XENO_DRIVERS_CAN_SJA1000_EMS_PCI
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
@@ -51,10 +66,9 @@ config XENO_DRIVERS_CAN_SJA1000_EMS_PCI
 	W������nsche (http://www.ems-wuensche.de). To get the second channel
 	working, Xenomai's shared interrupt support must be enabled.
 
-
 config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	depends on XENO_DRIVERS_CAN_SJA1000 && PCI
-	tristate "ESD PCI Cards"
+	tristate "ESD PCI Cards (DEPRECATED)"
 	help
 
 	This driver supports the esd PCI CAN cards CAN-PCI/200,
@@ -62,6 +76,8 @@ config XENO_DRIVERS_CAN_SJA1000_ESD_PCI
 	CAN-PCIe2000 (PCI Express) and CAN-PCI104/200 (PCI104)
 	from the esd electronic system design gmbh (http://www.esd.eu).
 
+	This driver is deprecated. It's functionality is now provided by
+	"PLX90xx PCI-bridge based Cards" driver.
 
 config XENO_DRIVERS_CAN_SJA1000_PEAK_DNG
 	depends on XENO_DRIVERS_CAN_SJA1000 && !PARPORT
ksrc/drivers/can/sja1000/Makefile +7 -0
index 09a03ab..389ca04 100644
@@ -7,6 +7,7 @@ EXTRA_CFLAGS += -D__IN_XENOMAI__ -Iinclude/xenomai -Idrivers/xenomai/can -Idrive
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000) += xeno_can_sja1000.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_PCI) += xeno_can_peak_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_DNG) += xeno_can_peak_dng.o
+obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PLX_PCI) += xeno_can_plx_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI) += xeno_can_ixxat_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_EMS_PCI) += xeno_can_ems_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_ESD_PCI) += xeno_can_esd_pci.o
@@ -16,6 +17,7 @@ obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_MEM) += xeno_can_mem.o
 xeno_can_sja1000-y := rtcan_sja1000.o rtcan_sja1000_proc.o
 xeno_can_peak_pci-y := rtcan_peak_pci.o
 xeno_can_peak_dng-y := rtcan_peak_dng.o
+xeno_can_plx_pci-y := rtcan_plx_pci.o
 xeno_can_ixxat_pci-y := rtcan_ixxat_pci.o
 xeno_can_ems_pci-y := rtcan_ems_pci.o
 xeno_can_esd_pci-y := rtcan_esd_pci.o
@@ -31,6 +33,7 @@ O_TARGET := built-in.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000) += xeno_can_sja1000.o 
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_PCI) += xeno_can_peak_pci.o 
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_DNG) += xeno_can_peak_dng.o 
+obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_PLX_PCI) += xeno_can_plx_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI) += xeno_can_ixxat_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_EMS_PCI) += xeno_can_ems_pci.o
 obj-$(CONFIG_XENO_DRIVERS_CAN_SJA1000_ESD_PCI) += xeno_can_esd_pci.o
@@ -42,6 +45,7 @@ list-multi := xeno_can_sja1000.o
 xeno_can_sja1000-objs := rtcan_sja1000.o rtcan_sja1000_proc.o
 xeno_can_peak_pci-objs := rtcan_peak_pci.o
 xeno_can_peak_dng-objs := rtcan_peak_dng.o
+xeno_can_plx_pci-objs := rtcan_plx_pci.o
 xeno_can_ixxat_pci-objs := rtcan_ixxat_pci.o
 xeno_can_ems_pci-objs := rtcan_ems_pci.o
 xeno_can_esd_pci-objs := rtcan_esd_pci.o
@@ -63,6 +67,9 @@ xeno_can_peak_pci.o: $(xeno_can_peak_pci-objs)
 xeno_can_peak_dng.o: $(xeno_can_peak_dng-objs)
 	$(LD) -r -o $@ $(xeno_can_peak_dng-objs)
 
+xeno_can_plx_pci.o: $(xeno_can_plx_pci-objs)
+	$(LD) -r -o $@ $(xeno_can_plx_pci-objs)
+
 xeno_can_ixxat_pci.o: $(xeno_can_ixxat_pci-objs)
 	$(LD) -r -o $@ $(xeno_can_ixxat_pci-objs)
 
ksrc/drivers/can/sja1000/rtcan_plx_pci.c new file +608 -0

608 lines not on this page · raw message

Signature · 1 line
1.6.0.6
#10 lore raw

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

#11 lore raw
Quoted 2 lines · P.B.Cheblakov

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

Thanks, but it seems we still have a few build issues:
- the PCI IDs used by this patch are not available in old kernels
- the I-pipe patches no longer apply on some stable releases.

Signature · 1 line
					    Gilles.
#12 lore raw
Quoted 6 lines · Gilles Chanteperdrix
Quoted 2 lines · P.B.Cheblakov

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

Thanks, but it seems we still have a few build issues:
- the PCI IDs used by this patch are not available in old kernels

OK, this can to be fixed with some "ifndef ..." lines. What kernel did make problems?

Quoted 1 line

- the I-pipe patches no longer apply on some stable releases.

I don't understand this issue? What does it have to do with this driver?

Wolfgang.

#13 lore raw
Quoted 9 lines · Wolfgang Grandegger
Quoted 5 lines · Gilles Chanteperdrix
Quoted 2 lines · P.B.Cheblakov

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

Thanks, but it seems we still have a few build issues:
- the PCI IDs used by this patch are not available in old kernels

OK, this can to be fixed with some "ifndef ..." lines. What kernel did make problems?

http://sisyphus.hd.free.fr/~gilles/bx

Quoted 4 lines
Quoted 2 lines

- the I-pipe patches no longer apply on some stable releases.

I don't understand this issue? What does it have to do with this driver?

Nothing. It simply showed up at the same time because I had not run the build test for some time.

Signature · 1 line
					    Gilles.
#14 lore raw
Quoted 5 lines · Gilles Chanteperdrix
Quoted 4 lines · Wolfgang Grandegger
Quoted 3 lines · Gilles Chanteperdrix
Quoted 2 lines · P.B.Cheblakov

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Thanks, but it seems we still have a few build issues:
- the PCI IDs used by this patch are not available in old kernels

OK, this can to be fixed with some "ifndef ..." lines. What kernel did make problems?

http://sisyphus.hd.free.fr/~gilles/bx

OK.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- the I-pipe patches no longer apply on some stable releases.

I don't understand this issue? What does it have to do with this driver?

Nothing. It simply showed up at the same time because I had not run the build test for some time.

Hm, the error message is quite clear:

prepare-kernel.sh: Unable to patch kernel 2.6.33.5 with adeos-ipipe-2.6.33.4-powerpc-2.9-01.patch

But it's dissappointing that a successive extraversion breaks the patch.

Wolfgang.

#15 lore raw
Quoted 20 lines · Wolfgang Grandegger
Quoted 5 lines · Gilles Chanteperdrix
Quoted 4 lines · Wolfgang Grandegger
Quoted 3 lines · Gilles Chanteperdrix
Quoted 2 lines · P.B.Cheblakov

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Thanks, but it seems we still have a few build issues:
- the PCI IDs used by this patch are not available in old kernels

OK, this can to be fixed with some "ifndef ..." lines. What kernel did make problems?

http://sisyphus.hd.free.fr/~gilles/bx

OK.

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

- the I-pipe patches no longer apply on some stable releases.

I don't understand this issue? What does it have to do with this driver?

Quoted 8 lines
Quoted 2 lines

Nothing. It simply showed up at the same time because I had not run the build test for some time.

Hm, the error message is quite clear:

prepare-kernel.sh: Unable to patch kernel 2.6.33.5 with adeos-ipipe-2.6.33.4-powerpc-2.9-01.patch

But it's dissappointing that a successive extraversion breaks the patch.

ppc64 upstream issue. I've remerged here, I'll push an updated patch in the coming hours after some testing.

Quoted 8 lines

Wolfgang.

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
#16 lore raw
Quoted 24 lines · Philippe Gerum
Quoted 23 lines · Wolfgang Grandegger
Quoted 5 lines · Gilles Chanteperdrix
Quoted 4 lines · Wolfgang Grandegger
Quoted 3 lines · Gilles Chanteperdrix
Quoted 2 lines · P.B.Cheblakov

I'vу merged fixes from Wolfgang for Kconfig and for warnings in this patch and tested it

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Thanks, but it seems we still have a few build issues:
- the PCI IDs used by this patch are not available in old kernels

OK, this can to be fixed with some "ifndef ..." lines. What kernel did make problems?

http://sisyphus.hd.free.fr/~gilles/bx

OK.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- the I-pipe patches no longer apply on some stable releases.

I don't understand this issue? What does it have to do with this driver?

Nothing. It simply showed up at the same time because I had not run the build test for some time.

Quoted 8 lines
Quoted 5 lines

Hm, the error message is quite clear:

prepare-kernel.sh: Unable to patch kernel 2.6.33.5 with adeos-ipipe-2.6.33.4-powerpc-2.9-01.patch

But it's dissappointing that a successive extraversion breaks the patch.

ppc64 upstream issue. I've remerged here, I'll push an updated patch in the coming hours after some testing.

Should be ok now:
http://download.gna.org/adeos/patches/v2.6/powerpc/adeos-ipipe-2.6.33.5-powerpc-2.10-00.patch

Quoted 11 lines
Quoted 9 lines

Wolfgang.

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.