summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-13 14:55:24 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-13 14:55:24 +0000
commitc01fc20ffc74c551f59c99d37ca17d60f6725cba (patch)
tree8e5726ce923ffc43044561e35ed6d522b0aab2bf /sys/dev/pci
parentccfc4626e5c9dc3dae5e629b4c2cbe78a4f3ca84 (diff)
- A couple of the MiniPCI adapters need the special power inversion bits.
- Get rid of magic values and use meaningful names instead. - My tester claims the 3c556 does not quite work 100% yet.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_xl_pci.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/pci/if_xl_pci.c b/sys/dev/pci/if_xl_pci.c
index bb2fdb66aec..c627da913bb 100644
--- a/sys/dev/pci/if_xl_pci.c
+++ b/sys/dev/pci/if_xl_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xl_pci.c,v 1.5 2000/09/29 05:28:29 aaron Exp $ */
+/* $OpenBSD: if_xl_pci.c,v 1.6 2000/10/13 14:55:23 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -87,6 +87,7 @@
#define XL_USEIOSPACE
#define XL_PCI_FUNCMEM 0x0018
+#define XL_PCI_INTR 0x0004
#define XL_PCI_INTRACK 0x8000
#include <dev/ic/xlreg.h>
@@ -166,11 +167,13 @@ xl_pci_attach(parent, self, aux)
case TC_DEVICEID_HURRICANE_556:
sc->xl_flags |= XL_FLAG_FUNCREG | XL_FLAG_PHYOK |
XL_FLAG_EEPROM_OFFSET_30 | XL_FLAG_WEIRDRESET;
+ sc->xl_flags |= XL_FLAG_INVERT_LED_PWR|XL_FLAG_INVERT_MII_PWR;
sc->xl_flags |= XL_FLAG_8BITROM;
break;
case TC_DEVICEID_HURRICANE_556B:
sc->xl_flags |= XL_FLAG_FUNCREG | XL_FLAG_PHYOK |
XL_FLAG_EEPROM_OFFSET_30 | XL_FLAG_WEIRDRESET;
+ sc->xl_flags |= XL_FLAG_INVERT_LED_PWR|XL_FLAG_INVERT_MII_PWR;
break;
default:
break;
@@ -300,8 +303,8 @@ xl_pci_intr_ack(sc)
{
struct xl_pci_softc *psc = (struct xl_pci_softc *)sc;
- pci_conf_write(psc->sc_chiptag, psc->sc_pcitag, XL_PCI_FUNCMEM + 4,
- XL_PCI_INTRACK);
+ pci_conf_write(psc->sc_chiptag, psc->sc_pcitag,
+ XL_PCI_FUNCMEM + XL_PCI_INTR, XL_PCI_INTRACK);
}
struct cfattach xl_pci_ca = {