if_em.h (140318) | if_em.h (146662) |
---|---|
1/************************************************************************** 2 | 1/************************************************************************** 2 |
3Copyright (c) 2001-2003, Intel Corporation | 3Copyright (c) 2001-2005, 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 9 1. Redistributions of source code must retain the above copyright notice, 10 this list of conditions and the following disclaimer. 11 --- 14 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 | 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 9 1. Redistributions of source code must retain the above copyright notice, 10 this list of conditions and the following disclaimer. 11 --- 14 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/em/if_em.h 140318 2005-01-15 20:52:15Z scottl $*/ | 34/*$FreeBSD: head/sys/dev/em/if_em.h 146662 2005-05-26 23:32:02Z tackerman $*/ |
35 36#ifndef _EM_H_DEFINED_ 37#define _EM_H_DEFINED_ 38 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/mbuf.h> --- 374 unchanged lines hidden (view full) --- 417 u_int64_t tx_fifo_reset_cnt; 418 u_int64_t tx_fifo_wrk_cnt; 419 u_int32_t tx_head_addr; 420 421 /* For 82544 PCIX Workaround */ 422 boolean_t pcix_82544; 423 boolean_t in_detach; 424 | 35 36#ifndef _EM_H_DEFINED_ 37#define _EM_H_DEFINED_ 38 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/mbuf.h> --- 374 unchanged lines hidden (view full) --- 417 u_int64_t tx_fifo_reset_cnt; 418 u_int64_t tx_fifo_wrk_cnt; 419 u_int32_t tx_head_addr; 420 421 /* For 82544 PCIX Workaround */ 422 boolean_t pcix_82544; 423 boolean_t in_detach; 424 |
425#ifdef DBG_STATS 426 unsigned long no_pkts_avail; 427 unsigned long clean_tx_interrupts; 428 429#endif | |
430 struct em_hw_stats stats; 431}; 432 433#define EM_LOCK_INIT(_sc, _name) \ 434 mtx_init(&(_sc)->mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 435#define EM_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx) 436#define EM_LOCK(_sc) mtx_lock(&(_sc)->mtx) 437#define EM_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) 438#define EM_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED) 439 440#endif /* _EM_H_DEFINED_ */ | 425 struct em_hw_stats stats; 426}; 427 428#define EM_LOCK_INIT(_sc, _name) \ 429 mtx_init(&(_sc)->mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 430#define EM_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx) 431#define EM_LOCK(_sc) mtx_lock(&(_sc)->mtx) 432#define EM_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) 433#define EM_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED) 434 435#endif /* _EM_H_DEFINED_ */ |