Deleted Added
full compact
if_em.h (129879) if_em.h (134619)
1/**************************************************************************
2
3Copyright (c) 2001-2003, 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-2003, 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/em/if_em.h 129879 2004-05-30 20:08:47Z phk $*/
34/*$FreeBSD: head/sys/dev/em/if_em.h 134619 2004-09-01 23:22:41Z pdeuskar $*/
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>

--- 351 unchanged lines hidden (view full) ---

394 u_int32_t rx_buffer_len;
395 struct em_buffer *rx_buffer_area;
396 bus_dma_tag_t rxtag;
397
398 /* Jumbo frame */
399 struct mbuf *fmp;
400 struct mbuf *lmp;
401
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>

--- 351 unchanged lines hidden (view full) ---

394 u_int32_t rx_buffer_len;
395 struct em_buffer *rx_buffer_area;
396 bus_dma_tag_t rxtag;
397
398 /* Jumbo frame */
399 struct mbuf *fmp;
400 struct mbuf *lmp;
401
402 u_int16_t tx_fifo_head;
403
404 struct sysctl_ctx_list sysctl_ctx;
405 struct sysctl_oid *sysctl_tree;
406
407 /* Misc stats maintained by the driver */
408 unsigned long dropped_pkts;
409 unsigned long mbuf_alloc_failed;
410 unsigned long mbuf_cluster_failed;
411 unsigned long no_tx_desc_avail1;
412 unsigned long no_tx_desc_avail2;
413 unsigned long no_tx_map_avail;
414 unsigned long no_tx_dma_setup;
402 struct sysctl_ctx_list sysctl_ctx;
403 struct sysctl_oid *sysctl_tree;
404
405 /* Misc stats maintained by the driver */
406 unsigned long dropped_pkts;
407 unsigned long mbuf_alloc_failed;
408 unsigned long mbuf_cluster_failed;
409 unsigned long no_tx_desc_avail1;
410 unsigned long no_tx_desc_avail2;
411 unsigned long no_tx_map_avail;
412 unsigned long no_tx_dma_setup;
415 u_int64_t tx_fifo_reset;
416 u_int64_t tx_fifo_wrk;
417
413
414 /* Used in for 82547 10Mb Half workaround */
415 #define EM_PBA_BYTES_SHIFT 0xA
416 #define EM_TX_HEAD_ADDR_SHIFT 7
417 #define EM_PBA_TX_MASK 0xFFFF0000
418 #define EM_FIFO_HDR 0x10
419
420 #define EM_82547_PKT_THRESH 0x3e0
421
422 u_int32_t tx_fifo_size;
423 u_int32_t tx_fifo_head;
424 u_int32_t tx_fifo_head_addr;
425 u_int64_t tx_fifo_reset_cnt;
426 u_int64_t tx_fifo_wrk_cnt;
427 u_int32_t tx_head_addr;
428
418 /* For 82544 PCIX Workaround */
419 boolean_t pcix_82544;
420 boolean_t in_detach;
421
422#ifdef DBG_STATS
423 unsigned long no_pkts_avail;
424 unsigned long clean_tx_interrupts;
425

--- 12 unchanged lines hidden ---
429 /* For 82544 PCIX Workaround */
430 boolean_t pcix_82544;
431 boolean_t in_detach;
432
433#ifdef DBG_STATS
434 unsigned long no_pkts_avail;
435 unsigned long clean_tx_interrupts;
436

--- 12 unchanged lines hidden ---