Source-Changes-HG archive

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

[src/trunk]: src PR/49819: Roberto E. Vargas Caballero: Add support for Syste...



details:   https://anonhg.NetBSD.org/src/rev/948cdecd35f0
branches:  trunk
changeset: 808104:948cdecd35f0
user:      ryo <ryo%NetBSD.org@localhost>
date:      Mon May 04 21:21:38 2015 +0000

description:
PR/49819: Roberto E. Vargas Caballero: Add support for SystemBase SB16C1050 PCI serial card

diffstat:

 share/man/man4/puc.4  |   3 ++-
 sys/dev/pci/puc.c     |   7 ++++---
 sys/dev/pci/pucdata.c |  14 ++++++++++++--
 3 files changed, 18 insertions(+), 6 deletions(-)

diffs (80 lines):

diff -r e2689a6fbc04 -r 948cdecd35f0 share/man/man4/puc.4
--- a/share/man/man4/puc.4      Mon May 04 21:18:34 2015 +0000
+++ b/share/man/man4/puc.4      Mon May 04 21:21:38 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: puc.4,v 1.38 2012/10/26 11:43:43 msaitoh Exp $
+.\" $NetBSD: puc.4,v 1.39 2015/05/04 21:21:38 ryo Exp $
 .\"
 .\" Copyright (c) 1998 Christopher G. Demetriou
 .\" All rights reserved.
@@ -165,6 +165,7 @@
 .It Tn "SUNIX 5099 (4 port serial and 1 port parallel)"
 .It Tn "Syba Tech Ltd. PCI-4S"
 .It Tn "Syba Tech Ltd. PCI-4S2P-550-ECP"
+.It Tn "SystemBase SB16C1050PCI (2 port serial)"
 .It Tn "SystemBase SB16C1054PCI (4 port serial)"
 .It Tn "SystemBase SB16C1058PCI (8 port serial)"
 .It Tn "US Robotics (3Com) 3CP5609 PCI 16550 Modem"
diff -r e2689a6fbc04 -r 948cdecd35f0 sys/dev/pci/puc.c
--- a/sys/dev/pci/puc.c Mon May 04 21:18:34 2015 +0000
+++ b/sys/dev/pci/puc.c Mon May 04 21:21:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puc.c,v 1.37 2014/02/07 11:51:00 msaitoh Exp $ */
+/*     $NetBSD: puc.c,v 1.38 2015/05/04 21:21:39 ryo Exp $     */
 
 /*
  * Copyright (c) 1996, 1998, 1999
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puc.c,v 1.37 2014/02/07 11:51:00 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puc.c,v 1.38 2015/05/04 21:21:39 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -236,7 +236,8 @@
 
        /* SB16C10xx board specific initialization */
        if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SYSTEMBASE &&
-           (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SYSTEMBASE_SB16C1054 ||
+           (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SYSTEMBASE_SB16C1050 ||
+           PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SYSTEMBASE_SB16C1054 ||
            PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SYSTEMBASE_SB16C1058)) {
                if (!sc->sc_bar_mappings[1].mapped) {
                        aprint_error_dev(self,
diff -r e2689a6fbc04 -r 948cdecd35f0 sys/dev/pci/pucdata.c
--- a/sys/dev/pci/pucdata.c     Mon May 04 21:18:34 2015 +0000
+++ b/sys/dev/pci/pucdata.c     Mon May 04 21:21:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pucdata.c,v 1.94 2015/03/18 05:54:14 msaitoh Exp $     */
+/*     $NetBSD: pucdata.c,v 1.95 2015/05/04 21:21:39 ryo 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.94 2015/03/18 05:54:14 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.95 2015/05/04 21:21:39 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2783,6 +2783,16 @@
            },
        },
 
+       /* SystemBase SB16C1050 UARTs */
+       {   "SystemBase SB16C1050",
+           {   PCI_VENDOR_SYSTEMBASE, PCI_PRODUCT_SYSTEMBASE_SB16C1050, 0, 0 },
+           {   0xffff, 0xffff,                                          0, 0 },
+           {
+               { PUC_PORT_TYPE_COM, PCI_BAR0, 0x00, COM_FREQ * 8},
+               { PUC_PORT_TYPE_COM, PCI_BAR0, 0x08, COM_FREQ * 8},
+           },
+       },
+
        /* SystemBase SB16C1054 UARTs */
        {   "SystemBase SB16C1054",
            {   PCI_VENDOR_SYSTEMBASE, PCI_PRODUCT_SYSTEMBASE_SB16C1054, 0, 0 },



Home | Main Index | Thread Index | Old Index