devices/e1000e/82571-2.6.37-ethercat.c
branchstable-1.5
changeset 2234 18f9c69d9590
parent 2219 d52848f0be04
equal deleted inserted replaced
2233:33accbe40987 2234:18f9c69d9590
    80  *  @hw: pointer to the HW structure
    80  *  @hw: pointer to the HW structure
    81  **/
    81  **/
    82 static s32 e1000_init_phy_params_82571(struct e1000_hw *hw)
    82 static s32 e1000_init_phy_params_82571(struct e1000_hw *hw)
    83 {
    83 {
    84 	struct e1000_phy_info *phy = &hw->phy;
    84 	struct e1000_phy_info *phy = &hw->phy;
    85 	s32 ret_val;
    85 	s32 ret_val __attribute__ ((unused));
    86 
    86 
    87 	if (hw->phy.media_type != e1000_media_type_copper) {
    87 	if (hw->phy.media_type != e1000_media_type_copper) {
    88 		phy->type = e1000_phy_none;
    88 		phy->type = e1000_phy_none;
    89 		return 0;
    89 		return 0;
    90 	}
    90 	}
   851  *
   851  *
   852  *  This resets the hardware into a known state.
   852  *  This resets the hardware into a known state.
   853  **/
   853  **/
   854 static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
   854 static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
   855 {
   855 {
   856 	u32 ctrl, extcnf_ctrl, ctrl_ext, icr;
   856 	u32 ctrl, extcnf_ctrl, ctrl_ext, icr __attribute__ ((unused));
   857 	s32 ret_val;
   857 	s32 ret_val;
   858 	u16 i = 0;
   858 	u16 i = 0;
   859 
   859 
   860 	/*
   860 	/*
   861 	 * Prevent the PCI-E bus from sticking if there is no TLP connection
   861 	 * Prevent the PCI-E bus from sticking if there is no TLP connection