Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pch_gbe_api.c File Reference
#include "pch_gbe.h"
#include "pch_gbe_phy.h"

Go to the source code of this file.

Macros

#define pch_gbe_bus_type_unknown   0
 
#define pch_gbe_bus_type_pci   1
 
#define pch_gbe_bus_type_pcix   2
 
#define pch_gbe_bus_type_pci_express   3
 
#define pch_gbe_bus_type_reserved   4
 
#define pch_gbe_bus_speed_unknown   0
 
#define pch_gbe_bus_speed_33   1
 
#define pch_gbe_bus_speed_66   2
 
#define pch_gbe_bus_speed_100   3
 
#define pch_gbe_bus_speed_120   4
 
#define pch_gbe_bus_speed_133   5
 
#define pch_gbe_bus_speed_2500   6
 
#define pch_gbe_bus_speed_reserved   7
 
#define pch_gbe_bus_width_unknown   0
 
#define pch_gbe_bus_width_pcie_x1   1
 
#define pch_gbe_bus_width_pcie_x2   2
 
#define pch_gbe_bus_width_pcie_x4   4
 
#define pch_gbe_bus_width_32   5
 
#define pch_gbe_bus_width_64   6
 
#define pch_gbe_bus_width_reserved   7
 

Functions

s32 pch_gbe_hal_setup_init_funcs (struct pch_gbe_hw *hw)
 
void pch_gbe_hal_get_bus_info (struct pch_gbe_hw *hw)
 
s32 pch_gbe_hal_init_hw (struct pch_gbe_hw *hw)
 
s32 pch_gbe_hal_read_phy_reg (struct pch_gbe_hw *hw, u32 offset, u16 *data)
 
s32 pch_gbe_hal_write_phy_reg (struct pch_gbe_hw *hw, u32 offset, u16 data)
 
void pch_gbe_hal_phy_hw_reset (struct pch_gbe_hw *hw)
 
void pch_gbe_hal_phy_sw_reset (struct pch_gbe_hw *hw)
 
s32 pch_gbe_hal_read_mac_addr (struct pch_gbe_hw *hw)
 
void pch_gbe_hal_power_up_phy (struct pch_gbe_hw *hw)
 
void pch_gbe_hal_power_down_phy (struct pch_gbe_hw *hw)
 

Macro Definition Documentation

#define pch_gbe_bus_speed_100   3

Definition at line 34 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_120   4

Definition at line 35 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_133   5

Definition at line 36 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_2500   6

Definition at line 37 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_33   1

Definition at line 32 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_66   2

Definition at line 33 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_reserved   7

Definition at line 38 of file pch_gbe_api.c.

#define pch_gbe_bus_speed_unknown   0

Definition at line 31 of file pch_gbe_api.c.

#define pch_gbe_bus_type_pci   1

Definition at line 25 of file pch_gbe_api.c.

#define pch_gbe_bus_type_pci_express   3

Definition at line 27 of file pch_gbe_api.c.

#define pch_gbe_bus_type_pcix   2

Definition at line 26 of file pch_gbe_api.c.

#define pch_gbe_bus_type_reserved   4

Definition at line 28 of file pch_gbe_api.c.

#define pch_gbe_bus_type_unknown   0

Definition at line 24 of file pch_gbe_api.c.

#define pch_gbe_bus_width_32   5

Definition at line 45 of file pch_gbe_api.c.

#define pch_gbe_bus_width_64   6

Definition at line 46 of file pch_gbe_api.c.

#define pch_gbe_bus_width_pcie_x1   1

Definition at line 42 of file pch_gbe_api.c.

#define pch_gbe_bus_width_pcie_x2   2

Definition at line 43 of file pch_gbe_api.c.

#define pch_gbe_bus_width_pcie_x4   4

Definition at line 44 of file pch_gbe_api.c.

#define pch_gbe_bus_width_reserved   7

Definition at line 47 of file pch_gbe_api.c.

#define pch_gbe_bus_width_unknown   0

Definition at line 41 of file pch_gbe_api.c.

Function Documentation

void pch_gbe_hal_get_bus_info ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_get_bus_info - Obtain bus information for adapter : Pointer to the HW structure

Definition at line 129 of file pch_gbe_api.c.

s32 pch_gbe_hal_init_hw ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_init_hw - Initialize hardware : Pointer to the HW structure Returns: 0: Successfully ENOSYS: Function is not registered

Definition at line 144 of file pch_gbe_api.c.

void pch_gbe_hal_phy_hw_reset ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_phy_hw_reset - Hard PHY reset : Pointer to the HW structure

Definition at line 191 of file pch_gbe_api.c.

void pch_gbe_hal_phy_sw_reset ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_phy_sw_reset - Soft PHY reset : Pointer to the HW structure

Definition at line 203 of file pch_gbe_api.c.

void pch_gbe_hal_power_down_phy ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_power_down_phy - Power down PHY : Pointer to the HW structure

Definition at line 241 of file pch_gbe_api.c.

void pch_gbe_hal_power_up_phy ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_power_up_phy - Power up PHY : Pointer to the HW structure

Definition at line 231 of file pch_gbe_api.c.

s32 pch_gbe_hal_read_mac_addr ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_read_mac_addr - Reads MAC address : Pointer to the HW structure Returns: 0: Successfully ENOSYS: Function is not registered

Definition at line 218 of file pch_gbe_api.c.

s32 pch_gbe_hal_read_phy_reg ( struct pch_gbe_hw hw,
u32  offset,
u16 data 
)
inline

pch_gbe_hal_read_phy_reg - Reads PHY register : Pointer to the HW structure : The register to read : The buffer to store the 16-bit read. Returns: 0: Successfully Negative value: Failed

Definition at line 162 of file pch_gbe_api.c.

s32 pch_gbe_hal_setup_init_funcs ( struct pch_gbe_hw hw)
inline

pch_gbe_hal_setup_init_funcs - Initializes function pointers : Pointer to the HW structure Returns: 0: Successfully ENOSYS: Function is not registered

Definition at line 115 of file pch_gbe_api.c.

s32 pch_gbe_hal_write_phy_reg ( struct pch_gbe_hw hw,
u32  offset,
u16  data 
)
inline

pch_gbe_hal_write_phy_reg - Writes PHY register : Pointer to the HW structure : The register to read : The value to write. Returns: 0: Successfully Negative value: Failed

Definition at line 179 of file pch_gbe_api.c.