igb_82575.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 
00003   Intel(R) Gigabit Ethernet Linux driver
00004   Copyright(c) 2007-2009 Intel Corporation.
00005 
00006   This program is free software; you can redistribute it and/or modify it
00007   under the terms and conditions of the GNU General Public License,
00008   version 2, as published by the Free Software Foundation.
00009 
00010   This program is distributed in the hope it will be useful, but WITHOUT
00011   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
00013   more details.
00014 
00015   You should have received a copy of the GNU General Public License along with
00016   this program; if not, write to the Free Software Foundation, Inc.,
00017   51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
00018 
00019   The full GNU General Public License is included in this distribution in
00020   the file called "COPYING".
00021 
00022   Contact Information:
00023   e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
00024   Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
00025 
00026 *******************************************************************************/
00027 
00028 FILE_LICENCE ( GPL2_ONLY );
00029 
00030 #ifndef _IGB_82575_H_
00031 #define _IGB_82575_H_
00032 
00033 #define ID_LED_DEFAULT_82575_SERDES ((ID_LED_DEF1_DEF2 << 12) | \
00034                                      (ID_LED_DEF1_DEF2 <<  8) | \
00035                                      (ID_LED_DEF1_DEF2 <<  4) | \
00036                                      (ID_LED_OFF1_ON2))
00037 /*
00038  * Receive Address Register Count
00039  * Number of high/low register pairs in the RAR.  The RAR (Receive Address
00040  * Registers) holds the directed and multicast addresses that we monitor.
00041  * These entries are also used for MAC-based filtering.
00042  */
00043 /*
00044  * For 82576, there are an additional set of RARs that begin at an offset
00045  * separate from the first set of RARs.
00046  */
00047 #define E1000_RAR_ENTRIES_82575   16
00048 #define E1000_RAR_ENTRIES_82576   24
00049 
00050 struct e1000_adv_data_desc {
00051         __le64 buffer_addr;    /* Address of the descriptor's data buffer */
00052         union {
00053                 u32 data;
00054                 struct {
00055                         u32 datalen :16; /* Data buffer length */
00056                         u32 rsvd    :4;
00057                         u32 dtyp    :4;  /* Descriptor type */
00058                         u32 dcmd    :8;  /* Descriptor command */
00059                 } config;
00060         } lower;
00061         union {
00062                 u32 data;
00063                 struct {
00064                         u32 status  :4;  /* Descriptor status */
00065                         u32 idx     :4;
00066                         u32 popts   :6;  /* Packet Options */
00067                         u32 paylen  :18; /* Payload length */
00068                 } options;
00069         } upper;
00070 };
00071 
00072 #define E1000_TXD_DTYP_ADV_C    0x2  /* Advanced Context Descriptor */
00073 #define E1000_TXD_DTYP_ADV_D    0x3  /* Advanced Data Descriptor */
00074 #define E1000_ADV_TXD_CMD_DEXT  0x20 /* Descriptor extension (0 = legacy) */
00075 #define E1000_ADV_TUCMD_IPV4    0x2  /* IP Packet Type: 1=IPv4 */
00076 #define E1000_ADV_TUCMD_IPV6    0x0  /* IP Packet Type: 0=IPv6 */
00077 #define E1000_ADV_TUCMD_L4T_UDP 0x0  /* L4 Packet TYPE of UDP */
00078 #define E1000_ADV_TUCMD_L4T_TCP 0x4  /* L4 Packet TYPE of TCP */
00079 #define E1000_ADV_TUCMD_MKRREQ  0x10 /* Indicates markers are required */
00080 #define E1000_ADV_DCMD_EOP      0x1  /* End of Packet */
00081 #define E1000_ADV_DCMD_IFCS     0x2  /* Insert FCS (Ethernet CRC) */
00082 #define E1000_ADV_DCMD_RS       0x8  /* Report Status */
00083 #define E1000_ADV_DCMD_VLE      0x40 /* Add VLAN tag */
00084 #define E1000_ADV_DCMD_TSE      0x80 /* TCP Seg enable */
00085 /* Extended Device Control */
00086 #define E1000_CTRL_EXT_NSICR    0x00000001 /* Disable Intr Clear all on read */
00087 
00088 struct e1000_adv_context_desc {
00089         union {
00090                 u32 ip_config;
00091                 struct {
00092                         u32 iplen    :9;
00093                         u32 maclen   :7;
00094                         u32 vlan_tag :16;
00095                 } fields;
00096         } ip_setup;
00097         u32 seq_num;
00098         union {
00099                 u64 l4_config;
00100                 struct {
00101                         u32 mkrloc :9;
00102                         u32 tucmd  :11;
00103                         u32 dtyp   :4;
00104                         u32 adv    :8;
00105                         u32 rsvd   :4;
00106                         u32 idx    :4;
00107                         u32 l4len  :8;
00108                         u32 mss    :16;
00109                 } fields;
00110         } l4_setup;
00111 };
00112 
00113 /* SRRCTL bit definitions */
00114 #define E1000_SRRCTL_BSIZEPKT_SHIFT                     10 /* Shift _right_ */
00115 #define E1000_SRRCTL_BSIZEHDRSIZE_MASK                  0x00000F00
00116 #define E1000_SRRCTL_BSIZEHDRSIZE_SHIFT                 2  /* Shift _left_ */
00117 #define E1000_SRRCTL_DESCTYPE_LEGACY                    0x00000000
00118 #define E1000_SRRCTL_DESCTYPE_ADV_ONEBUF                0x02000000
00119 #define E1000_SRRCTL_DESCTYPE_HDR_SPLIT                 0x04000000
00120 #define E1000_SRRCTL_DESCTYPE_HDR_SPLIT_ALWAYS          0x0A000000
00121 #define E1000_SRRCTL_DESCTYPE_HDR_REPLICATION           0x06000000
00122 #define E1000_SRRCTL_DESCTYPE_HDR_REPLICATION_LARGE_PKT 0x08000000
00123 #define E1000_SRRCTL_DESCTYPE_MASK                      0x0E000000
00124 #define E1000_SRRCTL_DROP_EN                            0x80000000
00125 
00126 #define E1000_SRRCTL_BSIZEPKT_MASK      0x0000007F
00127 #define E1000_SRRCTL_BSIZEHDR_MASK      0x00003F00
00128 
00129 #define E1000_TX_HEAD_WB_ENABLE   0x1
00130 #define E1000_TX_SEQNUM_WB_ENABLE 0x2
00131 
00132 #define E1000_MRQC_ENABLE_RSS_4Q            0x00000002
00133 #define E1000_MRQC_ENABLE_VMDQ              0x00000003
00134 #define E1000_MRQC_ENABLE_VMDQ_RSS_2Q       0x00000005
00135 #define E1000_MRQC_RSS_FIELD_IPV4_UDP       0x00400000
00136 #define E1000_MRQC_RSS_FIELD_IPV6_UDP       0x00800000
00137 #define E1000_MRQC_RSS_FIELD_IPV6_UDP_EX    0x01000000
00138 
00139 #define E1000_VMRCTL_MIRROR_PORT_SHIFT      8
00140 #define E1000_VMRCTL_MIRROR_DSTPORT_MASK    (7 << E1000_VMRCTL_MIRROR_PORT_SHIFT)
00141 #define E1000_VMRCTL_POOL_MIRROR_ENABLE     (1 << 0)
00142 #define E1000_VMRCTL_UPLINK_MIRROR_ENABLE   (1 << 1)
00143 #define E1000_VMRCTL_DOWNLINK_MIRROR_ENABLE (1 << 2)
00144 
00145 #define E1000_EICR_TX_QUEUE ( \
00146     E1000_EICR_TX_QUEUE0 |    \
00147     E1000_EICR_TX_QUEUE1 |    \
00148     E1000_EICR_TX_QUEUE2 |    \
00149     E1000_EICR_TX_QUEUE3)
00150 
00151 #define E1000_EICR_RX_QUEUE ( \
00152     E1000_EICR_RX_QUEUE0 |    \
00153     E1000_EICR_RX_QUEUE1 |    \
00154     E1000_EICR_RX_QUEUE2 |    \
00155     E1000_EICR_RX_QUEUE3)
00156 
00157 #define E1000_EIMS_RX_QUEUE E1000_EICR_RX_QUEUE
00158 #define E1000_EIMS_TX_QUEUE E1000_EICR_TX_QUEUE
00159 
00160 #define EIMS_ENABLE_MASK ( \
00161     E1000_EIMS_RX_QUEUE  | \
00162     E1000_EIMS_TX_QUEUE  | \
00163     E1000_EIMS_TCP_TIMER | \
00164     E1000_EIMS_OTHER)
00165 
00166 /* Immediate Interrupt Rx (A.K.A. Low Latency Interrupt) */
00167 #define E1000_IMIR_PORT_IM_EN     0x00010000  /* TCP port enable */
00168 #define E1000_IMIR_PORT_BP        0x00020000  /* TCP port check bypass */
00169 #define E1000_IMIREXT_SIZE_BP     0x00001000  /* Packet size bypass */
00170 #define E1000_IMIREXT_CTRL_URG    0x00002000  /* Check URG bit in header */
00171 #define E1000_IMIREXT_CTRL_ACK    0x00004000  /* Check ACK bit in header */
00172 #define E1000_IMIREXT_CTRL_PSH    0x00008000  /* Check PSH bit in header */
00173 #define E1000_IMIREXT_CTRL_RST    0x00010000  /* Check RST bit in header */
00174 #define E1000_IMIREXT_CTRL_SYN    0x00020000  /* Check SYN bit in header */
00175 #define E1000_IMIREXT_CTRL_FIN    0x00040000  /* Check FIN bit in header */
00176 #define E1000_IMIREXT_CTRL_BP     0x00080000  /* Bypass check of ctrl bits */
00177 
00178 /* Receive Descriptor - Advanced */
00179 union e1000_adv_rx_desc {
00180         struct {
00181                 __le64 pkt_addr;             /* Packet buffer address */
00182                 __le64 hdr_addr;             /* Header buffer address */
00183         } read;
00184         struct {
00185                 struct {
00186                         union {
00187                                 __le32 data;
00188                                 struct {
00189                                         __le16 pkt_info; /*RSS type, Pkt type*/
00190                                         __le16 hdr_info; /* Split Header,
00191                                                           * header buffer len*/
00192                                 } hs_rss;
00193                         } lo_dword;
00194                         union {
00195                                 __le32 rss;          /* RSS Hash */
00196                                 struct {
00197                                         __le16 ip_id;    /* IP id */
00198                                         __le16 csum;     /* Packet Checksum */
00199                                 } csum_ip;
00200                         } hi_dword;
00201                 } lower;
00202                 struct {
00203                         __le32 status_error;     /* ext status/error */
00204                         __le16 length;           /* Packet length */
00205                         __le16 vlan;             /* VLAN tag */
00206                 } upper;
00207         } wb;  /* writeback */
00208 };
00209 
00210 #define E1000_RXDADV_RSSTYPE_MASK        0x0000000F
00211 #define E1000_RXDADV_RSSTYPE_SHIFT       12
00212 #define E1000_RXDADV_HDRBUFLEN_MASK      0x7FE0
00213 #define E1000_RXDADV_HDRBUFLEN_SHIFT     5
00214 #define E1000_RXDADV_SPLITHEADER_EN      0x00001000
00215 #define E1000_RXDADV_SPH                 0x8000
00216 #define E1000_RXDADV_STAT_TS             0x10000 /* Pkt was time stamped */
00217 #define E1000_RXDADV_ERR_HBO             0x00800000
00218 
00219 /* RSS Hash results */
00220 #define E1000_RXDADV_RSSTYPE_NONE        0x00000000
00221 #define E1000_RXDADV_RSSTYPE_IPV4_TCP    0x00000001
00222 #define E1000_RXDADV_RSSTYPE_IPV4        0x00000002
00223 #define E1000_RXDADV_RSSTYPE_IPV6_TCP    0x00000003
00224 #define E1000_RXDADV_RSSTYPE_IPV6_EX     0x00000004
00225 #define E1000_RXDADV_RSSTYPE_IPV6        0x00000005
00226 #define E1000_RXDADV_RSSTYPE_IPV6_TCP_EX 0x00000006
00227 #define E1000_RXDADV_RSSTYPE_IPV4_UDP    0x00000007
00228 #define E1000_RXDADV_RSSTYPE_IPV6_UDP    0x00000008
00229 #define E1000_RXDADV_RSSTYPE_IPV6_UDP_EX 0x00000009
00230 
00231 /* RSS Packet Types as indicated in the receive descriptor */
00232 #define E1000_RXDADV_PKTTYPE_NONE        0x00000000
00233 #define E1000_RXDADV_PKTTYPE_IPV4        0x00000010 /* IPV4 hdr present */
00234 #define E1000_RXDADV_PKTTYPE_IPV4_EX     0x00000020 /* IPV4 hdr + extensions */
00235 #define E1000_RXDADV_PKTTYPE_IPV6        0x00000040 /* IPV6 hdr present */
00236 #define E1000_RXDADV_PKTTYPE_IPV6_EX     0x00000080 /* IPV6 hdr + extensions */
00237 #define E1000_RXDADV_PKTTYPE_TCP         0x00000100 /* TCP hdr present */
00238 #define E1000_RXDADV_PKTTYPE_UDP         0x00000200 /* UDP hdr present */
00239 #define E1000_RXDADV_PKTTYPE_SCTP        0x00000400 /* SCTP hdr present */
00240 #define E1000_RXDADV_PKTTYPE_NFS         0x00000800 /* NFS hdr present */
00241 
00242 #define E1000_RXDADV_PKTTYPE_IPSEC_ESP   0x00001000 /* IPSec ESP */
00243 #define E1000_RXDADV_PKTTYPE_IPSEC_AH    0x00002000 /* IPSec AH */
00244 #define E1000_RXDADV_PKTTYPE_LINKSEC     0x00004000 /* LinkSec Encap */
00245 #define E1000_RXDADV_PKTTYPE_ETQF        0x00008000 /* PKTTYPE is ETQF index */
00246 #define E1000_RXDADV_PKTTYPE_ETQF_MASK   0x00000070 /* ETQF has 8 indices */
00247 #define E1000_RXDADV_PKTTYPE_ETQF_SHIFT  4          /* Right-shift 4 bits */
00248 
00249 /* LinkSec results */
00250 /* Security Processing bit Indication */
00251 #define E1000_RXDADV_LNKSEC_STATUS_SECP         0x00020000
00252 #define E1000_RXDADV_LNKSEC_ERROR_BIT_MASK      0x18000000
00253 #define E1000_RXDADV_LNKSEC_ERROR_NO_SA_MATCH   0x08000000
00254 #define E1000_RXDADV_LNKSEC_ERROR_REPLAY_ERROR  0x10000000
00255 #define E1000_RXDADV_LNKSEC_ERROR_BAD_SIG       0x18000000
00256 
00257 #define E1000_RXDADV_IPSEC_STATUS_SECP          0x00020000
00258 #define E1000_RXDADV_IPSEC_ERROR_BIT_MASK       0x18000000
00259 #define E1000_RXDADV_IPSEC_ERROR_INVALID_PROTOCOL       0x08000000
00260 #define E1000_RXDADV_IPSEC_ERROR_INVALID_LENGTH         0x10000000
00261 #define E1000_RXDADV_IPSEC_ERROR_AUTHENTICATION_FAILED  0x18000000
00262 
00263 /* Transmit Descriptor - Advanced */
00264 union e1000_adv_tx_desc {
00265         struct {
00266                 __le64 buffer_addr;    /* Address of descriptor's data buf */
00267                 __le32 cmd_type_len;
00268                 __le32 olinfo_status;
00269         } read;
00270         struct {
00271                 __le64 rsvd;       /* Reserved */
00272                 __le32 nxtseq_seed;
00273                 __le32 status;
00274         } wb;
00275 };
00276 
00277 /* Adv Transmit Descriptor Config Masks */
00278 #define E1000_ADVTXD_DTYP_CTXT    0x00200000 /* Advanced Context Descriptor */
00279 #define E1000_ADVTXD_DTYP_DATA    0x00300000 /* Advanced Data Descriptor */
00280 #define E1000_ADVTXD_DCMD_EOP     0x01000000 /* End of Packet */
00281 #define E1000_ADVTXD_DCMD_IFCS    0x02000000 /* Insert FCS (Ethernet CRC) */
00282 #define E1000_ADVTXD_DCMD_RS      0x08000000 /* Report Status */
00283 #define E1000_ADVTXD_DCMD_DDTYP_ISCSI  0x10000000 /* DDP hdr type or iSCSI */
00284 #define E1000_ADVTXD_DCMD_DEXT    0x20000000 /* Descriptor extension (1=Adv) */
00285 #define E1000_ADVTXD_DCMD_VLE     0x40000000 /* VLAN pkt enable */
00286 #define E1000_ADVTXD_DCMD_TSE     0x80000000 /* TCP Seg enable */
00287 #define E1000_ADVTXD_MAC_LINKSEC  0x00040000 /* Apply LinkSec on packet */
00288 #define E1000_ADVTXD_MAC_TSTAMP   0x00080000 /* IEEE1588 Timestamp packet */
00289 #define E1000_ADVTXD_STAT_SN_CRC  0x00000002 /* NXTSEQ/SEED present in WB */
00290 #define E1000_ADVTXD_IDX_SHIFT    4  /* Adv desc Index shift */
00291 #define E1000_ADVTXD_POPTS_ISCO_1ST  0x00000000 /* 1st TSO of iSCSI PDU */
00292 #define E1000_ADVTXD_POPTS_ISCO_MDL  0x00000800 /* Middle TSO of iSCSI PDU */
00293 #define E1000_ADVTXD_POPTS_ISCO_LAST 0x00001000 /* Last TSO of iSCSI PDU */
00294 #define E1000_ADVTXD_POPTS_ISCO_FULL 0x00001800 /* 1st&Last TSO-full iSCSI PDU*/
00295 #define E1000_ADVTXD_POPTS_IPSEC     0x00000400 /* IPSec offload request */
00296 #define E1000_ADVTXD_PAYLEN_SHIFT    14 /* Adv desc PAYLEN shift */
00297 
00298 /* Context descriptors */
00299 struct e1000_adv_tx_context_desc {
00300         __le32 vlan_macip_lens;
00301         __le32 seqnum_seed;
00302         __le32 type_tucmd_mlhl;
00303         __le32 mss_l4len_idx;
00304 };
00305 
00306 #define E1000_ADVTXD_MACLEN_SHIFT    9  /* Adv ctxt desc mac len shift */
00307 #define E1000_ADVTXD_VLAN_SHIFT     16  /* Adv ctxt vlan tag shift */
00308 #define E1000_ADVTXD_TUCMD_IPV4    0x00000400  /* IP Packet Type: 1=IPv4 */
00309 #define E1000_ADVTXD_TUCMD_IPV6    0x00000000  /* IP Packet Type: 0=IPv6 */
00310 #define E1000_ADVTXD_TUCMD_L4T_UDP 0x00000000  /* L4 Packet TYPE of UDP */
00311 #define E1000_ADVTXD_TUCMD_L4T_TCP 0x00000800  /* L4 Packet TYPE of TCP */
00312 #define E1000_ADVTXD_TUCMD_L4T_SCTP 0x00001000  /* L4 Packet TYPE of SCTP */
00313 #define E1000_ADVTXD_TUCMD_IPSEC_TYPE_ESP    0x00002000 /* IPSec Type ESP */
00314 /* IPSec Encrypt Enable for ESP */
00315 #define E1000_ADVTXD_TUCMD_IPSEC_ENCRYPT_EN  0x00004000
00316 #define E1000_ADVTXD_TUCMD_MKRREQ  0x00002000 /* Req requires Markers and CRC */
00317 #define E1000_ADVTXD_L4LEN_SHIFT     8  /* Adv ctxt L4LEN shift */
00318 #define E1000_ADVTXD_MSS_SHIFT      16  /* Adv ctxt MSS shift */
00319 /* Adv ctxt IPSec SA IDX mask */
00320 #define E1000_ADVTXD_IPSEC_SA_INDEX_MASK     0x000000FF
00321 /* Adv ctxt IPSec ESP len mask */
00322 #define E1000_ADVTXD_IPSEC_ESP_LEN_MASK      0x000000FF
00323 
00324 /* Additional Transmit Descriptor Control definitions */
00325 #define E1000_TXDCTL_QUEUE_ENABLE  0x02000000 /* Enable specific Tx Queue */
00326 #define E1000_TXDCTL_SWFLSH        0x04000000 /* Tx Desc. write-back flushing */
00327 /* Tx Queue Arbitration Priority 0=low, 1=high */
00328 #define E1000_TXDCTL_PRIORITY      0x08000000
00329 
00330 /* Additional Receive Descriptor Control definitions */
00331 #define E1000_RXDCTL_QUEUE_ENABLE  0x02000000 /* Enable specific Rx Queue */
00332 #define E1000_RXDCTL_SWFLSH        0x04000000 /* Rx Desc. write-back flushing */
00333 
00334 /* Direct Cache Access (DCA) definitions */
00335 #define E1000_DCA_CTRL_DCA_ENABLE  0x00000000 /* DCA Enable */
00336 #define E1000_DCA_CTRL_DCA_DISABLE 0x00000001 /* DCA Disable */
00337 
00338 #define E1000_DCA_CTRL_DCA_MODE_CB1 0x00 /* DCA Mode CB1 */
00339 #define E1000_DCA_CTRL_DCA_MODE_CB2 0x02 /* DCA Mode CB2 */
00340 
00341 #define E1000_DCA_RXCTRL_CPUID_MASK 0x0000001F /* Rx CPUID Mask */
00342 #define E1000_DCA_RXCTRL_DESC_DCA_EN (1 << 5) /* DCA Rx Desc enable */
00343 #define E1000_DCA_RXCTRL_HEAD_DCA_EN (1 << 6) /* DCA Rx Desc header enable */
00344 #define E1000_DCA_RXCTRL_DATA_DCA_EN (1 << 7) /* DCA Rx Desc payload enable */
00345 
00346 #define E1000_DCA_TXCTRL_CPUID_MASK 0x0000001F /* Tx CPUID Mask */
00347 #define E1000_DCA_TXCTRL_DESC_DCA_EN (1 << 5) /* DCA Tx Desc enable */
00348 #define E1000_DCA_TXCTRL_TX_WB_RO_EN (1 << 11) /* Tx Desc writeback RO bit */
00349 
00350 #define E1000_DCA_TXCTRL_CPUID_MASK_82576 0xFF000000 /* Tx CPUID Mask */
00351 #define E1000_DCA_RXCTRL_CPUID_MASK_82576 0xFF000000 /* Rx CPUID Mask */
00352 #define E1000_DCA_TXCTRL_CPUID_SHIFT_82576 24 /* Tx CPUID */
00353 #define E1000_DCA_RXCTRL_CPUID_SHIFT_82576 24 /* Rx CPUID */
00354 
00355 /* Additional interrupt register bit definitions */
00356 #define E1000_ICR_LSECPNS       0x00000020          /* PN threshold - server */
00357 #define E1000_IMS_LSECPNS       E1000_ICR_LSECPNS   /* PN threshold - server */
00358 #define E1000_ICS_LSECPNS       E1000_ICR_LSECPNS   /* PN threshold - server */
00359 
00360 /* ETQF register bit definitions */
00361 #define E1000_ETQF_FILTER_ENABLE   (1 << 26)
00362 #define E1000_ETQF_IMM_INT         (1 << 29)
00363 #define E1000_ETQF_1588            (1 << 30)
00364 #define E1000_ETQF_QUEUE_ENABLE    (1 << 31)
00365 /*
00366  * ETQF filter list: one static filter per filter consumer. This is
00367  *                   to avoid filter collisions later. Add new filters
00368  *                   here!!
00369  *
00370  * Current filters:
00371  *    EAPOL 802.1x (0x888e): Filter 0
00372  */
00373 #define E1000_ETQF_FILTER_EAPOL          0
00374 
00375 #define E1000_FTQF_VF_BP               0x00008000
00376 #define E1000_FTQF_1588_TIME_STAMP     0x08000000
00377 #define E1000_FTQF_MASK                0xF0000000
00378 #define E1000_FTQF_MASK_PROTO_BP       0x10000000
00379 #define E1000_FTQF_MASK_SOURCE_ADDR_BP 0x20000000
00380 #define E1000_FTQF_MASK_DEST_ADDR_BP   0x40000000
00381 #define E1000_FTQF_MASK_SOURCE_PORT_BP 0x80000000
00382 
00383 #define E1000_NVM_APME_82575          0x0400
00384 #define MAX_NUM_VFS                   8
00385 
00386 #define E1000_DTXSWC_MAC_SPOOF_MASK   0x000000FF /* Per VF MAC spoof control */
00387 #define E1000_DTXSWC_VLAN_SPOOF_MASK  0x0000FF00 /* Per VF VLAN spoof control */
00388 #define E1000_DTXSWC_LLE_MASK         0x00FF0000 /* Per VF Local LB enables */
00389 #define E1000_DTXSWC_VLAN_SPOOF_SHIFT 8
00390 #define E1000_DTXSWC_LLE_SHIFT        16
00391 #define E1000_DTXSWC_VMDQ_LOOPBACK_EN (1 << 31)  /* global VF LB enable */
00392 
00393 /* Easy defines for setting default pool, would normally be left a zero */
00394 #define E1000_VT_CTL_DEFAULT_POOL_SHIFT 7
00395 #define E1000_VT_CTL_DEFAULT_POOL_MASK  (0x7 << E1000_VT_CTL_DEFAULT_POOL_SHIFT)
00396 
00397 /* Other useful VMD_CTL register defines */
00398 #define E1000_VT_CTL_IGNORE_MAC         (1 << 28)
00399 #define E1000_VT_CTL_DISABLE_DEF_POOL   (1 << 29)
00400 #define E1000_VT_CTL_VM_REPL_EN         (1 << 30)
00401 
00402 /* Per VM Offload register setup */
00403 #define E1000_VMOLR_RLPML_MASK 0x00003FFF /* Long Packet Maximum Length mask */
00404 #define E1000_VMOLR_LPE        0x00010000 /* Accept Long packet */
00405 #define E1000_VMOLR_RSSE       0x00020000 /* Enable RSS */
00406 #define E1000_VMOLR_AUPE       0x01000000 /* Accept untagged packets */
00407 #define E1000_VMOLR_ROMPE      0x02000000 /* Accept overflow multicast */
00408 #define E1000_VMOLR_ROPE       0x04000000 /* Accept overflow unicast */
00409 #define E1000_VMOLR_BAM        0x08000000 /* Accept Broadcast packets */
00410 #define E1000_VMOLR_MPME       0x10000000 /* Multicast promiscuous mode */
00411 #define E1000_VMOLR_STRVLAN    0x40000000 /* Vlan stripping enable */
00412 #define E1000_VMOLR_STRCRC     0x80000000 /* CRC stripping enable */
00413 
00414 #define E1000_VLVF_ARRAY_SIZE     32
00415 #define E1000_VLVF_VLANID_MASK    0x00000FFF
00416 #define E1000_VLVF_POOLSEL_SHIFT  12
00417 #define E1000_VLVF_POOLSEL_MASK   (0xFF << E1000_VLVF_POOLSEL_SHIFT)
00418 #define E1000_VLVF_LVLAN          0x00100000
00419 #define E1000_VLVF_VLANID_ENABLE  0x80000000
00420 
00421 #define E1000_VF_INIT_TIMEOUT 200 /* Number of retries to clear RSTI */
00422 
00423 #define E1000_IOVCTL 0x05BBC
00424 #define E1000_IOVCTL_REUSE_VFQ 0x00000001
00425 
00426 #define E1000_RPLOLR_STRVLAN   0x40000000
00427 #define E1000_RPLOLR_STRCRC    0x80000000
00428 
00429 #define E1000_DTXCTL_8023LL     0x0004
00430 #define E1000_DTXCTL_VLAN_ADDED 0x0008
00431 #define E1000_DTXCTL_OOS_ENABLE 0x0010
00432 #define E1000_DTXCTL_MDP_EN     0x0020
00433 #define E1000_DTXCTL_SPOOF_INT  0x0040
00434 
00435 #define ALL_QUEUES   0xFFFF
00436 
00437 /* RX packet buffer size defines */
00438 #define E1000_RXPBS_SIZE_MASK_82576  0x0000007F
00439 void e1000_vmdq_set_loopback_pf(struct e1000_hw *hw, bool enable);
00440 void e1000_vmdq_set_replication_pf(struct e1000_hw *hw, bool enable);
00441 
00442 #endif /* _IGB_82575_H_ */

Generated on Tue Apr 6 20:01:00 2010 for gPXE by  doxygen 1.5.7.1