diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-10-06 14:37:49 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-10-06 14:37:49 +0000 |
commit | 1282a16cfaddcde09a00131ea3ef10931a3f4d4c (patch) | |
tree | 153f5f50c5451001d2b281abe99457ce4d294e54 | |
parent | 867ce1605e01c64ffcf0ac968e1ec3a1ecf5cdf4 (diff) |
We must read the SROM ahead of time for all ADMtek-based PCI cards; based on
patch from ckuethe@pyxis.cns.ualberta.ca in PR/2102. At some point after 3.0
I must de-cruftify the dc(4) matching code to avoid such errors. :(
-rw-r--r-- | sys/dev/pci/if_dc_pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c index d1b7333fdb9..f315a7eb049 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.17 2001/08/25 10:13:29 art Exp $ */ +/* $OpenBSD: if_dc_pci.c,v 1.18 2001/10/06 14:37:48 aaron Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -311,6 +311,9 @@ void dc_pci_attach(parent, self, aux) sc->dc_flags |= DC_TX_USE_TX_INTR; sc->dc_flags |= DC_TX_ADMTEK_WAR; sc->dc_pmode = DC_PMODE_MII; + + dc_eeprom_width(sc); + dc_read_srom(sc, sc->dc_romwidth); } if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_MACRONIX_MX98713) { found = 1; |