diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-20 06:54:57 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-20 06:54:57 +0000 |
commit | 687e1febb130407a246f60525c8d19b798f59ecb (patch) | |
tree | 30153e6610ddabc337601bd09d7a24a02d61f747 /sys/dev | |
parent | 46fe966ae026d95bd781e8524c596c87a60b1754 (diff) |
- check for revision B2 intead of B1 in one more spot.
- fix no link check in bge_start().
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index a62d15a35e5..a2c48a55022 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.157 2006/06/20 03:45:22 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.158 2006/06/20 06:54:56 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1582,7 +1582,7 @@ bge_blockinit(struct bge_softc *sc) } else { BGE_SETBIT(sc, BGE_MI_MODE, BGE_MIMODE_AUTOPOLL|10<<16); if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5700 && - sc->bge_chipid != BGE_CHIPID_BCM5700_B1) + sc->bge_chipid != BGE_CHIPID_BCM5700_B2) CSR_WRITE_4(sc, BGE_MAC_EVT_ENB, BGE_EVTENB_MI_INTERRUPT); } @@ -2708,7 +2708,7 @@ bge_start(struct ifnet *ifp) sc = ifp->if_softc; - if (!sc->bge_link && ifp->if_snd.ifq_len < 10) + if (!sc->bge_link || ifp->if_snd.ifq_len < 10) return; prodidx = sc->bge_tx_prodidx; |