e1000_82571.h revision 287762
1270096Strasz/****************************************************************************** 2270096Strasz 3270096Strasz Copyright (c) 2001-2015, Intel Corporation 4270096Strasz All rights reserved. 5270096Strasz 6270096Strasz Redistribution and use in source and binary forms, with or without 7270096Strasz modification, are permitted provided that the following conditions are met: 8270096Strasz 9270096Strasz 1. Redistributions of source code must retain the above copyright notice, 10270096Strasz this list of conditions and the following disclaimer. 11270096Strasz 12270096Strasz 2. Redistributions in binary form must reproduce the above copyright 13270096Strasz notice, this list of conditions and the following disclaimer in the 14270096Strasz documentation and/or other materials provided with the distribution. 15270096Strasz 16270096Strasz 3. Neither the name of the Intel Corporation nor the names of its 17270096Strasz contributors may be used to endorse or promote products derived from 18270096Strasz this software without specific prior written permission. 19270096Strasz 20270096Strasz THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21270096Strasz AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22270096Strasz IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23270096Strasz ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24270096Strasz LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25270096Strasz CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26270096Strasz SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27270096Strasz INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28270096Strasz CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29270096Strasz ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30270096Strasz POSSIBILITY OF SUCH DAMAGE. 31270096Strasz 32270096Strasz******************************************************************************/ 33270096Strasz/*$FreeBSD: head/sys/dev/e1000/e1000_82571.h 287762 2015-09-13 18:26:05Z sbruno $*/ 34270096Strasz 35270096Strasz#ifndef _E1000_82571_H_ 36270096Strasz#define _E1000_82571_H_ 37270096Strasz 38270096Strasz#define ID_LED_RESERVED_F746 0xF746 39270096Strasz#define ID_LED_DEFAULT_82573 ((ID_LED_DEF1_DEF2 << 12) | \ 40270096Strasz (ID_LED_OFF1_ON2 << 8) | \ 41270096Strasz (ID_LED_DEF1_DEF2 << 4) | \ 42270096Strasz (ID_LED_DEF1_DEF2)) 43270096Strasz 44270096Strasz#define E1000_GCR_L1_ACT_WITHOUT_L0S_RX 0x08000000 45274235Strasz#define AN_RETRY_COUNT 5 /* Autoneg Retry Count value */ 46274235Strasz 47274235Strasz/* Intr Throttling - RW */ 48274235Strasz#define E1000_EITR_82574(_n) (0x000E8 + (0x4 * (_n))) 49270096Strasz 50270096Strasz#define E1000_EIAC_82574 0x000DC /* Ext. Interrupt Auto Clear - RW */ 51274235Strasz#define E1000_EIAC_MASK_82574 0x01F00000 52274235Strasz 53274235Strasz#define E1000_IVAR_INT_ALLOC_VALID 0x8 54274235Strasz 55274235Strasz/* Manageability Operation Mode mask */ 56274235Strasz#define E1000_NVM_INIT_CTRL2_MNGM 0x6000 57270096Strasz 58270096Strasz#define E1000_BASE1000T_STATUS 10 59274234Strasz#define E1000_IDLE_ERROR_COUNT_MASK 0xFF 60274234Strasz#define E1000_RECEIVE_ERROR_COUNTER 21 61274234Strasz#define E1000_RECEIVE_ERROR_MAX 0xFFFF 62274234Straszbool e1000_check_phy_82574(struct e1000_hw *hw); 63274234Straszbool e1000_get_laa_state_82571(struct e1000_hw *hw); 64274234Straszvoid e1000_set_laa_state_82571(struct e1000_hw *hw, bool state); 65270096Strasz 66270096Strasz#endif 67270096Strasz