1*21b5a6f8SBruce Allan /******************************************************************************* 2*21b5a6f8SBruce Allan 3*21b5a6f8SBruce Allan Intel PRO/1000 Linux driver 4*21b5a6f8SBruce Allan Copyright(c) 1999 - 2013 Intel Corporation. 5*21b5a6f8SBruce Allan 6*21b5a6f8SBruce Allan This program is free software; you can redistribute it and/or modify it 7*21b5a6f8SBruce Allan under the terms and conditions of the GNU General Public License, 8*21b5a6f8SBruce Allan version 2, as published by the Free Software Foundation. 9*21b5a6f8SBruce Allan 10*21b5a6f8SBruce Allan This program is distributed in the hope it will be useful, but WITHOUT 11*21b5a6f8SBruce Allan ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12*21b5a6f8SBruce Allan FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13*21b5a6f8SBruce Allan more details. 14*21b5a6f8SBruce Allan 15*21b5a6f8SBruce Allan You should have received a copy of the GNU General Public License along with 16*21b5a6f8SBruce Allan this program; if not, write to the Free Software Foundation, Inc., 17*21b5a6f8SBruce Allan 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 18*21b5a6f8SBruce Allan 19*21b5a6f8SBruce Allan The full GNU General Public License is included in this distribution in 20*21b5a6f8SBruce Allan the file called "COPYING". 21*21b5a6f8SBruce Allan 22*21b5a6f8SBruce Allan Contact Information: 23*21b5a6f8SBruce Allan Linux NICS <linux.nics@intel.com> 24*21b5a6f8SBruce Allan e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> 25*21b5a6f8SBruce Allan Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 26*21b5a6f8SBruce Allan 27*21b5a6f8SBruce Allan *******************************************************************************/ 28*21b5a6f8SBruce Allan 29*21b5a6f8SBruce Allan #ifndef _E1000E_80003ES2LAN_H_ 30*21b5a6f8SBruce Allan #define _E1000E_80003ES2LAN_H_ 31*21b5a6f8SBruce Allan 32*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OFFSET_FIFO_CTRL 0x00 33*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OFFSET_INB_CTRL 0x02 34*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OFFSET_HD_CTRL 0x10 35*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OFFSET_MAC2PHY_OPMODE 0x1F 36*21b5a6f8SBruce Allan 37*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_FIFO_CTRL_RX_BYPASS 0x0008 38*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_FIFO_CTRL_TX_BYPASS 0x0800 39*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING 0x0010 40*21b5a6f8SBruce Allan 41*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT 0x0004 42*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_HD_CTRL_1000_DEFAULT 0x0000 43*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OPMODE_E_IDLE 0x2000 44*21b5a6f8SBruce Allan 45*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OPMODE_MASK 0x000C 46*21b5a6f8SBruce Allan #define E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO 0x0004 47*21b5a6f8SBruce Allan 48*21b5a6f8SBruce Allan #define E1000_TCTL_EXT_GCEX_MASK 0x000FFC00 /* Gig Carry Extend Padding */ 49*21b5a6f8SBruce Allan #define DEFAULT_TCTL_EXT_GCEX_80003ES2LAN 0x00010000 50*21b5a6f8SBruce Allan 51*21b5a6f8SBruce Allan #define DEFAULT_TIPG_IPGT_1000_80003ES2LAN 0x8 52*21b5a6f8SBruce Allan #define DEFAULT_TIPG_IPGT_10_100_80003ES2LAN 0x9 53*21b5a6f8SBruce Allan 54*21b5a6f8SBruce Allan /* GG82563 PHY Specific Status Register (Page 0, Register 16 */ 55*21b5a6f8SBruce Allan #define GG82563_PSCR_POLARITY_REVERSAL_DISABLE 0x0002 /* 1=Reversal Dis */ 56*21b5a6f8SBruce Allan #define GG82563_PSCR_CROSSOVER_MODE_MASK 0x0060 57*21b5a6f8SBruce Allan #define GG82563_PSCR_CROSSOVER_MODE_MDI 0x0000 /* 00=Manual MDI */ 58*21b5a6f8SBruce Allan #define GG82563_PSCR_CROSSOVER_MODE_MDIX 0x0020 /* 01=Manual MDIX */ 59*21b5a6f8SBruce Allan #define GG82563_PSCR_CROSSOVER_MODE_AUTO 0x0060 /* 11=Auto crossover */ 60*21b5a6f8SBruce Allan 61*21b5a6f8SBruce Allan /* PHY Specific Control Register 2 (Page 0, Register 26) */ 62*21b5a6f8SBruce Allan #define GG82563_PSCR2_REVERSE_AUTO_NEG 0x2000 /* 1=Reverse Auto-Neg */ 63*21b5a6f8SBruce Allan 64*21b5a6f8SBruce Allan /* MAC Specific Control Register (Page 2, Register 21) */ 65*21b5a6f8SBruce Allan /* Tx clock speed for Link Down and 1000BASE-T for the following speeds */ 66*21b5a6f8SBruce Allan #define GG82563_MSCR_TX_CLK_MASK 0x0007 67*21b5a6f8SBruce Allan #define GG82563_MSCR_TX_CLK_10MBPS_2_5 0x0004 68*21b5a6f8SBruce Allan #define GG82563_MSCR_TX_CLK_100MBPS_25 0x0005 69*21b5a6f8SBruce Allan #define GG82563_MSCR_TX_CLK_1000MBPS_25 0x0007 70*21b5a6f8SBruce Allan 71*21b5a6f8SBruce Allan #define GG82563_MSCR_ASSERT_CRS_ON_TX 0x0010 /* 1=Assert */ 72*21b5a6f8SBruce Allan 73*21b5a6f8SBruce Allan /* DSP Distance Register (Page 5, Register 26) 74*21b5a6f8SBruce Allan * 0 = <50M 75*21b5a6f8SBruce Allan * 1 = 50-80M 76*21b5a6f8SBruce Allan * 2 = 80-100M 77*21b5a6f8SBruce Allan * 3 = 110-140M 78*21b5a6f8SBruce Allan * 4 = >140M 79*21b5a6f8SBruce Allan */ 80*21b5a6f8SBruce Allan #define GG82563_DSPD_CABLE_LENGTH 0x0007 81*21b5a6f8SBruce Allan 82*21b5a6f8SBruce Allan /* Kumeran Mode Control Register (Page 193, Register 16) */ 83*21b5a6f8SBruce Allan #define GG82563_KMCR_PASS_FALSE_CARRIER 0x0800 84*21b5a6f8SBruce Allan 85*21b5a6f8SBruce Allan /* Max number of times Kumeran read/write should be validated */ 86*21b5a6f8SBruce Allan #define GG82563_MAX_KMRN_RETRY 0x5 87*21b5a6f8SBruce Allan 88*21b5a6f8SBruce Allan /* Power Management Control Register (Page 193, Register 20) */ 89*21b5a6f8SBruce Allan /* 1=Enable SERDES Electrical Idle */ 90*21b5a6f8SBruce Allan #define GG82563_PMCR_ENABLE_ELECTRICAL_IDLE 0x0001 91*21b5a6f8SBruce Allan 92*21b5a6f8SBruce Allan /* In-Band Control Register (Page 194, Register 18) */ 93*21b5a6f8SBruce Allan #define GG82563_ICR_DIS_PADDING 0x0010 /* Disable Padding */ 94*21b5a6f8SBruce Allan 95*21b5a6f8SBruce Allan #endif 96