summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2012-01-02 11:07:02 +0000
committersthen <sthen@openbsd.org>2012-01-02 11:07:02 +0000
commit558944a9927d41deb5cfc59f788126972e0c62f1 (patch)
tree420ead8b002a795cf1313043f654555246839ffe
parentregen (diff)
downloadwireguard-openbsd-558944a9927d41deb5cfc59f788126972e0c62f1.tar.xz
wireguard-openbsd-558944a9927d41deb5cfc59f788126972e0c62f1.zip
Use the correct multiplier for older SUNIX 406x 8-serial cards. Problem
reported and fix tested by sebastia@. naddy@ helped get the ordering right.
-rw-r--r--sys/dev/pci/pucdata.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/dev/pci/pucdata.c b/sys/dev/pci/pucdata.c
index a0820e4e616..4ea89f95278 100644
--- a/sys/dev/pci/pucdata.c
+++ b/sys/dev/pci/pucdata.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pucdata.c,v 1.78 2011/10/26 14:20:25 jsg Exp $ */
+/* $OpenBSD: pucdata.c,v 1.79 2012/01/02 11:07:02 sthen Exp $ */
/* $NetBSD: pucdata.c,v 1.6 1999/07/03 05:55:23 cgd Exp $ */
/*
@@ -1441,6 +1441,21 @@ const struct puc_device_description puc_devs[] = {
},
{ /* SUNIX 406X 8S */
+ { PCI_VENDOR_SUNIX, PCI_PRODUCT_SUNIX_40XX, 0x1409, 0x5066 },
+ { 0xffff, 0xffff, 0xffff, 0xffff },
+ {
+ { PUC_COM_POW2(3), 0x10, 0x0000 },
+ { PUC_COM_POW2(3), 0x10, 0x0008 },
+ { PUC_COM_POW2(0), 0x14, 0x0000 },
+ { PUC_COM_POW2(0), 0x14, 0x0008 },
+ { PUC_COM_POW2(0), 0x18, 0x0000 },
+ { PUC_COM_POW2(0), 0x1c, 0x0000 },
+ { PUC_COM_POW2(0), 0x20, 0x0000 },
+ { PUC_COM_POW2(0), 0x24, 0x0000 },
+ },
+ },
+
+ { /* SUNIX 406X 8S */
{ PCI_VENDOR_SUNIX, PCI_PRODUCT_SUNIX_40XX, 0x1409, 0x4060 },
{ 0xffff, 0xffff, 0xffff, 0xe0f0 },
{