if_xl.c (171744) | if_xl.c (172568) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 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, 1999 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_xl.c 171744 2007-08-06 14:26:03Z rwatson $"); | 34__FBSDID("$FreeBSD: head/sys/pci/if_xl.c 172568 2007-10-12 06:03:46Z kevlo $"); |
35 36/* 37 * 3Com 3c90x Etherlink XL PCI NIC driver 38 * 39 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 40 * bus-master chips (3c90x cards and embedded controllers) including 41 * the following: 42 * --- 2580 unchanged lines hidden (view full) --- 2623 */ 2624 if (cur_tx == NULL) 2625 return; 2626 2627 /* 2628 * Place the request for the upload interrupt 2629 * in the last descriptor in the chain. This way, if 2630 * we're chaining several packets at once, we'll only | 35 36/* 37 * 3Com 3c90x Etherlink XL PCI NIC driver 38 * 39 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 40 * bus-master chips (3c90x cards and embedded controllers) including 41 * the following: 42 * --- 2580 unchanged lines hidden (view full) --- 2623 */ 2624 if (cur_tx == NULL) 2625 return; 2626 2627 /* 2628 * Place the request for the upload interrupt 2629 * in the last descriptor in the chain. This way, if 2630 * we're chaining several packets at once, we'll only |
2631 * get an interupt once for the whole chain rather than | 2631 * get an interrupt once for the whole chain rather than |
2632 * once for each packet. 2633 */ 2634 cur_tx->xl_ptr->xl_status = htole32(le32toh(cur_tx->xl_ptr->xl_status) | 2635 XL_TXSTAT_DL_INTR); 2636 bus_dmamap_sync(sc->xl_ldata.xl_tx_tag, sc->xl_ldata.xl_tx_dmamap, 2637 BUS_DMASYNC_PREWRITE); 2638 2639 /* --- 103 unchanged lines hidden (view full) --- 2743 */ 2744 if (cur_tx == NULL) 2745 return; 2746 2747 /* 2748 * Place the request for the upload interrupt 2749 * in the last descriptor in the chain. This way, if 2750 * we're chaining several packets at once, we'll only | 2632 * once for each packet. 2633 */ 2634 cur_tx->xl_ptr->xl_status = htole32(le32toh(cur_tx->xl_ptr->xl_status) | 2635 XL_TXSTAT_DL_INTR); 2636 bus_dmamap_sync(sc->xl_ldata.xl_tx_tag, sc->xl_ldata.xl_tx_dmamap, 2637 BUS_DMASYNC_PREWRITE); 2638 2639 /* --- 103 unchanged lines hidden (view full) --- 2743 */ 2744 if (cur_tx == NULL) 2745 return; 2746 2747 /* 2748 * Place the request for the upload interrupt 2749 * in the last descriptor in the chain. This way, if 2750 * we're chaining several packets at once, we'll only |
2751 * get an interupt once for the whole chain rather than | 2751 * get an interrupt once for the whole chain rather than |
2752 * once for each packet. 2753 */ 2754 cur_tx->xl_ptr->xl_status = htole32(le32toh(cur_tx->xl_ptr->xl_status) | 2755 XL_TXSTAT_DL_INTR); 2756 bus_dmamap_sync(sc->xl_ldata.xl_tx_tag, sc->xl_ldata.xl_tx_dmamap, 2757 BUS_DMASYNC_PREWRITE); 2758 2759 /* Start transmission */ --- 633 unchanged lines hidden --- | 2752 * once for each packet. 2753 */ 2754 cur_tx->xl_ptr->xl_status = htole32(le32toh(cur_tx->xl_ptr->xl_status) | 2755 XL_TXSTAT_DL_INTR); 2756 bus_dmamap_sync(sc->xl_ldata.xl_tx_tag, sc->xl_ldata.xl_tx_dmamap, 2757 BUS_DMASYNC_PREWRITE); 2758 2759 /* Start transmission */ --- 633 unchanged lines hidden --- |