e1000_82543.h revision 8479:ad81b6a87fd7
1262569Simp/*
2262569Simp * This file is provided under a CDDLv1 license.  When using or
3262569Simp * redistributing this file, you may do so under this license.
4262569Simp * In redistributing this file this license must be included
5262569Simp * and no other modification of this header file is permitted.
6262569Simp *
7262569Simp * CDDL LICENSE SUMMARY
8262569Simp *
9262569Simp * Copyright(c) 1999 - 2009 Intel Corporation. All rights reserved.
10295436Sandrew *
11262569Simp * The contents of this file are subject to the terms of Version
12262569Simp * 1.0 of the Common Development and Distribution License (the "License").
13262569Simp *
14262569Simp * You should have received a copy of the License with this software.
15262569Simp * You can obtain a copy of the License at
16262569Simp *	http://www.opensolaris.org/os/licensing.
17262569Simp * See the License for the specific language governing permissions
18262569Simp * and limitations under the License.
19262569Simp */
20262569Simp
21262569Simp/*
22262569Simp * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23262569Simp * Use is subject to license terms of the CDDLv1.
24262569Simp */
25262569Simp
26262569Simp/*
27262569Simp * IntelVersion: 1.8 sol_anvik_patch
28262569Simp */
29262569Simp#ifndef _E1000_82543_H_
30#define	_E1000_82543_H_
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#define	PHY_PREAMBLE		0xFFFFFFFF
37#define	PHY_PREAMBLE_SIZE	32
38#define	PHY_SOF			0x1
39#define	PHY_OP_READ		0x2
40#define	PHY_OP_WRITE		0x1
41#define	PHY_TURNAROUND		0x2
42
43#define	TBI_COMPAT_ENABLED	0x1	/* Global "knob" for the workaround */
44/* If TBI_COMPAT_ENABLED, then this is the current state (on/off) */
45#define	TBI_SBP_ENABLED		0x2
46
47void e1000_tbi_adjust_stats_82543(struct e1000_hw *hw,
48    struct e1000_hw_stats *stats,
49    u32 frame_len, u8 *mac_addr,
50    u32 max_frame_size);
51void e1000_set_tbi_compatibility_82543(struct e1000_hw *hw, bool state);
52bool e1000_tbi_sbp_enabled_82543(struct e1000_hw *hw);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif	/* _E1000_82543_H_ */
59