Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src - Fix the frequency for Advantech PCI1620 port 4-8.
details: https://anonhg.NetBSD.org/src/rev/a5d2d0340907
branches: trunk
changeset: 756200:a5d2d0340907
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jul 08 18:55:42 2010 +0000
description:
- Fix the frequency for Advantech PCI1620 port 4-8.
- Fix the mask for IBM SurePos 300
- s/Titan/VScom/
- Add the following cards:
- Avlab PCI 2 Serial
- Avlab Low Profile PCI 4 Serial (another revision?)
- Moxa CP-102/PCI.
- SUNIX 4036 2S
- Syba Tech Ltd. PCI-4S
- Syba Tech Ltd. PCI-4S2P-550-ECP
- PR#37299
- VScom PCI-010L
- VScom PCI-100L
- VScom PCI-110L
- VScom PCI-200L
- VScom PCI-210L
- VScom PCI-400L
- VScom PCI-011H
- VScom PCI-100H
diffstat:
share/man/man4/puc.4 | 30 +++-
sys/dev/pci/pucdata.c | 273 +++++++++++++++++++++++++++++++++++++++++--------
2 files changed, 250 insertions(+), 53 deletions(-)
diffs (truncated from 427 to 300 lines):
diff -r 0033c198b95d -r a5d2d0340907 share/man/man4/puc.4
--- a/share/man/man4/puc.4 Thu Jul 08 18:50:35 2010 +0000
+++ b/share/man/man4/puc.4 Thu Jul 08 18:55:42 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: puc.4,v 1.30 2010/07/08 18:25:03 wiz Exp $
+.\" $NetBSD: puc.4,v 1.31 2010/07/08 18:55:42 msaitoh 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 8, 2010
+.Dd July 9, 2010
.Dt PUC 4
.Os
.Sh NAME
@@ -96,6 +96,7 @@
.It Tn "Moxa Technologies SmartIO C168H/PCI (8 port serial)"
.It Tn "Moxa Technologies SmartIO C168U/PCI (8 port serial)"
.It Tn "Moxa Technologies SmartIO CP-114/PCI (4 port serial)"
+.It Tn "Moxa Technologies SmartIO CP-102/PCI (2 port serial)"
.It Tn "Moxa Technologies SmartIO CP-104-EL/PCIe (4 port serial)"
.It Tn "Moxa Technologies SmartIO CP-104-V2/PCI (4 port serial)"
.It Tn "Moxa Technologies SmartIO CP-104/PCI (4 port serial)"
@@ -137,14 +138,25 @@
.It Tn "SUNIX 407x (2 port serial and 1 port parallel)"
.It Tn "SUNIX 408x (2 port serial and 2 port parallel)"
.It Tn "SUNIX 409x (4 port serial and 2 port parallel)"
-.It Tn "Titan PCI-010HV2 (1 port parallel)"
-.It Tn "Titan PCI-200 (dual serial)"
-.It Tn "Titan PCI-800H (8 port serial)"
-.It Tn "Titan PCI-800L (8 port serial)"
+.It Tn "Syba Tech Ltd. PCI-4S"
+.It Tn "Syba Tech Ltd. PCI-4S2P-550-ECP"
+.It Tn "VScom PCI-010HV2 (1 port parallel)"
+.It Tn "VScom PCI-010L (1 port parallel)"
+.It Tn "VScom PCI-011H (1 port parallel)"
+.It Tn "VScom PCI-100H (1 port serial)"
+.It Tn "VScom PCI-100L (1 port serial)"
+.It Tn "VScom PCI-110L (1 port serial and 1 port parallel)"
+.It Tn "VScom PCI-200 (dual serial)"
+.It Tn "VScom PCI-200H (dual serial)"
+.It Tn "VScom PCI-200HV2 (dual serial)"
+.It Tn "VScom PCI-200L (dual serial)"
+.It Tn "VScom PCI-210L (2 port serial and 1 port parallel)"
+.It Tn "VScom PCI-400 (4 port serial)"
+.It Tn "VScom PCI-400L (4 port serial)"
+.It Tn "VScom PCI-800 (8 port serial)"
+.It Tn "VScom PCI-800H (8 port serial)"
+.It Tn "VScom PCI-800L (8 port serial)"
.It Tn "US Robotics (3Com) 3CP5609 PCI 16550 Modem"
-.It Tn "VScom PCI-200 (dual serial)"
-.It Tn "VScom PCI-400 (4 port serial"
-.It Tn "VScom PCI-800 (8 port serial)"
.El
.Pp
The driver does not support the cards:
diff -r 0033c198b95d -r a5d2d0340907 sys/dev/pci/pucdata.c
--- a/sys/dev/pci/pucdata.c Thu Jul 08 18:50:35 2010 +0000
+++ b/sys/dev/pci/pucdata.c Thu Jul 08 18:55:42 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pucdata.c,v 1.65 2010/07/08 12:09:31 msaitoh Exp $ */
+/* $NetBSD: pucdata.c,v 1.66 2010/07/08 18:55:45 msaitoh 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.65 2010/07/08 12:09:31 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.66 2010/07/08 18:55:45 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -95,10 +95,10 @@
PCI_PRODUCT_ADVANTECH_PCI1620, 0x0 },
{ 0xffff, 0xffff, 0xffff, 0x0 },
{
- { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8 },
- { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 8 },
- { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ * 8 },
- { PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ * 8 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 2 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 2 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ * 2 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ * 2 },
},
},
@@ -121,9 +121,19 @@
},
},
+ /* Avlab Technology, Inc. PCI 2 Serial: 2S */
+ { "Avlab PCI 2 Serial",
+ { PCI_VENDOR_AVLAB, PCI_PRODUCT_AVLAB_PCI2S, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
+ },
+ },
+
/* Avlab Technology, Inc. Low Profile PCI 4 Serial: 4S */
{ "Avlab Low Profile PCI 4 Serial",
- { PCI_VENDOR_AVLAB, 0x2150, 0, 0 },
+ { PCI_VENDOR_AVLAB, PCI_PRODUCT_AVLAB_LPPCI4S, 0, 0 },
{ 0xffff, 0xffff, 0, 0 },
{
{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
@@ -133,6 +143,18 @@
},
},
+ /* Avlab Technology, Inc. Low Profile PCI 4 Serial: 4S */
+ { "Avlab Low Profile PCI 4 Serial",
+ { PCI_VENDOR_AVLAB, PCI_PRODUCT_AVLAB_LPPCI4S_2, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x1c, 0x00, COM_FREQ },
+ },
+ },
+
/*
* B&B Electronics MIPort Serial cards.
*/
@@ -291,7 +313,7 @@
/* IBM SurePOS 300 Series (481033H) serial ports */
{ "IBM SurePOS 300 Series (481033H)",
{ PCI_VENDOR_IBM, PCI_PRODUCT_IBM_4810_SCC, 0, 0 },
- { 0xffff, 0xfff, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
{
{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ }, /* Port C */
{ PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ }, /* Port D */
@@ -381,6 +403,16 @@
},
},
+ /* Moxa Technologies Co., Ltd. PCI I/O Card 2S RS232 */
+ { "Moxa Technologies, SmartIO CP-102/PCI",
+ { PCI_VENDOR_MOXA, 0x1022, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 8 },
+ { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 8 },
+ },
+ },
+
/* Moxa Technologies Co., Ltd. PCI I/O Card 4S RS232/422/485 */
{ "Moxa Technologies, SmartIO C104H/PCI",
{ PCI_VENDOR_MOXA, 0x1040, 0, 0 },
@@ -717,7 +749,7 @@
/* I-O DATA RSA-PCI2 four/eight(1-4) UARTs based on OX16PCI954 */
{ "I-O DATA RSA-PCI2/P4 or P8 (1-4) UARTs",
- { PCI_VENDOR_OXFORDSEMI, 0x9501, PCI_VENDOR_IODATA, 0xd007 },
+ { PCI_VENDOR_OXFORDSEMI, 0x9501, PCI_VENDOR_IODATA, 0xd007 },
{ 0xffff, 0xffff, 0xffff, 0xffff },
{
{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8 },
@@ -1549,6 +1581,15 @@
},
},
+ { "SUNIX 4036 2S",
+ { PCI_VENDOR_SUNIX, 0x7168, PCI_VENDOR_SUNIX, 0x0002 },
+ { 0xffff, 0xffff, 0xffff, 0xeff0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8},
+ { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 8},
+ },
+ },
+
{ "SUNIX 405X 4S",
{ PCI_VENDOR_SUNIX, 0x7168, PCI_VENDOR_SUNIX, 0x4050 },
{ 0xffff, 0xffff, 0xffff, 0xeff0 },
@@ -1627,57 +1668,117 @@
* XXX Dolphin Peripherals 4078 (dual serial and single parallel)
*/
- { "Titan PCI-010HV2",
- { PCI_VENDOR_TITAN, 0xe001, 0, 0 },
- { 0xffff, 0xffff, 0, 0 },
+ /* SD-LAB PCI I/O Card 4S */
+ { "Syba Tech Ltd. PCI-4S",
+ { PCI_VENDOR_SYBA, PCI_PRODUCT_SYBA_4S, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
{
- { PUC_PORT_TYPE_LPT, 0x10, 0x00, 0x00 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x3e8, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x10, 0x2e8, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x10, 0x3f8, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x10, 0x2f8, COM_FREQ },
+ },
+ },
+
+ /* SD-LAB PCI I/O Card 4S2P */
+ { "Syba Tech Ltd. PCI-4S2P-550-ECP",
+ { PCI_VENDOR_SYBA, PCI_PRODUCT_SYBA_4S2P, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x2e8, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x10, 0x2f8, COM_FREQ },
+ { PUC_PORT_TYPE_LPT, 0x10, 0x000, 0x00 },
+ { PUC_PORT_TYPE_COM, 0x10, 0x3e8, COM_FREQ },
+ { PUC_PORT_TYPE_COM, 0x10, 0x3f8, COM_FREQ },
+ { PUC_PORT_TYPE_LPT, 0x10, 0x000, 0x00 },
},
},
- { "Titan PCI-200HV2",
- { PCI_VENDOR_TITAN, 0xe020, 0, 0 },
- { 0xffff, 0xffff, 0, 0 },
+
+ /*
+ * VScom PCI 010L
+ * one lpt
+ * untested
+ */
+ { "VScom PCI-010L",
+ { PCI_VENDOR_TITAN, PCI_PRODUCT_TITAN_VSCOM_PCI010L, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
{
- { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8 },
+ { PUC_PORT_TYPE_LPT, 0x1c, 0x00, 0x00 },
+ },
+ },
+
+ /*
+ * VScom PCI 100L
+ * one com
+ * The one I have defaults to a fequency of 14.7456 MHz which is
+ * jumper J1 set to 2-3.
+ */
+ { "VScom PCI-100L",
+ { PCI_VENDOR_TITAN, PCI_PRODUCT_TITAN_VSCOM_PCI100L, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
{ PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ * 8 },
},
},
/*
- * VScom PCI-800H. Uses 8 16950 UART, behind a PCI chips that offers
- * 4 com port on PCI device 0 and 4 on PCI device 1. PCI device 0 has
- * device ID 3 and PCI device 1 device ID 4.
+ * VScom PCI 110L
+ * one com, one lpt
+ * untested
*/
- { "Titan PCI-800H",
- { PCI_VENDOR_TITAN, 0xa003, 0, 0 },
- { 0xffff, 0xffff, 0, 0 },
+ { "VScom PCI-110L",
+ { PCI_VENDOR_TITAN, PCI_PRODUCT_TITAN_VSCOM_PCI110L, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
{
- { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8 },
- { PUC_PORT_TYPE_COM, 0x10, 0x08, COM_FREQ * 8 },
- { PUC_PORT_TYPE_COM, 0x10, 0x10, COM_FREQ * 8 },
- { PUC_PORT_TYPE_COM, 0x10, 0x18, COM_FREQ * 8 },
+ { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ * 8 },
+ { PUC_PORT_TYPE_LPT, 0x1c, 0x00, 0x00 },
+ },
+ },
+
+ /*
+ * VScom PCI-200L has 2 x 16550 UARTS.
+ * The board has a jumper which allows you to select a clock speed
+ * of either 14.7456MHz or 1.8432MHz. By default it runs at
+ * the fast speed.
+ */
+ { "VScom PCI-200L with 2 x 16550 UARTS",
+ { PCI_VENDOR_TITAN, PCI_PRODUCT_TITAN_VSCOM_PCI200L, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ * 8 },
+ { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 8 },
},
},
- { "Titan PCI-800H",
- { PCI_VENDOR_TITAN, 0xa004, 0, 0 },
- { 0xffff, 0xffff, 0, 0 },
+
+ /*
+ * VScom PCI-210L
+ * Has a jumper for frequency selection, defaults to 8x as used here
+ * two com, one lpt
+ */
+ { "VScom PCI-210L",
+ { PCI_VENDOR_TITAN, PCI_PRODUCT_TITAN_VSCOM_PCI210L, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
{
- { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ * 8 },
Home |
Main Index |
Thread Index |
Old Index