igb_sw.h revision 7d46e7ad7bb3e7ef36bb4f0816ad4d6c2784f405
c869993e79c1eafbec61a56bf6cea848fe754c71xy * CDDL HEADER START
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * The contents of this file are subject to the terms of the
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Common Development and Distribution License (the "License").
c869993e79c1eafbec61a56bf6cea848fe754c71xy * You may not use this file except in compliance with the License.
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * You can obtain a copy of the license at:
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * http://www.opensolaris.org/os/licensing.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * See the License for the specific language governing permissions
c869993e79c1eafbec61a56bf6cea848fe754c71xy * and limitations under the License.
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * When using or redistributing this file, you may do so under the
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * License only. No other modification of this header is permitted.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * If applicable, add the following below this CDDL HEADER, with the
c869993e79c1eafbec61a56bf6cea848fe754c71xy * fields enclosed by brackets "[]" replaced with your own identifying
c869993e79c1eafbec61a56bf6cea848fe754c71xy * information: Portions Copyright [yyyy] [name of copyright owner]
c869993e79c1eafbec61a56bf6cea848fe754c71xy * CDDL HEADER END
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo * Use is subject to license terms.
c869993e79c1eafbec61a56bf6cea848fe754c71xyextern "C" {
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define IGB_ADAPTER_REGSET 1 /* mapping adapter registers */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define IGB_ADAPTER_MSIXTAB 4 /* mapping msi-x table */
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define MCAST_ALLOC_COUNT 256
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * Number of settings for interrupt throttle rate (ITR). There is one of
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * these per msi-x vector and it needs to be the maximum of all silicon
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China * types supported by this driver.
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define MAX_NUM_EITR 25
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Maximum values for user configurable parameters
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define MAX_MCAST_NUM 8192
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Minimum values for user configurable parameters
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define MIN_MCAST_NUM 8
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Default values for user configurable parameters
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo#define DEFAULT_TX_RECYCLE_THRESHOLD (MAX_COOKIE + 1)
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define DEFAULT_MCAST_NUM 4096
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Defined for IP header alignment.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Bit flags for attach_progress
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_PCI_CONFIG 0x0001 /* PCI config setup */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_REGS_MAP 0x0002 /* Registers mapped */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_PROPS 0x0004 /* Properties initialized */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_ALLOC_INTR 0x0008 /* Interrupts allocated */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_ALLOC_RINGS 0x0010 /* Rings allocated */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_ADD_INTR 0x0020 /* Intr handlers added */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_LOCKS 0x0040 /* Locks initialized */
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China#define ATTACH_PROGRESS_INIT_ADAPTER 0x0080 /* Adapter initialized */
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China#define ATTACH_PROGRESS_ALLOC_DMA 0x0100 /* DMA resources allocated */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define ATTACH_PROGRESS_ENABLE_INTR 0x1000 /* DDI interrupts enabled */
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl#define ATTACH_PROGRESS_FMINIT 0x2000 /* FMA initialized */
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PROP_TX_OVERLOAD_THRESHOLD "tx_overload_threshold"
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic#define PROP_MCAST_MAX_NUM "mcast_max_num"
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Shorthand for the NDD parameters
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_autoneg_cap nd_params[PARAM_AUTONEG_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_asym_pause_cap nd_params[PARAM_ASYM_PAUSE_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_1000fdx_cap nd_params[PARAM_1000FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_1000hdx_cap nd_params[PARAM_1000HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_autoneg_cap nd_params[PARAM_ADV_AUTONEG_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_pause_cap nd_params[PARAM_ADV_PAUSE_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_asym_pause_cap nd_params[PARAM_ADV_ASYM_PAUSE_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_1000fdx_cap nd_params[PARAM_ADV_1000FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_1000hdx_cap nd_params[PARAM_ADV_1000HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_100t4_cap nd_params[PARAM_ADV_100T4_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_100fdx_cap nd_params[PARAM_ADV_100FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_100hdx_cap nd_params[PARAM_ADV_100HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_10fdx_cap nd_params[PARAM_ADV_10FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_10hdx_cap nd_params[PARAM_ADV_10HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_adv_rem_fault nd_params[PARAM_ADV_REM_FAULT].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_autoneg_cap nd_params[PARAM_LP_AUTONEG_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_pause_cap nd_params[PARAM_LP_PAUSE_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_asym_pause_cap nd_params[PARAM_LP_ASYM_PAUSE_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_1000fdx_cap nd_params[PARAM_LP_1000FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_1000hdx_cap nd_params[PARAM_LP_1000HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_100t4_cap nd_params[PARAM_LP_100T4_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_100fdx_cap nd_params[PARAM_LP_100FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_100hdx_cap nd_params[PARAM_LP_100HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_10fdx_cap nd_params[PARAM_LP_10FDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_10hdx_cap nd_params[PARAM_LP_10HDX_CAP].val
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define param_lp_rem_fault nd_params[PARAM_LP_REM_FAULT].val
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo * For s/w context extraction from a tx frame
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define DMA_SYNC(area, flag) ((void) ddi_dma_sync((area)->dma_handle, \
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Defined for ring index operations
c869993e79c1eafbec61a56bf6cea848fe754c71xy * ASSERT(index < limit)
c869993e79c1eafbec61a56bf6cea848fe754c71xy * ASSERT(step < limit)
c869993e79c1eafbec61a56bf6cea848fe754c71xy * ASSERT(index1 < limit)
c869993e79c1eafbec61a56bf6cea848fe754c71xy * ASSERT(index2 < limit)
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define NEXT_INDEX(index, step, limit) (((index) + (step)) < (limit) ? \
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define PREV_INDEX(index, step, limit) ((index) >= (step) ? \
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define OFFSET(index1, index2, limit) ((index1) <= (index2) ? \
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LIST_GET_HEAD(_LH) ((single_link_t *)((_LH)->head))
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define LIST_GET_TAIL(_LH) ((single_link_t *)((_LH)->tail))
c869993e79c1eafbec61a56bf6cea848fe754c71xy } else { \
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct single_link {
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct link_list {
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Property lookups
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define IGB_PROP_EXISTS(d, n) ddi_prop_exists(DDI_DEV_T_ANY, (d), \
c869993e79c1eafbec61a56bf6cea848fe754c71xy#define IGB_PROP_GET_INT(d, n) ddi_prop_get_int(DDI_DEV_T_ANY, (d), \
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China/* capability/feature flags */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define IGB_FLAG_HAS_DCA (1 << 0) /* has Direct Cache Access */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define IGB_FLAG_VMDQ_POOL (1 << 1) /* has vmdq capability */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China#define IGB_FLAG_NEED_CTX_IDX (1 << 2) /* context descriptor needs index */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China/* function pointer for nic-specific functions */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing Chinatypedef void (*igb_nic_func_t)(struct igb *);
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China/* adapter-specific info for each supported device type */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing Chinatypedef struct adapter_info {
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t max_rx_que_num; /* maximum number of rx queues */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t min_rx_que_num; /* minimum number of rx queues */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t def_rx_que_num; /* default number of rx queues */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t max_tx_que_num; /* maximum number of tx queues */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t min_tx_que_num; /* minimum number of tx queues */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t def_tx_que_num; /* default number of tx queues */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t max_intr_throttle; /* maximum interrupt throttle */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t min_intr_throttle; /* minimum interrupt throttle */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t def_intr_throttle; /* default interrupt throttle */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China /* function pointers */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China igb_nic_func_t enable_intr; /* enable adapter interrupts */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China igb_nic_func_t setup_msix; /* set up msi-x vectors */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China /* capabilities */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t flags; /* capability flags */
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China uint32_t rxdctl_mask; /* mask for RXDCTL register */
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China} adapter_info_t;
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Named Data (ND) Parameter Management Structure
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct {
c869993e79c1eafbec61a56bf6cea848fe754c71xy * NDD parameter indexes, divided into:
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-only parameters describing the hardware's capabilities
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-write parameters controlling the advertised capabilities
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-only parameters describing the partner's capabilities
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-write parameters controlling the force speed and duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-only parameters describing the link state
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-only parameters describing the driver properties
c869993e79c1eafbec61a56bf6cea848fe754c71xy * read-write parameters controlling the driver properties
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef union igb_ether_addr {
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef enum {
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef enum {
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guotypedef struct tx_context {
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Hold address/length of each DMA segment */
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct sw_desc {
c869993e79c1eafbec61a56bf6cea848fe754c71xy/* Handles and addresses of DMA buffer */
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct dma_buffer {
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Tx Control Block
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct tx_control_block {
c869993e79c1eafbec61a56bf6cea848fe754c71xy * RX Control Block
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct rx_control_block {
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Software Data Structure for Tx Ring
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct igb_tx_ring {
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng uint32_t intr_vector; /* Interrupt vector index */
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Tx descriptor ring definitions
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Tx control block list definitions
d11274aa6f1c1462c11e04d3da70b7453f6f0ebdPaul Guo * s/w context structure for TCP/UDP checksum offload and LSO.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Tx ring settings and status
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Debug statistics
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Pointer to the igb struct
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng mac_ring_handle_t ring_handle; /* call back ring handle */
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Software Receive Ring
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct igb_rx_ring {
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Rx descriptor ring definitions
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Rx control block list definitions
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Rx ring settings and status
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Debug statistics
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China mac_ring_handle_t ring_handle; /* call back ring handle */
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * Software Receive Ring Group
da14cebe459d3275048785f25bd869cb09b5307fEric Chengtypedef struct igb_rx_group {
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng mac_group_handle_t group_handle; /* call back group handle */
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct igb {
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China adapter_info_t *capab; /* adapter capabilities */
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China uint32_t dout_sync;
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * Receive Rings and Groups
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng igb_rx_group_t *rx_groups; /* Array of rx groups */
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng uint32_t num_rx_groups; /* Number of rx groups in use */
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Transmit Rings
c869993e79c1eafbec61a56bf6cea848fe754c71xy uint32_t tx_resched_thresh; /* Tx reschedule threshold */
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic uint32_t mcast_alloc_count;
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic uint32_t mcast_max_num;
6ca163a136944eea4423498926e09cef9889312cvitezslav batrla - Sun Microsystems - Prague Czech Republic struct ether_addr *mcast_table;
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Kstat definitions
c869993e79c1eafbec61a56bf6cea848fe754c71xy * NDD definitions
8bb4b220fdb894543e41a5f9037898cf3c3f312bgl * FMA capabilities
c869993e79c1eafbec61a56bf6cea848fe754c71xytypedef struct igb_stat {
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China kstat_named_t dout_sync; /* DMA out of sync */
b8d0a37778010a5166d34bb0d192cf6b1b2f7becchenlu chen - Sun Microsystems - Beijing China#ifdef IGB_DEBUG
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t rx_exceed_pkt; /* Rx Exceed Max Pkt Count */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t tx_fail_no_tcb; /* Tx Fail Freelist Empty */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t tx_fail_no_tbd; /* Tx Fail Desc Ring Empty */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t prc1023; /* Packets Received - 511-1023b */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t prc1522; /* Packets Received - 1024-1522b */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t fcruc; /* Unknown Flow Conrol Packet Rcvd Count */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t cexterr; /* Carrier Extension Error count */
c869993e79c1eafbec61a56bf6cea848fe754c71xy kstat_named_t tsctfc; /* TCP seg contexts xmit fail count */
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in e1000_osdep.c
7d46e7ad7bb3e7ef36bb4f0816ad4d6c2784f405zhefeng xu - Sun Microsystems - Beijing Chinavoid e1000_write_pci_cfg(struct e1000_hw *, uint32_t, uint16_t *);
7d46e7ad7bb3e7ef36bb4f0816ad4d6c2784f405zhefeng xu - Sun Microsystems - Beijing Chinavoid e1000_read_pci_cfg(struct e1000_hw *, uint32_t, uint16_t *);
7d46e7ad7bb3e7ef36bb4f0816ad4d6c2784f405zhefeng xu - Sun Microsystems - Beijing Chinaint32_t e1000_read_pcie_cap_reg(struct e1000_hw *, uint32_t, uint16_t *);
7d46e7ad7bb3e7ef36bb4f0816ad4d6c2784f405zhefeng xu - Sun Microsystems - Beijing Chinaint32_t e1000_write_pcie_cap_reg(struct e1000_hw *, uint32_t, uint16_t *);
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing Chinavoid e1000_rar_clear(struct e1000_hw *hw, uint32_t);
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing Chinavoid e1000_rar_set_vmdq(struct e1000_hw *hw, const uint8_t *, uint32_t,
80a11ad227f9c82cd6e7cf5c8913a37f00b7af0echenlu chen - Sun Microsystems - Beijing China uint32_t, uint8_t);
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_buf.c
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_main.c
da14cebe459d3275048785f25bd869cb09b5307fEric Chengint igb_unicst_set(igb_t *, const uint8_t *, int);
c869993e79c1eafbec61a56bf6cea848fe754c71xyenum ioc_reply igb_loopback_ioctl(igb_t *, struct iocblk *, mblk_t *);
8bb4b220fdb894543e41a5f9037898cf3c3f312bglvoid igb_set_fma_flags(int, int);
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_gld.c
c869993e79c1eafbec61a56bf6cea848fe754c71xyvoid igb_m_stop(void *);
da14cebe459d3275048785f25bd869cb09b5307fEric Chengvoid igb_fill_ring(void *, mac_ring_type_t, const int, const int,
da14cebe459d3275048785f25bd869cb09b5307fEric Chengvoid igb_fill_group(void *arg, mac_ring_type_t, const int,
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_rx.c
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_tx.c
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_log.c
c869993e79c1eafbec61a56bf6cea848fe754c71xyvoid igb_notice(void *, const char *, ...);
c869993e79c1eafbec61a56bf6cea848fe754c71xyvoid igb_log(void *, const char *, ...);
c869993e79c1eafbec61a56bf6cea848fe754c71xyvoid igb_error(void *, const char *, ...);
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_ndd.c
c869993e79c1eafbec61a56bf6cea848fe754c71xyenum ioc_reply igb_nd_ioctl(igb_t *, queue_t *, mblk_t *, struct iocblk *);
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Function prototypes in igb_stat.c
c869993e79c1eafbec61a56bf6cea848fe754c71xy#endif /* _IGB_SW_H */