All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NetMOS 9805 ParPort interface
@ 2004-08-05 11:43 Thomas Richter
  2004-08-05 22:42 ` Marcelo Tosatti
  2004-08-23 12:59 ` Marcelo Tosatti
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Richter @ 2004-08-05 11:43 UTC (permalink / raw)
  To: linux-kernel


Hi folks,

here's a tiny patch against parport/parport_pc.c for kernel 2.4.26.
It adds support for the NetMOS 9805 chip, used in several popular
parallel port extension cards available here in germany. The patch below
has been found working in a beige G3 Mac and a Canon BJC just fine.

--- parport_pc_old.c	Wed Jul 28 10:26:23 2004
+++ parport_pc.c	Wed Jul 28 10:28:16 2004
@@ -2692,6 +2692,7 @@
 	syba_2p_epp,
 	syba_1p_ecp,
 	titan_010l,
+	titan_1284p1,
 	titan_1284p2,
 	avlab_1p,
 	avlab_2p,
@@ -2759,6 +2760,7 @@
 	/* syba_2p_epp AP138B */	{ 2, { { 0, 0x078 }, { 0, 0x178 }, } },
 	/* syba_1p_ecp W83787 */	{ 1, { { 0, 0x078 }, } },
 	/* titan_010l */		{ 1, { { 3, -1 }, } },
+	/* titan_1284p1 */              { 1, { { 0, 1 }, } },
 	/* titan_1284p2 */		{ 2, { { 0, 1 }, { 2, 3 }, } },
 	/* avlab_1p		*/	{ 1, { { 0, 1}, } },
 	/* avlab_2p		*/	{ 2, { { 0, 1}, { 2, 3 },} },
@@ -2826,6 +2828,7 @@
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, syba_1p_ecp },
 	{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_010L,
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, titan_010l },
+	{ 0x9710, 0x9805, 0x1000, 0x0010, 0, 0, titan_1284p1 },
 	{ 0x9710, 0x9815, 0x1000, 0x0020, 0, 0, titan_1284p2 },
 	/* PCI_VENDOR_ID_AVLAB/Intek21 has another bunch of cards ...*/
 	{ 0x14db, 0x2120, PCI_ANY_ID, PCI_ANY_ID, 0, 0, avlab_1p}, /* AFAVLAB_TK9902 */

The same patch should also apply to more modern kernels since it just adds
some PCI ids.

Similar patches for other NetMOS products might be easy since they're all
documented; I could add a couple of PCI Ids to the parport_pc - I just don't
have the hardware for testing.

So long,
	Thomas


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

* Re: [PATCH] NetMOS 9805 ParPort interface
  2004-08-05 11:43 [PATCH] NetMOS 9805 ParPort interface Thomas Richter
@ 2004-08-05 22:42 ` Marcelo Tosatti
  2004-08-23 12:59 ` Marcelo Tosatti
  1 sibling, 0 replies; 6+ messages in thread
From: Marcelo Tosatti @ 2004-08-05 22:42 UTC (permalink / raw)
  To: Thomas Richter; +Cc: linux-kernel

On Thu, Aug 05, 2004 at 01:43:13PM +0200, Thomas Richter wrote:
> 
> Hi folks,
> 
> here's a tiny patch against parport/parport_pc.c for kernel 2.4.26.
> It adds support for the NetMOS 9805 chip, used in several popular
> parallel port extension cards available here in germany. The patch below
> has been found working in a beige G3 Mac and a Canon BJC just fine.

Hi Thomas,

Looks good, I've queued it for 2.4.28-pre.

Care to write a v2.6 version of it ? 

Most of NetMos support has been merged recently in v2.4.27 and v2.6.7/v2.6.8.

Thanks!

