e1000_80003es2lan.h revision 256200
161808Sobrien/****************************************************************************** 233968Sjdp 389913Sobrien Copyright (c) 2001-2013, Intel Corporation 489913Sobrien All rights reserved. 533968Sjdp 689913Sobrien Redistribution and use in source and binary forms, with or without 789913Sobrien modification, are permitted provided that the following conditions are met: 833968Sjdp 989913Sobrien 1. Redistributions of source code must retain the above copyright notice, 1091056Sobrien this list of conditions and the following disclaimer. 1189913Sobrien 1291056Sobrien 2. Redistributions in binary form must reproduce the above copyright 1389913Sobrien notice, this list of conditions and the following disclaimer in the 1489913Sobrien documentation and/or other materials provided with the distribution. 1561808Sobrien 1689913Sobrien 3. Neither the name of the Intel Corporation nor the names of its 1791056Sobrien contributors may be used to endorse or promote products derived from 1891056Sobrien this software without specific prior written permission. 1989913Sobrien 2089913Sobrien THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2189913Sobrien AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2289913Sobrien IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2389913Sobrien ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2489913Sobrien LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2589913Sobrien CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2689913Sobrien SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2789913Sobrien INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2889913Sobrien CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2989913Sobrien ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3089913Sobrien POSSIBILITY OF SUCH DAMAGE. 3189913Sobrien 3289913Sobrien******************************************************************************/ 3389913Sobrien/*$FreeBSD: head/sys/dev/e1000/e1000_80003es2lan.h 256200 2013-10-09 17:32:52Z jfv $*/ 3491056Sobrien 3589913Sobrien#ifndef _E1000_80003ES2LAN_H_ 3689913Sobrien#define _E1000_80003ES2LAN_H_ 3789913Sobrien 3889913Sobrien#define E1000_KMRNCTRLSTA_OFFSET_FIFO_CTRL 0x00 3989913Sobrien#define E1000_KMRNCTRLSTA_OFFSET_INB_CTRL 0x02 4033968Sjdp#define E1000_KMRNCTRLSTA_OFFSET_HD_CTRL 0x10 4133968Sjdp#define E1000_KMRNCTRLSTA_OFFSET_MAC2PHY_OPMODE 0x1F 4261808Sobrien 4361808Sobrien#define E1000_KMRNCTRLSTA_FIFO_CTRL_RX_BYPASS 0x0008 4491056Sobrien#define E1000_KMRNCTRLSTA_FIFO_CTRL_TX_BYPASS 0x0800 4561808Sobrien#define E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING 0x0010 4689913Sobrien 4761808Sobrien#define E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT 0x0004 4861808Sobrien#define E1000_KMRNCTRLSTA_HD_CTRL_1000_DEFAULT 0x0000 4961808Sobrien#define E1000_KMRNCTRLSTA_OPMODE_E_IDLE 0x2000 5061808Sobrien 5133968Sjdp#define E1000_KMRNCTRLSTA_OPMODE_MASK 0x000C 5233968Sjdp#define E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO 0x0004 5392216Sobrien 5492216Sobrien#define E1000_TCTL_EXT_GCEX_MASK 0x000FFC00 /* Gig Carry Extend Padding */ 5592216Sobrien#define DEFAULT_TCTL_EXT_GCEX_80003ES2LAN 0x00010000 5692216Sobrien 57#define DEFAULT_TIPG_IPGT_1000_80003ES2LAN 0x8 58#define DEFAULT_TIPG_IPGT_10_100_80003ES2LAN 0x9 59 60/* GG82563 PHY Specific Status Register (Page 0, Register 16 */ 61#define GG82563_PSCR_POLARITY_REVERSAL_DISABLE 0x0002 /* 1=Reversal Dis */ 62#define GG82563_PSCR_CROSSOVER_MODE_MASK 0x0060 63#define GG82563_PSCR_CROSSOVER_MODE_MDI 0x0000 /* 00=Manual MDI */ 64#define GG82563_PSCR_CROSSOVER_MODE_MDIX 0x0020 /* 01=Manual MDIX */ 65#define GG82563_PSCR_CROSSOVER_MODE_AUTO 0x0060 /* 11=Auto crossover */ 66 67/* PHY Specific Control Register 2 (Page 0, Register 26) */ 68#define GG82563_PSCR2_REVERSE_AUTO_NEG 0x2000 /* 1=Reverse Auto-Neg */ 69 70/* MAC Specific Control Register (Page 2, Register 21) */ 71/* Tx clock speed for Link Down and 1000BASE-T for the following speeds */ 72#define GG82563_MSCR_TX_CLK_MASK 0x0007 73#define GG82563_MSCR_TX_CLK_10MBPS_2_5 0x0004 74#define GG82563_MSCR_TX_CLK_100MBPS_25 0x0005 75#define GG82563_MSCR_TX_CLK_1000MBPS_25 0x0007 76 77#define GG82563_MSCR_ASSERT_CRS_ON_TX 0x0010 /* 1=Assert */ 78 79/* DSP Distance Register (Page 5, Register 26) 80 * 0 = <50M 81 * 1 = 50-80M 82 * 2 = 80-100M 83 * 3 = 110-140M 84 * 4 = >140M 85 */ 86#define GG82563_DSPD_CABLE_LENGTH 0x0007 87 88/* Kumeran Mode Control Register (Page 193, Register 16) */ 89#define GG82563_KMCR_PASS_FALSE_CARRIER 0x0800 90 91/* Max number of times Kumeran read/write should be validated */ 92#define GG82563_MAX_KMRN_RETRY 0x5 93 94/* Power Management Control Register (Page 193, Register 20) */ 95/* 1=Enable SERDES Electrical Idle */ 96#define GG82563_PMCR_ENABLE_ELECTRICAL_IDLE 0x0001 97 98/* In-Band Control Register (Page 194, Register 18) */ 99#define GG82563_ICR_DIS_PADDING 0x0010 /* Disable Padding */ 100 101#endif 102