if_my.c (167453) | if_my.c (172568) |
---|---|
1/*- 2 * Written by: yen_cw@myson.com.tw 3 * Copyright (c) 2002 Myson Technology Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * Myson fast ethernet PCI NIC driver, available at: http://www.myson.com.tw/ 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Written by: yen_cw@myson.com.tw 3 * Copyright (c) 2002 Myson Technology Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * Myson fast ethernet PCI NIC driver, available at: http://www.myson.com.tw/ 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/my/if_my.c 167453 2007-03-11 15:20:04Z brueffer $"); | 31__FBSDID("$FreeBSD: head/sys/dev/my/if_my.c 172568 2007-10-12 06:03:46Z kevlo $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/sockio.h> 36#include <sys/mbuf.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/socket.h> --- 1396 unchanged lines hidden (view full) --- 1436 * If there are no packets queued, bail. 1437 */ 1438 if (cur_tx == NULL) { 1439 return; 1440 } 1441 /* 1442 * Place the request for the upload interrupt in the last descriptor 1443 * in the chain. This way, if we're chaining several packets at once, | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/sockio.h> 36#include <sys/mbuf.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/socket.h> --- 1396 unchanged lines hidden (view full) --- 1436 * If there are no packets queued, bail. 1437 */ 1438 if (cur_tx == NULL) { 1439 return; 1440 } 1441 /* 1442 * Place the request for the upload interrupt in the last descriptor 1443 * in the chain. This way, if we're chaining several packets at once, |
1444 * we'll only get an interupt once for the whole chain rather than | 1444 * we'll only get an interrupt once for the whole chain rather than |
1445 * once for each packet. 1446 */ 1447 MY_TXCTL(cur_tx) |= MY_TXIC; 1448 cur_tx->my_ptr->my_frag[0].my_ctl |= MY_TXIC; 1449 sc->my_cdata.my_tx_tail = cur_tx; 1450 if (sc->my_cdata.my_tx_head == NULL) 1451 sc->my_cdata.my_tx_head = start_tx; 1452 MY_TXOWN(start_tx) = MY_OWNByNIC; --- 314 unchanged lines hidden --- | 1445 * once for each packet. 1446 */ 1447 MY_TXCTL(cur_tx) |= MY_TXIC; 1448 cur_tx->my_ptr->my_frag[0].my_ctl |= MY_TXIC; 1449 sc->my_cdata.my_tx_tail = cur_tx; 1450 if (sc->my_cdata.my_tx_head == NULL) 1451 sc->my_cdata.my_tx_head = start_tx; 1452 MY_TXOWN(start_tx) = MY_OWNByNIC; --- 314 unchanged lines hidden --- |