Module Name: src
Committed By: martin
Date: Sat May 14 22:07:39 UTC 2011
Modified Files:
src/sys/dev/pci: pucdata.c
Log Message:
PR kern/44956: add support for Qinheng PCI cards to the puc driver
To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/dev/pci/pucdata.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/pucdata.c
diff -u src/sys/dev/pci/pucdata.c:1.73 src/sys/dev/pci/pucdata.c:1.74
--- src/sys/dev/pci/pucdata.c:1.73 Mon May 2 14:23:24 2011
+++ src/sys/dev/pci/pucdata.c Sat May 14 22:07:38 2011
@@ -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 },