diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-11-16 01:25:46 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-11-16 01:25:46 +0000 |
commit | dca3e156099e0015436d88205dbe7cdbd1c45421 (patch) | |
tree | d1961f8bbfececeaa34d3e87f2dd2ddb249d9120 /sys/dev/pci | |
parent | 428b9c318e54db1b18c66c4589a7501fc2205f47 (diff) |
Add support for Accton EN2242 MiniPCI adapters as found in HP OmniBook XE3
laptops; from FreeBSD. No special changes needed here, just the addition of
the EN2242's product ID since it is an ADMtek Centaur chip.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_dc_pci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c index a26414a6654..27cb61a77aa 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.10 2000/10/30 18:20:18 aaron Exp $ */ +/* $OpenBSD: if_dc_pci.c,v 1.11 2000/11/16 01:25:45 aaron Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -96,6 +96,7 @@ struct dc_type dc_devs[] = { { PCI_VENDOR_LITEON, PCI_PRODUCT_LITEON_PNIC }, { PCI_VENDOR_LITEON, PCI_PRODUCT_LITEON_PNICII }, { PCI_VENDOR_ACCTON, PCI_PRODUCT_ACCTON_EN1217 }, + { PCI_VENDOR_ACCTON, PCI_PRODUCT_ACCTON_EN2242 }, { 0, 0 } }; @@ -298,6 +299,13 @@ void dc_pci_attach(parent, self, aux) break; case PCI_VENDOR_MACRONIX: case PCI_VENDOR_ACCTON: + if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ACCTON_EN2242) { + found = 1; + sc->dc_type = DC_TYPE_AN983; + sc->dc_flags |= DC_TX_USE_TX_INTR; + sc->dc_flags |= DC_TX_ADMTEK_WAR; + sc->dc_pmode = DC_PMODE_MII; + } if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_MACRONIX_MX98713) { found = 1; if (revision < DC_REVISION_98713A) { |