1 /*******************************************************************************
3 Intel PRO/1000 Linux driver
4 Copyright(c) 1999 - 2008 Intel Corporation.
6 This program is free software; you can redistribute it and/or modify it
7 under the terms and conditions of the GNU General Public License,
8 version 2, as published by the Free Software Foundation.
10 This program is distributed in the hope it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 You should have received a copy of the GNU General Public License along with
16 this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19 The full GNU General Public License is included in this distribution in
20 the file called "COPYING".
23 Linux NICS <linux.nics@intel.com>
24 e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
25 Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
27 *******************************************************************************/
29 #ifndef _E1000_82543_H_
30 #define _E1000_82543_H_
32 #define PHY_PREAMBLE 0xFFFFFFFF
33 #define PHY_PREAMBLE_SIZE 32
35 #define PHY_OP_READ 0x2
36 #define PHY_OP_WRITE 0x1
37 #define PHY_TURNAROUND 0x2
39 #define TBI_COMPAT_ENABLED 0x1 /* Global "knob" for the workaround */
40 /* If TBI_COMPAT_ENABLED, then this is the current state (on/off) */
41 #define TBI_SBP_ENABLED 0x2
43 void e1000_tbi_adjust_stats_82543(struct e1000_hw
*hw
,
44 struct e1000_hw_stats
*stats
,
45 u32 frame_len
, u8
*mac_addr
,
47 void e1000_set_tbi_compatibility_82543(struct e1000_hw
*hw
,
49 bool e1000_tbi_sbp_enabled_82543(struct e1000_hw
*hw
);