xref: /titanic_41/usr/src/uts/common/io/ixgbe/ixgbe_phy.h (revision b6917abefc343244b784f0cc34bc65b01469c3bf)
1 /*
2  * CDDL HEADER START
3  *
4  * Copyright(c) 2007-2008 Intel Corporation. All rights reserved.
5  * The contents of this file are subject to the terms of the
6  * Common Development and Distribution License (the "License").
7  * You may not use this file except in compliance with the License.
8  *
9  * You can obtain a copy of the license at:
10  *      http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When using or redistributing this file, you may do so under the
15  * License only. No other modification of this header is permitted.
16  *
17  * If applicable, add the following below this CDDL HEADER, with the
18  * fields enclosed by brackets "[]" replaced with your own identifying
19  * information: Portions Copyright [yyyy] [name of copyright owner]
20  *
21  * CDDL HEADER END
22  */
23 
24 /*
25  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
26  * Use is subject to license terms of the CDDL.
27  */
28 
29 /* IntelVersion: 1.17 v2008-03-04 */
30 
31 #ifndef _IXGBE_PHY_H
32 #define	_IXGBE_PHY_H
33 
34 #pragma ident	"%Z%%M%	%I%	%E% SMI"
35 
36 #include "ixgbe_type.h"
37 
38 s32 ixgbe_init_phy_ops_generic(struct ixgbe_hw *hw);
39 bool ixgbe_validate_phy_addr(struct ixgbe_hw *hw, u32 phy_addr);
40 enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id);
41 s32 ixgbe_get_phy_id(struct ixgbe_hw *hw);
42 s32 ixgbe_identify_phy_generic(struct ixgbe_hw *hw);
43 s32 ixgbe_reset_phy_generic(struct ixgbe_hw *hw);
44 s32 ixgbe_read_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr,
45     u32 device_type, u16 *phy_data);
46 s32 ixgbe_write_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr,
47     u32 device_type, u16 phy_data);
48 s32 ixgbe_setup_phy_link_generic(struct ixgbe_hw *hw);
49 s32 ixgbe_setup_phy_link_speed_generic(struct ixgbe_hw *hw,
50     ixgbe_link_speed speed, bool autoneg, bool autoneg_weait_to_complete);
51 
52 #endif /* _IXGBE_PHY_H */
53