> --- parport_pc_old.c	Wed Jul 28 10:26:23 2004
> +++ parport_pc.c	Wed Jul 28 10:28:16 2004
> @@ -2692,6 +2692,7 @@
>  	syba_2p_epp,
>  	syba_1p_ecp,
>  	titan_010l,
> +	titan_1284p1,
>  	titan_1284p2,
>  	avlab_1p,
>  	avlab_2p,
> @@ -2759,6 +2760,7 @@
>  	/* syba_2p_epp AP138B */	{ 2, { { 0, 0x078 }, { 0, 0x178 }, } },
>  	/* syba_1p_ecp W83787 */	{ 1, { { 0, 0x078 }, } },
>  	/* titan_010l */		{ 1, { { 3, -1 }, } },
> +	/* titan_1284p1 */              { 1, { { 0, 1 }, } },
>  	/* titan_1284p2 */		{ 2, { { 0, 1 }, { 2, 3 }, } },
>  	/* avlab_1p		*/	{ 1, { { 0, 1}, } },
>  	/* avlab_2p		*/	{ 2, { { 0, 1}, { 2, 3 },} },
> @@ -2826,6 +2828,7 @@
>  	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, syba_1p_ecp },
>  	{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_010L,
>  	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, titan_010l },
> +	{ 0x9710, 0x9805, 0x1000, 0x0010, 0, 0, titan_1284p1 },
>  	{ 0x9710, 0x9815, 0x1000, 0x0020, 0, 0, titan_1284p2 },
>  	/* PCI_VENDOR_ID_AVLAB/Intek21 has another bunch of cards ...*/
>  	{ 0x14db, 0x2120, PCI_ANY_ID, PCI_ANY_ID, 0, 0, avlab_1p}, /* AFAVLAB_TK9902 */
> 
> The same patch should also apply to more modern kernels since it just adds
> some PCI ids.
> 
> Similar patches for other NetMOS products might be easy since they're all
> documented; I could add a couple of PCI Ids to the parport_pc - I just don't
> have the hardware for testing.

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

* Re: [PATCH] NetMOS 9805 ParPort interface
  2004-08-05 11:43 [PATCH] NetMOS 9805 ParPort interface Thomas Richter
  2004-08-05 22:42 ` Marcelo Tosatti
@ 2004-08-23 12:59 ` Marcelo Tosatti
  2004-08-23 18:32   ` Andrew Morton
  1 sibling, 1 reply; 6+ messages in thread
From: Marcelo Tosatti @ 2004-08-23 12:59 UTC (permalink / raw)
  To: Thomas Richter; +Cc: linux-kernel, akpm

On Thu, Aug 05, 2004 at 01:43:13PM +0200, Thomas Richter wrote:
> 
> Hi folks,
> 
> here's a tiny patch against parport/parport_pc.c for kernel 2.4.26.
> It adds support for the NetMOS 9805 chip, used in several popular
> parallel port extension cards available here in germany. The patch below
> has been found working in a beige G3 Mac and a Canon BJC just fine.

Thomas,

I just applied this to v2.4 tree.

However your new ID's haven't made their way through v2.6, I can't 
find em in 2.6.8.1-mm4.

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

* Re: [PATCH] NetMOS 9805 ParPort interface
  2004-08-23 12:59 ` Marcelo Tosatti
@ 2004-08-23 18:32   ` Andrew Morton
  2004-08-24 10:52     ` Thomas Richter
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Morton @ 2004-08-23 18:32 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: thor, linux-kernel

Marcelo Tosatti <marcelo.tosatti@cyclades.com> wrote:
>
> On Thu, Aug 05, 2004 at 01:43:13PM +0200, Thomas Richter wrote:
> > 
> > Hi folks,
> > 
> > here's a tiny patch against parport/parport_pc.c for kernel 2.4.26.
> > It adds support for the NetMOS 9805 chip, used in several popular
> > parallel port extension cards available here in germany. The patch below
> > has been found working in a beige G3 Mac and a Canon BJC just fine.
> 
> Thomas,
> 
> I just applied this to v2.4 tree.
> 
> However your new ID's haven't made their way through v2.6, I can't 
> find em in 2.6.8.1-mm4.

I was kinda hoping to be sent a patch which compiles successfully.

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

* Re: [PATCH] NetMOS 9805 ParPort interface
  2004-08-23 18:32   ` Andrew Morton
@ 2004-08-24 10:52     ` Thomas Richter
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Richter @ 2004-08-24 10:52 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, marcelo.tosatti


Hi Andrew, hi Marcelo,

sorry, my time is currently pretty limited. 

So here we go:

i) Apply the following to drivers/parport_pc.c:

/* snip */

--- parport_pc.c.old	Tue Aug 24 11:53:22 2004
+++ parport_pc.c	Tue Aug 24 12:12:31 2004
@@ -2636,6 +2636,10 @@
 	netmos_9805,
 	netmos_9815,
 	netmos_9855,
+	netmos_9735,
+	netmos_9835,
+	netmos_9755,
+	netmos_9715
 };
 
 
