midway.c (123593) | midway.c (126396) |
---|---|
1/* $NetBSD: midway.c,v 1.30 1997/09/29 17:40:38 chuck Exp $ */ 2/* (sync'd to midway.c 1.68) */ 3 4/* 5 * 6 * Copyright (c) 1996 Charles D. Cranor and Washington University. 7 * All rights reserved. 8 * --- 19 unchanged lines hidden (view full) --- 28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 29 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35#include <sys/cdefs.h> | 1/* $NetBSD: midway.c,v 1.30 1997/09/29 17:40:38 chuck Exp $ */ 2/* (sync'd to midway.c 1.68) */ 3 4/* 5 * 6 * Copyright (c) 1996 Charles D. Cranor and Washington University. 7 * All rights reserved. 8 * --- 19 unchanged lines hidden (view full) --- 28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 29 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/en/midway.c 123593 2003-12-17 10:01:46Z harti $"); | 36__FBSDID("$FreeBSD: head/sys/dev/en/midway.c 126396 2004-02-29 09:26:01Z scottl $"); |
37 38/* 39 * 40 * m i d w a y . c e n i 1 5 5 d r i v e r 41 * 42 * author: Chuck Cranor <chuck@ccrc.wustl.edu> 43 * started: spring, 1996 (written from scratch). 44 * --- 1365 unchanged lines hidden (view full) --- 1410 m_freem(m); 1411 } 1412 sc->txslot[lcv].mbsize = 0; 1413 } 1414 1415 /* 1416 * Unstop all waiters 1417 */ | 37 38/* 39 * 40 * m i d w a y . c e n i 1 5 5 d r i v e r 41 * 42 * author: Chuck Cranor <chuck@ccrc.wustl.edu> 43 * started: spring, 1996 (written from scratch). 44 * --- 1365 unchanged lines hidden (view full) --- 1410 m_freem(m); 1411 } 1412 sc->txslot[lcv].mbsize = 0; 1413 } 1414 1415 /* 1416 * Unstop all waiters 1417 */ |
1418 while (!cv_waitq_empty(&sc->cv_close)) { 1419 cv_broadcast(&sc->cv_close); 1420 DELAY(100); 1421 } | 1418 cv_broadcast(&sc->cv_close); |
1422} 1423 1424/* 1425 * en_reset: reset the board, throw away work in progress. 1426 * must en_init to recover. 1427 * 1428 * LOCK: unlocked, needed 1429 * --- 1958 unchanged lines hidden --- | 1419} 1420 1421/* 1422 * en_reset: reset the board, throw away work in progress. 1423 * must en_init to recover. 1424 * 1425 * LOCK: unlocked, needed 1426 * --- 1958 unchanged lines hidden --- |