mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Luís Mendes" <luis.mendes@ist.utl.pt>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.23.9 001/001] parport: Added support for the Quatech SPPXP-100 Parallel port PCI ExpressCard
Date: Fri, 7 Dec 2007 17:31:02 +0000	[thread overview]
Message-ID: <200712071731.02799.luis.mendes@ist.utl.pt> (raw)

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

Added pci device id for the Quatech SPPXP-100 ExpressCard - 0x278 - in include/linux/pci_ids.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 corrected version of the patch, the previous version had a problem, I didn't notice that the Quatech PCI vendor id
was already present in the pci_ids.h file, and that caused a lot of warnings.
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, as such
the addition of this card required a small amount of modifications/code to get it to work under Linux.
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-06 00:16:54.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_SPPXP100,
+	  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-06 00:16:27.000000000 +0000
@@ -1751,6 +1751,7 @@
 #define PCI_DEVICE_ID_QUATECH_DSC100	0x0020
 #define PCI_DEVICE_ID_QUATECH_ESC100D	0x0050
 #define PCI_DEVICE_ID_QUATECH_ESC100M	0x0060
+#define PCI_DEVICE_ID_QUATECH_SPPXP100  0x0278
 
 #define PCI_VENDOR_ID_SEALEVEL		0x135e
 #define PCI_DEVICE_ID_SEALEVEL_U530	0x7101

                 reply	other threads:[~2007-12-07 17:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200712071731.02799.luis.mendes@ist.utl.pt \
    --to=luis.mendes@ist.utl.pt \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®