Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2]: src Apply patch (requested by bouyer in ticket #10643):



details:   https://anonhg.NetBSD.org/src/rev/b351a0f65e5e
branches:  netbsd-2
changeset: 564498:b351a0f65e5e
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Aug 06 11:56:57 2006 +0000

description:
Apply patch (requested by bouyer in ticket #10643):
Add support for Moxa SmartIO CP104 and CP104-V2/PCI and EXAR XR17D15x.

diffstat:

 share/man/man4/puc.4  |   5 ++-
 sys/dev/pci/pucdata.c |  61 +++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 62 insertions(+), 4 deletions(-)

diffs (114 lines):

diff -r 40fe941bd558 -r b351a0f65e5e share/man/man4/puc.4
--- a/share/man/man4/puc.4      Thu Aug 03 12:38:54 2006 +0000
+++ b/share/man/man4/puc.4      Sun Aug 06 11:56:57 2006 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: puc.4,v 1.15 2003/02/14 15:20:19 grant Exp $
+.\" $NetBSD: puc.4,v 1.15.4.1 2006/08/06 11:56:57 tron Exp $
 .\"
 .\" Copyright (c) 1998 Christopher G. Demetriou
 .\" All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
 .\"
-.Dd July 11, 1998
+.Dd March 6, 2006
 .Dt PUC 4
 .Os
 .Sh NAME
@@ -92,6 +92,7 @@
 .It Tn "Chase Research / Perle PCI-FAST4 (4-port serial)"
 .It Tn "Boca Research Turbo Serial 658 (8-port serial)"
 .It Tn "Chase Research / Perle PCI-FAST8 (8-port serial)"
+.It Tn "Moxa Technologies SmartIO CP104/PCI (4-port serial)"
 .El
 .Pp
 The driver does not support the cards:
diff -r 40fe941bd558 -r b351a0f65e5e sys/dev/pci/pucdata.c
--- a/sys/dev/pci/pucdata.c     Thu Aug 03 12:38:54 2006 +0000
+++ b/sys/dev/pci/pucdata.c     Sun Aug 06 11:56:57 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pucdata.c,v 1.36.2.1 2004/07/04 13:19:57 he Exp $      */
+/*     $NetBSD: pucdata.c,v 1.36.2.1.2.1 2006/08/06 11:56:57 tron Exp $        */
 
 /*
  * Copyright (c) 1998, 1999 Christopher G. Demetriou.  All rights reserved.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.36.2.1 2004/07/04 13:19:57 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.36.2.1.2.1 2006/08/06 11:56:57 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -896,6 +896,30 @@
            },
        },
 
+       /* Moxa Technologies Co., Ltd. PCI I/O Card 4S RS232 */
+       {   "Moxa Technologies, SmartIO CP104/PCI",
+           {   0x1393, 0x1041, 0,      0    },
+           {   0xffff, 0xffff, 0,      0    },
+           {
+               { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 8 },
+           },
+       },
+
+       /* Moxa Technologies Co., Ltd. PCI I/O Card 4S RS232 */
+       {   "Moxa Technologies, SmartIO CP104-V2/PCI",
+           {   0x1393, 0x1042, 0,      0    },
+           {   0xffff, 0xffff, 0,      0    },
+           {
+               { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 8 },
+           },
+       },
+
        /* NetMos 1P PCI : 1P */
        {   "NetMos NM9805 1284 Printer port",
            {   0x9710, 0x9805, 0,      0       },
@@ -999,5 +1023,38 @@
            },
        },
 
+       {   "EXAR XR17D152",
+           {   0x13a8, 0x0152, 0,      0       },
+           {   0xffff, 0xffff, 0,      0       },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x0000, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0200, COM_FREQ * 8 },
+           },
+       },
+       {   "EXAR XR17D154",
+           {   0x13a8, 0x0154, 0,      0       },
+           {   0xffff, 0xffff, 0,      0       },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x0000, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0200, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0400, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0600, COM_FREQ * 8 },
+           },
+       },
+       {   "EXAR XR17D158",
+           {   0x13a8, 0x0154, 0,      0       },
+           {   0xffff, 0xffff, 0,      0       },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x0000, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0200, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0400, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0600, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0800, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0a00, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0c00, COM_FREQ * 8 },
+               { PUC_PORT_TYPE_COM, 0x10, 0x0e00, COM_FREQ * 8 },
+           },
+       },
+
        { 0 }
 };



Home | Main Index | Thread Index | Old Index