if_wb.c (166901) | if_wb.c (172568) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/pci/if_wb.c 166901 2007-02-23 12:19:07Z piso $"); | 34__FBSDID("$FreeBSD: head/sys/pci/if_wb.c 172568 2007-10-12 06:03:46Z kevlo $"); |
35 36/* 37 * Winbond fast ethernet PCI NIC driver 38 * 39 * Supports various cheap network adapters based on the Winbond W89C840F 40 * fast ethernet controller chip. This includes adapters manufactured by 41 * Winbond itself and some made by Linksys. 42 * --- 1454 unchanged lines hidden (view full) --- 1497 */ 1498 if (cur_tx == NULL) 1499 return; 1500 1501 /* 1502 * Place the request for the upload interrupt 1503 * in the last descriptor in the chain. This way, if 1504 * we're chaining several packets at once, we'll only | 35 36/* 37 * Winbond fast ethernet PCI NIC driver 38 * 39 * Supports various cheap network adapters based on the Winbond W89C840F 40 * fast ethernet controller chip. This includes adapters manufactured by 41 * Winbond itself and some made by Linksys. 42 * --- 1454 unchanged lines hidden (view full) --- 1497 */ 1498 if (cur_tx == NULL) 1499 return; 1500 1501 /* 1502 * Place the request for the upload interrupt 1503 * in the last descriptor in the chain. This way, if 1504 * we're chaining several packets at once, we'll only |
1505 * get an interupt once for the whole chain rather than | 1505 * get an interrupt once for the whole chain rather than |
1506 * once for each packet. 1507 */ 1508 WB_TXCTL(cur_tx) |= WB_TXCTL_FINT; 1509 cur_tx->wb_ptr->wb_frag[0].wb_ctl |= WB_TXCTL_FINT; 1510 sc->wb_cdata.wb_tx_tail = cur_tx; 1511 1512 if (sc->wb_cdata.wb_tx_head == NULL) { 1513 sc->wb_cdata.wb_tx_head = start_tx; --- 335 unchanged lines hidden --- | 1506 * once for each packet. 1507 */ 1508 WB_TXCTL(cur_tx) |= WB_TXCTL_FINT; 1509 cur_tx->wb_ptr->wb_frag[0].wb_ctl |= WB_TXCTL_FINT; 1510 sc->wb_cdata.wb_tx_tail = cur_tx; 1511 1512 if (sc->wb_cdata.wb_tx_head == NULL) { 1513 sc->wb_cdata.wb_tx_head = start_tx; --- 335 unchanged lines hidden --- |