1 /******************************************************************************
2
3 Copyright (c) 2001-2010, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 3. Neither the name of the Intel Corporation nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
108 s32 ixgbe_setup_phy_link_generic(struct ixgbe_hw *hw);
109 s32 ixgbe_setup_phy_link_speed_generic(struct ixgbe_hw *hw,
110 ixgbe_link_speed speed,
111 bool autoneg,
112 bool autoneg_wait_to_complete);
113 s32 ixgbe_get_copper_link_capabilities_generic(struct ixgbe_hw *hw,
114 ixgbe_link_speed *speed,
115 bool *autoneg);
116
117 /* PHY specific */
118 s32 ixgbe_check_phy_link_tnx(struct ixgbe_hw *hw,
119 ixgbe_link_speed *speed,
120 bool *link_up);
121 s32 ixgbe_setup_phy_link_tnx(struct ixgbe_hw *hw);
122 s32 ixgbe_get_phy_firmware_version_tnx(struct ixgbe_hw *hw,
123 u16 *firmware_version);
124 s32 ixgbe_get_phy_firmware_version_generic(struct ixgbe_hw *hw,
125 u16 *firmware_version);
126
127 s32 ixgbe_reset_phy_nl(struct ixgbe_hw *hw);
128 s32 ixgbe_identify_sfp_module_generic(struct ixgbe_hw *hw);
129 s32 ixgbe_get_sfp_init_sequence_offsets(struct ixgbe_hw *hw,
130 u16 *list_offset,
131 u16 *data_offset);
132 s32 ixgbe_tn_check_overtemp(struct ixgbe_hw *hw);
133 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
134 u8 dev_addr, u8 *data);
135 s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
136 u8 dev_addr, u8 data);
137 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
138 u8 *eeprom_data);
139 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
140 u8 eeprom_data);
141 #endif /* _IXGBE_PHY_H_ */
|
1 /******************************************************************************
2
3 Copyright (c) 2001-2012, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 3. Neither the name of the Intel Corporation nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
108 s32 ixgbe_setup_phy_link_generic(struct ixgbe_hw *hw);
109 s32 ixgbe_setup_phy_link_speed_generic(struct ixgbe_hw *hw,
110 ixgbe_link_speed speed,
111 bool autoneg,
112 bool autoneg_wait_to_complete);
113 s32 ixgbe_get_copper_link_capabilities_generic(struct ixgbe_hw *hw,
114 ixgbe_link_speed *speed,
115 bool *autoneg);
116
117 /* PHY specific */
118 s32 ixgbe_check_phy_link_tnx(struct ixgbe_hw *hw,
119 ixgbe_link_speed *speed,
120 bool *link_up);
121 s32 ixgbe_setup_phy_link_tnx(struct ixgbe_hw *hw);
122 s32 ixgbe_get_phy_firmware_version_tnx(struct ixgbe_hw *hw,
123 u16 *firmware_version);
124 s32 ixgbe_get_phy_firmware_version_generic(struct ixgbe_hw *hw,
125 u16 *firmware_version);
126
127 s32 ixgbe_reset_phy_nl(struct ixgbe_hw *hw);
128 s32 ixgbe_identify_module_generic(struct ixgbe_hw *hw);
129 s32 ixgbe_identify_sfp_module_generic(struct ixgbe_hw *hw);
130 s32 ixgbe_get_sfp_init_sequence_offsets(struct ixgbe_hw *hw,
131 u16 *list_offset,
132 u16 *data_offset);
133 s32 ixgbe_tn_check_overtemp(struct ixgbe_hw *hw);
134 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
135 u8 dev_addr, u8 *data);
136 s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset,
137 u8 dev_addr, u8 data);
138 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
139 u8 *eeprom_data);
140 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
141 u8 eeprom_data);
142 void ixgbe_i2c_bus_clear(struct ixgbe_hw *hw);
143 #endif /* _IXGBE_PHY_H_ */
|