From 1282a16cfaddcde09a00131ea3ef10931a3f4d4c Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Sat, 6 Oct 2001 14:37:49 +0000 Subject: 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. :( --- sys/dev/pci/if_dc_pci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3