e1000_82543.h revision caf05df5c10c960028f122b1b02a3f7d8f892c31
1N/A/*
1N/A * This file is provided under a CDDLv1 license. When using or
1N/A * redistributing this file, you may do so under this license.
1N/A * In redistributing this file this license must be included
1N/A * and no other modification of this header file is permitted.
1N/A *
1N/A * CDDL LICENSE SUMMARY
1N/A *
1N/A * Copyright(c) 1999 - 2009 Intel Corporation. All rights reserved.
1N/A *
1N/A * The contents of this file are subject to the terms of Version
1N/A * 1.0 of the Common Development and Distribution License (the "License").
1N/A *
1N/A * You should have received a copy of the License with this software.
1N/A * You can obtain a copy of the License at
1N/A * http://www.opensolaris.org/os/licensing.
1N/A * See the License for the specific language governing permissions
1N/A * and limitations under the License.
1N/A */
1N/A
1N/A/*
1N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1N/A * Use is subject to license terms of the CDDLv1.
1N/A */
1N/A
1N/A/*
1N/A * IntelVersion: 1.8 v3-1-3_2009-8-20
1N/A */
1N/A#ifndef _E1000_82543_H_
1N/A#define _E1000_82543_H_
1N/A
1N/A#ifdef __cplusplus
1N/Aextern "C" {
1N/A#endif
1N/A
1N/A#define PHY_PREAMBLE 0xFFFFFFFF
1N/A#define PHY_PREAMBLE_SIZE 32
1N/A#define PHY_SOF 0x1
1N/A#define PHY_OP_READ 0x2
1N/A#define PHY_OP_WRITE 0x1
1N/A#define PHY_TURNAROUND 0x2
1N/A
1N/A#define TBI_COMPAT_ENABLED 0x1 /* Global "knob" for the workaround */
1N/A/* If TBI_COMPAT_ENABLED, then this is the current state (on/off) */
1N/A#define TBI_SBP_ENABLED 0x2
1N/A
1N/Avoid e1000_tbi_adjust_stats_82543(struct e1000_hw *hw,
1N/A struct e1000_hw_stats *stats,
1N/A u32 frame_len, u8 *mac_addr,
1N/A u32 max_frame_size);
1N/Avoid e1000_set_tbi_compatibility_82543(struct e1000_hw *hw, bool state);
1N/Abool e1000_tbi_sbp_enabled_82543(struct e1000_hw *hw);
1N/A
1N/A#ifdef __cplusplus
1N/A}
1N/A#endif
1N/A
1N/A#endif /* _E1000_82543_H_ */
1N/A