Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pch_gbe_phy.h File Reference

Go to the source code of this file.

Macros

#define PCH_GBE_PHY_REGS_LEN   32
 
#define PCH_GBE_PHY_RESET_DELAY_US   10
 
#define PCH_GBE_MAC_IFOP_RGMII
 

Functions

s32 pch_gbe_phy_get_id (struct pch_gbe_hw *hw)
 
s32 pch_gbe_phy_read_reg_miic (struct pch_gbe_hw *hw, u32 offset, u16 *data)
 
s32 pch_gbe_phy_write_reg_miic (struct pch_gbe_hw *hw, u32 offset, u16 data)
 
void pch_gbe_phy_sw_reset (struct pch_gbe_hw *hw)
 
void pch_gbe_phy_hw_reset (struct pch_gbe_hw *hw)
 
void pch_gbe_phy_power_up (struct pch_gbe_hw *hw)
 
void pch_gbe_phy_power_down (struct pch_gbe_hw *hw)
 
void pch_gbe_phy_set_rgmii (struct pch_gbe_hw *hw)
 
void pch_gbe_phy_init_setting (struct pch_gbe_hw *hw)
 

Macro Definition Documentation

#define PCH_GBE_MAC_IFOP_RGMII

Definition at line 25 of file pch_gbe_phy.h.

#define PCH_GBE_PHY_REGS_LEN   32

Definition at line 23 of file pch_gbe_phy.h.

#define PCH_GBE_PHY_RESET_DELAY_US   10

Definition at line 24 of file pch_gbe_phy.h.

Function Documentation

s32 pch_gbe_phy_get_id ( struct pch_gbe_hw hw)

pch_gbe_phy_get_id - Retrieve the PHY ID and revision : Pointer to the HW structure Returns 0: Successful. Negative value: Failed.

Definition at line 98 of file pch_gbe_phy.c.

void pch_gbe_phy_hw_reset ( struct pch_gbe_hw hw)

pch_gbe_phy_hw_reset - PHY hardware reset : Pointer to the HW structure

Definition at line 185 of file pch_gbe_phy.c.

void pch_gbe_phy_init_setting ( struct pch_gbe_hw hw)

pch_gbe_phy_init_setting - PHY initial setting : Pointer to the HW structure

Definition at line 247 of file pch_gbe_phy.c.

void pch_gbe_phy_power_down ( struct pch_gbe_hw hw)

pch_gbe_phy_power_down - Power down PHY : Pointer to the HW structure

Definition at line 218 of file pch_gbe_phy.c.

void pch_gbe_phy_power_up ( struct pch_gbe_hw hw)

pch_gbe_phy_power_up - restore link in case the phy was powered down : Pointer to the HW structure

Definition at line 201 of file pch_gbe_phy.c.

s32 pch_gbe_phy_read_reg_miic ( struct pch_gbe_hw hw,
u32  offset,
u16 data 
)

pch_gbe_phy_read_reg_miic - Read MII control register : Pointer to the HW structure : Register offset to be read : Pointer to the read data Returns 0: Successful. -EINVAL: Invalid argument.

Definition at line 132 of file pch_gbe_phy.c.

void pch_gbe_phy_set_rgmii ( struct pch_gbe_hw hw)
inline

pch_gbe_phy_set_rgmii - RGMII interface setting : Pointer to the HW structure

Definition at line 238 of file pch_gbe_phy.c.

void pch_gbe_phy_sw_reset ( struct pch_gbe_hw hw)

pch_gbe_phy_sw_reset - PHY software reset : Pointer to the HW structure

Definition at line 171 of file pch_gbe_phy.c.

s32 pch_gbe_phy_write_reg_miic ( struct pch_gbe_hw hw,
u32  offset,
u16  data 
)

pch_gbe_phy_write_reg_miic - Write MII control register : Pointer to the HW structure : Register offset to be read : data to write to register at offset Returns 0: Successful. -EINVAL: Invalid argument.

Definition at line 154 of file pch_gbe_phy.c.