summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-26 17:41:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-26 17:41:31 +0000
commitf059e2a4f8d2d5cca48c771de46ebce93e33cd4d (patch)
treed4f99738f8433155d9abf94fad3ffdf7e8ea792d
parent72a6eea4142c81a2dd9c3d47c7176e3dc0b98b75 (diff)
Add all the cardbus com devices to puc, since these can show up on the
pci bus because of the expresscard adaptors... Lacking a better mechanism, also remind people to keep those lists syncronised.
-rw-r--r--sys/dev/cardbus/com_cardbus.c3
-rw-r--r--sys/dev/pci/pucdata.c79
2 files changed, 80 insertions, 2 deletions
diff --git a/sys/dev/cardbus/com_cardbus.c b/sys/dev/cardbus/com_cardbus.c
index 9f48960eacd..1c81e3c1097 100644
--- a/sys/dev/cardbus/com_cardbus.c
+++ b/sys/dev/cardbus/com_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_cardbus.c,v 1.34 2009/03/29 21:53:52 sthen Exp $ */
+/* $OpenBSD: com_cardbus.c,v 1.35 2009/06/26 17:41:30 deraadt Exp $ */
/* $NetBSD: com_cardbus.c,v 1.4 2000/04/17 09:21:59 joda Exp $ */
/*
@@ -99,6 +99,7 @@ struct cfattach com_cardbus_ca = {
#define BUG_BROADCOM 0x01
+/* XXX Keep this list syncronized with the corresponding one in pucdata.c */
static struct csdev {
u_short vendor;
u_short product;
diff --git a/sys/dev/pci/pucdata.c b/sys/dev/pci/pucdata.c
index c940f973637..55cd2abe7f7 100644
--- a/sys/dev/pci/pucdata.c
+++ b/sys/dev/pci/pucdata.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pucdata.c,v 1.62 2009/03/29 22:11:19 deraadt Exp $ */
+/* $OpenBSD: pucdata.c,v 1.63 2009/06/26 17:41:29 deraadt Exp $ */
/* $NetBSD: pucdata.c,v 1.6 1999/07/03 05:55:23 cgd Exp $ */
/*
@@ -1573,6 +1573,83 @@ const struct puc_device_description puc_devices[] = {
},
},
+ /*
+ * Cardbus devices which can potentially show up because of
+ * Expresscard adapters
+ * XXX Keep this list syncronized with cardbus/com_cardbus.c
+ */
+
+ { /* "", */
+ { PCI_VENDOR_3COM, PCI_PRODUCT_3COM_GLOBALMODEM56,0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "", */
+ { PCI_VENDOR_3COM, PCI_PRODUCT_3COM_MODEM56, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "", */
+ { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_SERIAL,0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "", */
+ { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_SERIAL_2,0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "", */
+ { PCI_VENDOR_BROADCOM, PCI_PRODUCT_BROADCOM_SERIAL_GC,0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "", */
+ { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_MODEM56, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "", */
+ { PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OXCB950,0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "Xircom Cardbus 56K Modem", */
+ { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_MODEM_56K,0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "Xircom CBEM56G Modem", */
+ { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_CBEM56G, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+ { /* "Xircom 56k Modem", */
+ { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_MODEM56, 0, 0 },
+ { 0xffff, 0xffff, 0, 0 },
+ {
+ { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
+ },
+ },
+
{ /* NULL, */
{ 0, 0, 0, 0 },