@@ -2709,6 +2713,10 @@
 	/* netmos_9805 */               { 1, { { 0, -1 }, } }, /* untested */
 	/* netmos_9815 */               { 2, { { 0, -1 }, { 2, -1 }, } }, /* untested */
 	/* netmos_9855 */               { 2, { { 0, -1 }, { 2, -1 }, } }, /* untested */
+	/* netmos_9735 */               { 1, { { 2, 3 }, } },  /* untested */
+	/* netmos_9835 */               { 1, { { 2, 3 }, } },  /* untested */
+        /* netmos_9755 */               { 2, { { 0, 1 }, { 2, 3 },} }, /* untested */
+        /* netmos_9715 */               { 2, { { 0, 1 }, { 2, 3 },} }, /* untested */
 };
 
 static struct pci_device_id parport_pc_pci_tbl[] = {
@@ -2786,6 +2794,14 @@
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9815 },
 	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9855,
 	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9855 },
+	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9735,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9735 },
+	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9835,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9835 },
+	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9755,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9755 },
+	{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9715,
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, netmos_9715 },
 	{ 0, } /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci,parport_pc_pci_tbl);

/* snip */

and the following to include/linux/pci_ids.h:

/* snip */

--- pci_ids.h.old	Tue Aug 24 12:05:44 2004
+++ pci_ids.h	Tue Aug 24 12:15:21 2004
@@ -2313,6 +2313,8 @@
 #define PCI_DEVICE_ID_NETMOS_9815	0x9815
 #define PCI_DEVICE_ID_NETMOS_9835	0x9835
 #define PCI_DEVICE_ID_NETMOS_9855	0x9855
+#define PCI_DEVICE_ID_NETMOS_9755	0x9755
+#define PCI_DEVICE_ID_NETMOS_9715	0x9715
 
 #define PCI_SUBVENDOR_ID_EXSYS		0xd84d
 #define PCI_SUBDEVICE_ID_EXSYS_4014	0x4014

/* snip */

NetMOS 9805 support is already in the kernel, this patch adds the support
for the missing 9735,9855,9755 and 9715 chips.

And another remark: The 9735 and 9835 seem to be chips with serial *and*
parallel interfaces, so I suppose they are already claimed somewhere in
the serial driver. I don't know whether this causes any problems. I'm sorry
that I can't test, I've only a 9805 here. Any idea how these "dual" chips have
to be handled by the kernel?

So long,
	Thomas


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

* Re: [PATCH] NetMOS 9805 ParPort interface
       [not found] <200408061641.SAA17413@cleopatra.math.tu-berlin.de>
@ 2004-08-06 16:42 ` Thomas Richter
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Richter @ 2004-08-06 16:42 UTC (permalink / raw)
  To: Thomas Richter; +Cc: linux-kernel


Hi Marcello,
 
> > here's a tiny patch against parport/parport_pc.c for kernel 2.4.26.
> > It adds support for the NetMOS 9805 chip, used in several popular
> > parallel port extension cards available here in germany. The patch below
> > has been found working in a beige G3 Mac and a Canon BJC just fine.
> 
> Hi Thomas,
> 
> Looks good, I've queued it for 2.4.28-pre.

Great.

> Care to write a v2.6 version of it ? 

Shouldn't be a major problem. IIRC, the partport_pc is almost identical,
so the change should be trivial. Let's say "Next Monday".

Concerning a similar issues, the same vendor (NetMOS) provides two additional
parport chips besides the 9805 and 9815 (both of which are now supported).

Well, I *do* have the data for them, and the changes should be rather
straight forward, but I don't have the hardware to test them. I could write
up a patch, but that would rather render as "experimental".

Anyone in here with a NetMOS based parallel/serial expansion card not yet
supported? (-;
 
So long,
	Thomas

P.S.: Sorry, forgot to CC' this to the LKML earlier...



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

end of thread, other threads:[~2004-08-24 10:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-05 11:43 [PATCH] NetMOS 9805 ParPort interface Thomas Richter
2004-08-05 22:42 ` Marcelo Tosatti
2004-08-23 12:59 ` Marcelo Tosatti
2004-08-23 18:32   ` Andrew Morton
2004-08-24 10:52     ` Thomas Richter
     [not found] <200408061641.SAA17413@cleopatra.math.tu-berlin.de>
2004-08-06 16:42 ` Thomas Richter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.