summaryrefslogtreecommitdiff
path: root/sys/dev/pci
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/pci
parentebfe3c6347e940d064241f9291d0d77644cc6988 (diff)
Match the Macronix 98727/98732 chips.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_dc_pci.c9
1 files changed, 8 insertions, 1 deletions
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) {