Deleted Added
full compact
if_em.h (169248) if_em.h (169589)
1/**************************************************************************
2
3Copyright (c) 2001-2007, 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

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

25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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***************************************************************************/
1/**************************************************************************
2
3Copyright (c) 2001-2007, 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

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

25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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/*$FreeBSD: head/sys/dev/em/if_em.h 169589 2007-05-16 00:14:23Z jfv $*/
33
34
34/*
35 * $FreeBSD: head/sys/dev/em/if_em.h 169248 2007-05-04 13:30:44Z rwatson $
36 */
37
38#ifndef _EM_H_DEFINED_
39#define _EM_H_DEFINED_
40
41/* Tunables */
42
43/*
44 * EM_TXD: Maximum number of Transmit Descriptors
45 * Valid Range: 80-256 for 82542 and 82543-based adapters

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

131 * this value ensures that an interrupt is generated after the initial
132 * packet is received within the set amount of time. Proper tuning,
133 * along with EM_RDTR, may improve traffic throughput in specific network
134 * conditions.
135 */
136#define EM_RADV 64
137
138/*
35#ifndef _EM_H_DEFINED_
36#define _EM_H_DEFINED_
37
38/* Tunables */
39
40/*
41 * EM_TXD: Maximum number of Transmit Descriptors
42 * Valid Range: 80-256 for 82542 and 82543-based adapters

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

128 * this value ensures that an interrupt is generated after the initial
129 * packet is received within the set amount of time. Proper tuning,
130 * along with EM_RDTR, may improve traffic throughput in specific network
131 * conditions.
132 */
133#define EM_RADV 64
134
135/*
139 * Inform the stack about transmit checksum offload capabilities.
140 */
141#define EM_CHECKSUM_FEATURES (CSUM_TCP | CSUM_UDP)
142
143/*
144 * Inform the stack about transmit segmentation offload capabilities.
145 */
146#define EM_TCPSEG_FEATURES CSUM_TSO
147
148/*
149 * This parameter controls the duration of transmit watchdog timer.
150 */
151#define EM_TX_TIMEOUT 5 /* set to 5 seconds */
152
153/*
154 * This parameter controls when the driver calls the routine to reclaim
155 * transmit descriptors.
156 */
157#define EM_TX_CLEANUP_THRESHOLD (adapter->num_tx_desc / 8)
136 * This parameter controls the duration of transmit watchdog timer.
137 */
138#define EM_TX_TIMEOUT 5 /* set to 5 seconds */
139
140/*
141 * This parameter controls when the driver calls the routine to reclaim
142 * transmit descriptors.
143 */
144#define EM_TX_CLEANUP_THRESHOLD (adapter->num_tx_desc / 8)
158#define EM_TX_OP_THRESHOLD (adapter->num_tx_desc / 32)
145#define EM_TX_OP_THRESHOLD (adapter->num_tx_desc / 32)
159
160/*
161 * This parameter controls whether or not autonegotation is enabled.
162 * 0 - Disable autonegotiation
163 * 1 - Enable autonegotiation
164 */
165#define DO_AUTO_NEG 1
166

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

238#define HW_DEBUGOUT1(S, A) if (DEBUG_HW) printf(S "\n", A)
239#define HW_DEBUGOUT2(S, A, B) if (DEBUG_HW) printf(S "\n", A, B)
240
241#define EM_MAX_SCATTER 64
242#define EM_TSO_SIZE 65535 /* maxsize of a dma transfer */
243#define EM_TSO_SEG_SIZE 4096 /* Max dma segment size */
244#define ETH_ZLEN 60
245#define ETH_ADDR_LEN 6
146
147/*
148 * This parameter controls whether or not autonegotation is enabled.
149 * 0 - Disable autonegotiation
150 * 1 - Enable autonegotiation
151 */
152#define DO_AUTO_NEG 1
153

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

225#define HW_DEBUGOUT1(S, A) if (DEBUG_HW) printf(S "\n", A)
226#define HW_DEBUGOUT2(S, A, B) if (DEBUG_HW) printf(S "\n", A, B)
227
228#define EM_MAX_SCATTER 64
229#define EM_TSO_SIZE 65535 /* maxsize of a dma transfer */
230#define EM_TSO_SEG_SIZE 4096 /* Max dma segment size */
231#define ETH_ZLEN 60
232#define ETH_ADDR_LEN 6
233#define CSUM_OFFLOAD 7 /* Offload bits in csum flags */
246
247struct adapter;
248
249struct em_int_delay_info {
250 struct adapter *adapter; /* Back-pointer to the adapter struct */
251 int offset; /* Register offset to read/write */
252 int value; /* Current value in usecs */
253};

--- 181 unchanged lines hidden ---
234
235struct adapter;
236
237struct em_int_delay_info {
238 struct adapter *adapter; /* Back-pointer to the adapter struct */
239 int offset; /* Register offset to read/write */
240 int value; /* Current value in usecs */
241};

--- 181 unchanged lines hidden ---