ixgbe.h (211913) | ixgbe.h (215911) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2001-2010, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 16 unchanged lines hidden (view full) --- 25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 THE 30 POSSIBILITY OF SUCH DAMAGE. 31 32******************************************************************************/ | 1/****************************************************************************** 2 3 Copyright (c) 2001-2010, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 16 unchanged lines hidden (view full) --- 25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 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 THE 30 POSSIBILITY OF SUCH DAMAGE. 31 32******************************************************************************/ |
33/*$FreeBSD: head/sys/dev/ixgbe/ixgbe.h 211913 2010-08-28 00:34:22Z yongari $*/ | 33/*$FreeBSD: head/sys/dev/ixgbe/ixgbe.h 215911 2010-11-26 22:46:32Z jfv $*/ |
34 35 36#ifndef _IXGBE_H_ 37#define _IXGBE_H_ 38 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 132 unchanged lines hidden (view full) --- 174#define IXGBE_82599_SCATTER 32 175#define MSIX_82598_BAR 3 176#define MSIX_82599_BAR 4 177#define IXGBE_TSO_SIZE 65535 178#define IXGBE_TX_BUFFER_SIZE ((u32) 1514) 179#define IXGBE_RX_HDR 128 180#define IXGBE_VFTA_SIZE 128 181#define IXGBE_BR_SIZE 4096 | 34 35 36#ifndef _IXGBE_H_ 37#define _IXGBE_H_ 38 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 132 unchanged lines hidden (view full) --- 174#define IXGBE_82599_SCATTER 32 175#define MSIX_82598_BAR 3 176#define MSIX_82599_BAR 4 177#define IXGBE_TSO_SIZE 65535 178#define IXGBE_TX_BUFFER_SIZE ((u32) 1514) 179#define IXGBE_RX_HDR 128 180#define IXGBE_VFTA_SIZE 128 181#define IXGBE_BR_SIZE 4096 |
182#define IXGBE_QUEUE_IDLE 0 183#define IXGBE_QUEUE_WORKING 1 184#define IXGBE_QUEUE_HUNG 2 |
|
182 183/* Offload bits in mbuf flag */ 184#if __FreeBSD_version >= 800000 185#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP) 186#else 187#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP) 188#endif 189 --- 10 unchanged lines hidden (view full) --- 200/* 201 * Interrupt Moderation parameters 202 */ 203#define IXGBE_LOW_LATENCY 128 204#define IXGBE_AVE_LATENCY 400 205#define IXGBE_BULK_LATENCY 1200 206#define IXGBE_LINK_ITR 2000 207 | 185 186/* Offload bits in mbuf flag */ 187#if __FreeBSD_version >= 800000 188#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP) 189#else 190#define CSUM_OFFLOAD (CSUM_IP|CSUM_TCP|CSUM_UDP) 191#endif 192 --- 10 unchanged lines hidden (view full) --- 203/* 204 * Interrupt Moderation parameters 205 */ 206#define IXGBE_LOW_LATENCY 128 207#define IXGBE_AVE_LATENCY 400 208#define IXGBE_BULK_LATENCY 1200 209#define IXGBE_LINK_ITR 2000 210 |
208/* Header split args for get_bug */ 209#define IXGBE_CLEAN_HDR 1 210#define IXGBE_CLEAN_PKT 2 211#define IXGBE_CLEAN_ALL 3 212 | |
213/* 214 ***************************************************************************** 215 * vendor_info_array 216 * 217 * This array contains the list of Subvendor/Subdevice IDs on which the driver 218 * should load. 219 * 220 ***************************************************************************** --- 54 unchanged lines hidden (view full) --- 275 276/* 277 * The transmit ring, one per queue 278 */ 279struct tx_ring { 280 struct adapter *adapter; 281 struct mtx tx_mtx; 282 u32 me; | 211/* 212 ***************************************************************************** 213 * vendor_info_array 214 * 215 * This array contains the list of Subvendor/Subdevice IDs on which the driver 216 * should load. 217 * 218 ***************************************************************************** --- 54 unchanged lines hidden (view full) --- 273 274/* 275 * The transmit ring, one per queue 276 */ 277struct tx_ring { 278 struct adapter *adapter; 279 struct mtx tx_mtx; 280 u32 me; |
283 bool watchdog_check; | 281 int queue_status; |
284 int watchdog_time; 285 union ixgbe_adv_tx_desc *tx_base; 286 struct ixgbe_dma_alloc txdma; 287 u32 next_avail_desc; 288 u32 next_to_clean; 289 struct ixgbe_tx_buf *tx_buffers; 290 volatile u16 tx_avail; 291 u32 txd_cmd; --- 77 unchanged lines hidden (view full) --- 369 struct mtx core_mtx; 370 371 eventhandler_tag vlan_attach; 372 eventhandler_tag vlan_detach; 373 374 u16 num_vlans; 375 u16 num_queues; 376 | 282 int watchdog_time; 283 union ixgbe_adv_tx_desc *tx_base; 284 struct ixgbe_dma_alloc txdma; 285 u32 next_avail_desc; 286 u32 next_to_clean; 287 struct ixgbe_tx_buf *tx_buffers; 288 volatile u16 tx_avail; 289 u32 txd_cmd; --- 77 unchanged lines hidden (view full) --- 367 struct mtx core_mtx; 368 369 eventhandler_tag vlan_attach; 370 eventhandler_tag vlan_detach; 371 372 u16 num_vlans; 373 u16 num_queues; 374 |
377 /* Info about the board itself */ | 375 /* 376 ** Shadow VFTA table, this is needed because 377 ** the real vlan filter table gets cleared during 378 ** a soft reset and the driver needs to be able 379 ** to repopulate it. 380 */ 381 u32 shadow_vfta[IXGBE_VFTA_SIZE]; 382 383 /* Info about the interface */ |
378 u32 optics; 379 int advertise; /* link speeds */ 380 bool link_active; 381 u16 max_frame_size; 382 u32 link_speed; 383 bool link_up; 384 u32 linkvec; 385 --- 30 unchanged lines hidden (view full) --- 416 * Receive rings: 417 * Allocated at run time, an array of rings. 418 */ 419 struct rx_ring *rx_rings; 420 int num_rx_desc; 421 u64 que_mask; 422 u32 rx_process_limit; 423 | 384 u32 optics; 385 int advertise; /* link speeds */ 386 bool link_active; 387 u16 max_frame_size; 388 u32 link_speed; 389 bool link_up; 390 u32 linkvec; 391 --- 30 unchanged lines hidden (view full) --- 422 * Receive rings: 423 * Allocated at run time, an array of rings. 424 */ 425 struct rx_ring *rx_rings; 426 int num_rx_desc; 427 u64 que_mask; 428 u32 rx_process_limit; 429 |
424 /* Multicast array memory */ 425 u8 *mta; | |
426 /* Misc stats maintained by the driver */ 427 unsigned long dropped_pkts; 428 unsigned long mbuf_defrag_failed; 429 unsigned long mbuf_header_failed; 430 unsigned long mbuf_packet_failed; 431 unsigned long no_tx_map_avail; 432 unsigned long no_tx_dma_setup; 433 unsigned long watchdog_events; --- 59 unchanged lines hidden --- | 430 /* Misc stats maintained by the driver */ 431 unsigned long dropped_pkts; 432 unsigned long mbuf_defrag_failed; 433 unsigned long mbuf_header_failed; 434 unsigned long mbuf_packet_failed; 435 unsigned long no_tx_map_avail; 436 unsigned long no_tx_dma_setup; 437 unsigned long watchdog_events; --- 59 unchanged lines hidden --- |