From 57cf012b11e589df01ce2009cd4f63b0246701f1 Mon Sep 17 00:00:00 2001 From: manu Date: Sat, 9 Dec 2006 21:06:06 +0000 Subject: [PATCH] Add support for 4 and 8 ports modem boards from Perle systems --- sys/dev/pci/pcidevs | 3 ++- sys/dev/pci/pcidevs.h | 3 ++- sys/dev/pci/pcidevs_data.h | 8 ++++-- sys/dev/pci/pucdata.c | 55 +++++++++++++++++++++++++++++++++++--- 4 files changed, 62 insertions(+), 7 deletions(-) diff --git a/sys/dev/pci/pcidevs b/sys/dev/pci/pcidevs index cf3ff2500618..5b9d3b5b0c68 100644 --- a/sys/dev/pci/pcidevs +++ b/sys/dev/pci/pcidevs @@ -1,4 +1,4 @@ -$NetBSD: pcidevs,v 1.855 2006/11/26 06:06:20 tsutsui Exp $ +$NetBSD: pcidevs,v 1.856 2006/12/09 21:06:06 manu Exp $ /* * Copyright (c) 1995, 1996 Christopher G. Demetriou @@ -2906,6 +2906,7 @@ product PLANEX FNW_3800_TX 0xab07 FNW-3800-TX 10/100 Ethernet /* PLX Technology products */ product PLX 9030 0x9030 9030 Modem 4 port +product PLX 9050 0x9030 9030 Modem 4 port V92 product PLX 9054 0x9054 9054 I/O Accelerator product PLX 9060ES 0x906e 9060ES PCI bus controller product PLX 9656 0x9656 9656 I/O Accelerator diff --git a/sys/dev/pci/pcidevs.h b/sys/dev/pci/pcidevs.h index b68cb5a72b5d..7ccbbe5277b6 100644 --- a/sys/dev/pci/pcidevs.h +++ b/sys/dev/pci/pcidevs.h @@ -1,4 +1,4 @@ -/* $NetBSD: pcidevs.h,v 1.854 2006/11/26 06:07:48 tsutsui Exp $ */ +/* $NetBSD: pcidevs.h,v 1.855 2006/12/09 21:06:06 manu Exp $ */ /* * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. @@ -2913,6 +2913,7 @@ /* PLX Technology products */ #define PCI_PRODUCT_PLX_9030 0x9030 /* 9030 Modem 4 port */ +#define PCI_PRODUCT_PLX_9050 0x9030 /* 9030 Modem 4 port V92 */ #define PCI_PRODUCT_PLX_9054 0x9054 /* 9054 I/O Accelerator */ #define PCI_PRODUCT_PLX_9060ES 0x906e /* 9060ES PCI bus controller */ #define PCI_PRODUCT_PLX_9656 0x9656 /* 9656 I/O Accelerator */ diff --git a/sys/dev/pci/pcidevs_data.h b/sys/dev/pci/pcidevs_data.h index dbb95e71a70a..171a982750e4 100644 --- a/sys/dev/pci/pcidevs_data.h +++ b/sys/dev/pci/pcidevs_data.h @@ -1,4 +1,4 @@ -/* $NetBSD: pcidevs_data.h,v 1.853 2006/11/26 06:07:48 tsutsui Exp $ */ +/* $NetBSD: pcidevs_data.h,v 1.854 2006/12/09 21:06:06 manu Exp $ */ /* * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. @@ -10039,6 +10039,10 @@ static const struct pci_product pci_products[] = { PCI_VENDOR_PLX, PCI_PRODUCT_PLX_9030, "9030 Modem 4 port", }, + { + PCI_VENDOR_PLX, PCI_PRODUCT_PLX_9050, + "9030 Modem 4 port V92", + }, { PCI_VENDOR_PLX, PCI_PRODUCT_PLX_9054, "9054 I/O Accelerator", @@ -12604,4 +12608,4 @@ static const struct pci_product pci_products[] = { "Video Controller", }, }; -const int pci_nproducts = 2557; +const int pci_nproducts = 2558; diff --git a/sys/dev/pci/pucdata.c b/sys/dev/pci/pucdata.c index 407cde595647..db6ffb90eb6c 100644 --- a/sys/dev/pci/pucdata.c +++ b/sys/dev/pci/pucdata.c @@ -1,4 +1,4 @@ -/* $NetBSD: pucdata.c,v 1.49 2006/11/13 20:11:10 bouyer Exp $ */ +/* $NetBSD: pucdata.c,v 1.50 2006/12/09 21:06:07 manu Exp $ */ /* * Copyright (c) 1998, 1999 Christopher G. Demetriou. All rights reserved. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.49 2006/11/13 20:11:10 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.50 2006/12/09 21:06:07 manu Exp $"); #include #include @@ -1047,7 +1047,6 @@ const struct puc_device_description puc_devices[] = { }, }, - /* * Perle PCI-RAS 4 Modem ports */ @@ -1062,6 +1061,56 @@ const struct puc_device_description puc_devices[] = { }, }, + /* + * Perle PCI-RASV92 4 Modem ports + */ + { "Perle Systems PCI-RASV92 4 modem ports", + { 0x10b5, 0x9050, 0x155f, 0xf001 }, + { 0xffff, 0xffff, 0xffff, 0xffff }, + { + { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 4 }, + }, + }, + + /* + * Perle PCI-RAS 8 Modem ports + */ + { "Perle Systems PCI-RAS 8 modem ports", + { 0x10b5, 0x9030, 0x155f, 0xf010 }, + { 0xffff, 0xffff, 0xffff, 0xffff }, + { + { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x20, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x28, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x30, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x38, COM_FREQ * 4 }, + }, + }, + + /* + * Perle PCI-RASV92 8 Modem ports + */ + { "Perle Systems PCI-RASV92 8 modem ports", + { 0x10b5, 0x9050, 0x155f, 0xf010 }, + { 0xffff, 0xffff, 0xffff, 0xffff }, + { + { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x20, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x28, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x30, COM_FREQ * 4 }, + { PUC_PORT_TYPE_COM, 0x18, 0x38, COM_FREQ * 4 }, + }, + }, + /* * Boca Research Turbo Serial 654 (4 serial port) card. * Appears to be the same as Chase Research PLC PCI-FAST4