summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-30 18:20:19 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-30 18:20:19 +0000
commit6bb1cbf9a631e3b9083693cd884762850825a25d (patch)
treee10c6d4f4ddc075db96953617cb00f077845a2aa /sys/dev
parentebfe3c6347e940d064241f9291d0d77644cc6988 (diff)
Match the Macronix 98727/98732 chips.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/dc.c4
-rw-r--r--sys/dev/pci/if_dc_pci.c9
2 files changed, 10 insertions, 3 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index d07542e9049..b709c156930 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.18 2000/10/26 20:50:43 aaron Exp $ */
+/* $OpenBSD: dc.c,v 1.19 2000/10/30 18:20:14 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -38,7 +38,7 @@
* DEC "tulip" clone ethernet driver. Supports the DEC/Intel 21143
* series chips and several workalikes including the following:
*
- * Macronix 98713/98715/98725 PMAC (www.macronix.com)
+ * Macronix 98713/98715/98725/98727/98732 PMAC (www.macronix.com)
* Macronix/Lite-On 82c115 PNIC II (www.macronix.com)
* Lite-On 82c168/82c169 PNIC (www.litecom.com)
* ASIX Electronics AX88140A (www.asix.com.tw)
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c
index 2c03a8ff590..a26414a6654 100644
--- a/sys/dev/pci/if_dc_pci.c
+++ b/sys/dev/pci/if_dc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_pci.c,v 1.9 2000/10/27 18:20:02 aaron Exp $ */
+/* $OpenBSD: if_dc_pci.c,v 1.10 2000/10/30 18:20:18 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -91,6 +91,7 @@ struct dc_type dc_devs[] = {
{ PCI_VENDOR_ASIX, PCI_PRODUCT_ASIX_AX88140A },
{ PCI_VENDOR_MACRONIX, PCI_PRODUCT_MACRONIX_MX98713 },
{ PCI_VENDOR_MACRONIX, PCI_PRODUCT_MACRONIX_MX98715 },
+ { PCI_VENDOR_MACRONIX, PCI_PRODUCT_MACRONIX_MX98727 },
{ PCI_VENDOR_COMPEX, PCI_PRODUCT_COMPEX_98713 },
{ PCI_VENDOR_LITEON, PCI_PRODUCT_LITEON_PNIC },
{ PCI_VENDOR_LITEON, PCI_PRODUCT_LITEON_PNICII },
@@ -319,6 +320,12 @@ void dc_pci_attach(parent, self, aux)
sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
sc->dc_flags |= DC_REDUCED_MII_POLL|DC_21143_NWAY;
}
+ if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_MACRONIX_MX98727) {
+ found = 1;
+ sc->dc_type = DC_TYPE_987x5;
+ sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
+ sc->dc_flags |= DC_REDUCED_MII_POLL|DC_21143_NWAY;
+ }
break;
case PCI_VENDOR_COMPEX:
if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_COMPEX_98713) {