if_ixgb.c (148887) | if_ixgb.c (150306) |
---|---|
1/******************************************************************************* 2 3Copyright (c) 2001-2004, Intel Corporation 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 17 unchanged lines hidden (view full) --- 26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30POSSIBILITY OF SUCH DAMAGE. 31 32***************************************************************************/ 33 | 1/******************************************************************************* 2 3Copyright (c) 2001-2004, Intel Corporation 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 17 unchanged lines hidden (view full) --- 26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30POSSIBILITY OF SUCH DAMAGE. 31 32***************************************************************************/ 33 |
34/*$FreeBSD: head/sys/dev/ixgb/if_ixgb.c 148887 2005-08-09 10:20:02Z rwatson $*/ | 34/*$FreeBSD: head/sys/dev/ixgb/if_ixgb.c 150306 2005-09-19 03:10:21Z imp $*/ |
35 36#include <dev/ixgb/if_ixgb.h> 37 38/********************************************************************* 39 * Set this to one to display debug statistics 40 *********************************************************************/ 41int ixgb_display_debug_stats = 0; 42 --- 330 unchanged lines hidden (view full) --- 373 374 ixgb_stop(adapter); 375 IXGB_UNLOCK(adapter); 376 377#if __FreeBSD_version < 500000 378 ether_ifdetach(adapter->ifp, ETHER_BPF_SUPPORTED); 379#else 380 ether_ifdetach(adapter->ifp); | 35 36#include <dev/ixgb/if_ixgb.h> 37 38/********************************************************************* 39 * Set this to one to display debug statistics 40 *********************************************************************/ 41int ixgb_display_debug_stats = 0; 42 --- 330 unchanged lines hidden (view full) --- 373 374 ixgb_stop(adapter); 375 IXGB_UNLOCK(adapter); 376 377#if __FreeBSD_version < 500000 378 ether_ifdetach(adapter->ifp, ETHER_BPF_SUPPORTED); 379#else 380 ether_ifdetach(adapter->ifp); |
381 if_free(adapter->ifp); | |
382#endif 383 ixgb_free_pci_resources(adapter); | 381#endif 382 ixgb_free_pci_resources(adapter); |
383#if __FreeBSD_version >= 500000 384 if_free(adapter->ifp); 385#endif |
|
384 | 386 |
385 | |
386 /* Free Transmit Descriptor ring */ 387 if (adapter->tx_desc_base) { 388 ixgb_dma_free(adapter, &adapter->txdma); 389 adapter->tx_desc_base = NULL; 390 } 391 /* Free Receive Descriptor ring */ 392 if (adapter->rx_desc_base) { 393 ixgb_dma_free(adapter, &adapter->rxdma); --- 2111 unchanged lines hidden --- | 387 /* Free Transmit Descriptor ring */ 388 if (adapter->tx_desc_base) { 389 ixgb_dma_free(adapter, &adapter->txdma); 390 adapter->tx_desc_base = NULL; 391 } 392 /* Free Receive Descriptor ring */ 393 if (adapter->rx_desc_base) { 394 ixgb_dma_free(adapter, &adapter->rxdma); --- 2111 unchanged lines hidden --- |