Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci PR kern/44956: add support for Qinheng PCI cards...



details:   https://anonhg.NetBSD.org/src/rev/0bf103118c61
branches:  trunk
changeset: 764978:0bf103118c61
user:      martin <martin%NetBSD.org@localhost>
date:      Sat May 14 22:07:38 2011 +0000

description:
PR kern/44956: add support for Qinheng PCI cards to the puc driver

diffstat:

 sys/dev/pci/pucdata.c |  33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 79e83f9cbb48 -r 0bf103118c61 sys/dev/pci/pucdata.c
--- a/sys/dev/pci/pucdata.c     Sat May 14 21:58:48 2011 +0000
+++ b/sys/dev/pci/pucdata.c     Sat May 14 22:07:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pucdata.c,v 1.73 2011/05/02 14:23:24 manu Exp $        */
+/*     $NetBSD: pucdata.c,v 1.74 2011/05/14 22:07:38 martin 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.73 2011/05/02 14:23:24 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.74 2011/05/14 22:07:38 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1294,6 +1294,35 @@
            },
        },
 
+       /*
+        * Nanjing QinHeng Electronics 
+        * Products based on CH353 chip which can be
+        * configured to provide various combinations
+        * including 2 serial ports and a parallel port
+        * or 4 serial ports (using a CH432 parallel to
+        * 2 serial port converter. Product codes from
+        * documentation (and physical 2 port serial card)
+        */
+       {   "Nanjing QinHeng Electronics 2S",
+           {   PCI_VENDOR_QINHENG, 0x3253, PCI_VENDOR_QINHENG, 0x3253  },
+           {   0xffff, 0xffff, 0xffff, 0xffff  },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+               { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
+           },
+       },
+
+       {   "Nanjing QinHeng Electronics 2S, 1P",
+           {   PCI_VENDOR_QINHENG, 0x7053, PCI_VENDOR_QINHENG, 0x7053  },
+           {   0xffff, 0xffff, 0xffff, 0xffff  },
+           {
+               { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+               { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
+               { PUC_PORT_TYPE_LPT, 0x18, 0x00, 0x00 },
+           },
+       },
+
+
        /* VScom PCI-200: 2S */
        {   "VScom PCI-200",
            {   PCI_VENDOR_PLX, 0x1103, PCI_VENDOR_PLX, 0x1103  },



Home | Main Index | Thread Index | Old Index