mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 001/001] parport: Added support for the Quatech SPPXP-100 Parallel port PCI ExpressCard
@ 2007-12-05 16:58 Luis Mendes
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Mendes @ 2007-12-05 16:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: luis.p.mendes

From: Luís P Mendes <luis.p.mendes@gmail.com>

Added pci vendor id Quatech - 0x135c - to include/linux/pci_id.h
Added pci device id for the Quatech SPPXP-100 ExpressCard - 0x278 - to include/linux/pci_id.h
Modified drivers/parport/parport_pc.c to support the Quatech SPPXP-100 Parallel port PCI ExpressCard
Sucessfully compiled kernel modules against 2.6.23.9 vanilla kernel and tested the parport_pc module
Signed-off-by: Luís P Mendes <luis.p.mendes@gmail.com>
---
This is a re-send of the same previous patch, but with the correct formatting
I added this driver because I bought a Quatech SPPXP-100 card and the manufacturer doesn't supply drivers for linux,
 I'm not affiliated in any way with Quatech or DPAC Technologies.
This card is a ECP+EPP PCI Parallel port with standard registers but at a different offset like many other PCI parallel ports.
diff -uprN -X linux-2.6.23.9-vanilla/Documentation/dontdiff linux-2.6.23.9-vanilla/drivers/parport/parport_pc.c linux-2.6.23.9_mod/drivers/parport/parport_pc.c
--- linux-2.6.23.9-vanilla/drivers/parport/parport_pc.c	2007-11-26 17:51:43.000000000 +0000
+++ linux-2.6.23.9_mod/drivers/parport/parport_pc.c	2007-12-04 23:22:38.000000000 +0000
@@ -2774,6 +2774,7 @@ enum parport_pc_pci_cards {
 	netmos_9755,
 	netmos_9805,
 	netmos_9815,
+	quatech_sppxp100,
 };
 
 
@@ -2850,6 +2851,7 @@ static struct parport_pc_pci {
         /* netmos_9755 */               { 2, { { 0, 1 }, { 2, 3 },} }, /* untested */
 	/* netmos_9805 */               { 1, { { 0, -1 }, } }, /* untested */
 	/* netmos_9815 */               { 2, { { 0, -1 }, { 2, -1 }, } }, /* untested */
+	/* quatech_sppxp100 */		{ 1, { { 0, 1 }, } },
 };
 
 static const struct pci_device_id parport_pc_pci_tbl[] = {
@@ -2933,6 +2935,9 @@ static const struct pci_device_id parpor
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9805 },
 	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9815,
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9815 },
+	/* Quatech SPPXP-100 Parallel port PCI ExpressCard */
+	{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SPPXP_100,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 },
 	{ 0, } /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci,parport_pc_pci_tbl);
diff -uprN -X linux-2.6.23.9-vanilla/Documentation/dontdiff linux-2.6.23.9-vanilla/include/linux/pci_ids.h linux-2.6.23.9_mod/include/linux/pci_ids.h
--- linux-2.6.23.9-vanilla/include/linux/pci_ids.h	2007-11-26 17:51:43.000000000 +0000
+++ linux-2.6.23.9_mod/include/linux/pci_ids.h	2007-12-05 00:04:09.000000000 +0000
@@ -2423,3 +2423,6 @@
 #define PCI_DEVICE_ID_RME_DIGI32	0x9896
 #define PCI_DEVICE_ID_RME_DIGI32_PRO	0x9897
 #define PCI_DEVICE_ID_RME_DIGI32_8	0x9898
+
+#define PCI_VENDOR_ID_QUATECH		0x135c
+#define PCI_DEVICE_ID_QUATECH_SPPXP_100 0x0278

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 001/001] parport: Added support for the Quatech SPPXP-100 Parallel port PCI ExpressCard
@ 2007-12-05 15:14 Luís Mendes
  0 siblings, 0 replies; 2+ messages in thread
From: Luís Mendes @ 2007-12-05 15:14 UTC (permalink / raw)
  To: linux-kernel

From: Luís Mendes <luis.p.mendes@gmail.com>

Added pci vendor id Quatech - 0x135c - to include/linux/pci_id.h
Added pci device id for the Quatech SPPXP-100 ExpressCard - 0x278 - to
include/linux/pci_id.h
Modified drivers/parport/parport_pc.c to support the Quatech SPPXP-100
Parallel port PCI Expresscard
Sucessfully compiled kernel modules against 2.6.23.9 vanilla kernel
and tested the parport_pc module
Signed-off-by: Luís P Mendes <luis.p.mendes@gmail.com>
---
I added this driver because I bought a Quatech SPPXP-100 card and the
manufacturer doesn't supply drivers for linux,
 I'm not affiliated in any way with Quatech or DPAC Technologies.
This card is a ECP+EPP PCI Parallel port with standard registers but
at a different offset like many other PCI parallel ports.

diff -uprN -X linux-2.6.23.9-vanilla/Documentation/dontdiff
linux-2.6.23.9-vanilla/drivers/parport/parport_pc.c
linux-2.6.23.9_mod/drivers/parport/parport_pc.c
--- linux-2.6.23.9-vanilla/drivers/parport/parport_pc.c	2007-11-26
17:51:43.000000000 +0000
+++ linux-2.6.23.9_mod/drivers/parport/parport_pc.c	2007-12-04
23:22:38.000000000 +0000
@@ -2774,6 +2774,7 @@ enum parport_pc_pci_cards {
 	netmos_9755,
 	netmos_9805,
 	netmos_9815,
+	quatech_sppxp100,
 };


@@ -2850,6 +2851,7 @@ static struct parport_pc_pci {
         /* netmos_9755 */               { 2, { { 0, 1 }, { 2, 3 },}
}, /* untested */
 	/* netmos_9805 */               { 1, { { 0, -1 }, } }, /* untested */
 	/* netmos_9815 */               { 2, { { 0, -1 }, { 2, -1 }, } }, /*
untested */
+	/* quatech_sppxp100 */		{ 1, { { 0, 1 }, } },
 };

 static const struct pci_device_id parport_pc_pci_tbl[] = {
@@ -2933,6 +2935,9 @@ static const struct pci_device_id parpor
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9805 },
 	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9815,
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9815 },
+	/* Quatech SPPXP-100 Parallel port PCI ExpressCard */
+	{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SPPXP_100,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 },
 	{ 0, } /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci,parport_pc_pci_tbl);
diff -uprN -X linux-2.6.23.9-vanilla/Documentation/dontdiff
linux-2.6.23.9-vanilla/include/linux/pci_ids.h
linux-2.6.23.9_mod/include/linux/pci_ids.h
--- linux-2.6.23.9-vanilla/include/linux/pci_ids.h	2007-11-26
17:51:43.000000000 +0000
+++ linux-2.6.23.9_mod/include/linux/pci_ids.h	2007-12-05
00:04:09.000000000 +0000
@@ -2423,3 +2423,6 @@
 #define PCI_DEVICE_ID_RME_DIGI32	0x9896
 #define PCI_DEVICE_ID_RME_DIGI32_PRO	0x9897
 #define PCI_DEVICE_ID_RME_DIGI32_8	0x9898
+
+#define PCI_VENDOR_ID_QUATECH		0x135c
+#define PCI_DEVICE_ID_QUATECH_SPPXP_100 0x0278

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-05 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-05 16:58 [PATCH 001/001] parport: Added support for the Quatech SPPXP-100 Parallel port PCI ExpressCard Luis Mendes
  -- strict thread matches above, loose matches on Subject: below --
2007-12-05 15:14 Luís Mendes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®