Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
atl1c_hw.c File Reference
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/mii.h>
#include <linux/crc32.h>
#include "atl1c.h"

Go to the source code of this file.

Functions

int atl1c_check_eeprom_exist (struct atl1c_hw *hw)
 
void atl1c_hw_set_mac_addr (struct atl1c_hw *hw, u8 *mac_addr)
 
bool atl1c_read_eeprom (struct atl1c_hw *hw, u32 offset, u32 *p_value)
 
int atl1c_read_mac_addr (struct atl1c_hw *hw)
 
u32 atl1c_hash_mc_addr (struct atl1c_hw *hw, u8 *mc_addr)
 
void atl1c_hash_set (struct atl1c_hw *hw, u32 hash_value)
 
bool atl1c_wait_mdio_idle (struct atl1c_hw *hw)
 
void atl1c_stop_phy_polling (struct atl1c_hw *hw)
 
void atl1c_start_phy_polling (struct atl1c_hw *hw, u16 clk_sel)
 
int atl1c_read_phy_core (struct atl1c_hw *hw, bool ext, u8 dev, u16 reg, u16 *phy_data)
 
int atl1c_write_phy_core (struct atl1c_hw *hw, bool ext, u8 dev, u16 reg, u16 phy_data)
 
int atl1c_read_phy_reg (struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data)
 
int atl1c_write_phy_reg (struct atl1c_hw *hw, u32 reg_addr, u16 phy_data)
 
int atl1c_read_phy_ext (struct atl1c_hw *hw, u8 dev_addr, u16 reg_addr, u16 *phy_data)
 
int atl1c_write_phy_ext (struct atl1c_hw *hw, u8 dev_addr, u16 reg_addr, u16 phy_data)
 
int atl1c_read_phy_dbg (struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data)
 
int atl1c_write_phy_dbg (struct atl1c_hw *hw, u16 reg_addr, u16 phy_data)
 
void atl1c_phy_disable (struct atl1c_hw *hw)
 
int atl1c_phy_reset (struct atl1c_hw *hw)
 
int atl1c_phy_init (struct atl1c_hw *hw)
 
int atl1c_get_speed_and_duplex (struct atl1c_hw *hw, u16 *speed, u16 *duplex)
 
int atl1c_phy_to_ps_link (struct atl1c_hw *hw)
 
int atl1c_restart_autoneg (struct atl1c_hw *hw)
 
int atl1c_power_saving (struct atl1c_hw *hw, u32 wufc)
 
void atl1c_post_phy_linkchg (struct atl1c_hw *hw, u16 link_speed)
 

Function Documentation

int atl1c_check_eeprom_exist ( struct atl1c_hw hw)

Definition at line 32 of file atl1c_hw.c.

int atl1c_get_speed_and_duplex ( struct atl1c_hw hw,
u16 speed,
u16 duplex 
)

Definition at line 660 of file atl1c_hw.c.

u32 atl1c_hash_mc_addr ( struct atl1c_hw hw,
u8 mc_addr 
)

Definition at line 216 of file atl1c_hw.c.

void atl1c_hash_set ( struct atl1c_hw hw,
u32  hash_value 
)

Definition at line 234 of file atl1c_hw.c.

void atl1c_hw_set_mac_addr ( struct atl1c_hw hw,
u8 mac_addr 
)

Definition at line 46 of file atl1c_hw.c.

void atl1c_phy_disable ( struct atl1c_hw hw)

Definition at line 504 of file atl1c_hw.c.

int atl1c_phy_init ( struct atl1c_hw hw)

Definition at line 603 of file atl1c_hw.c.

int atl1c_phy_reset ( struct atl1c_hw hw)

Definition at line 510 of file atl1c_hw.c.

int atl1c_phy_to_ps_link ( struct atl1c_hw hw)

Definition at line 697 of file atl1c_hw.c.

void atl1c_post_phy_linkchg ( struct atl1c_hw hw,
u16  link_speed 
)

Definition at line 832 of file atl1c_hw.c.

int atl1c_power_saving ( struct atl1c_hw hw,
u32  wufc 
)

Definition at line 769 of file atl1c_hw.c.

bool atl1c_read_eeprom ( struct atl1c_hw hw,
u32  offset,
u32 p_value 
)

Definition at line 153 of file atl1c_hw.c.

int atl1c_read_mac_addr ( struct atl1c_hw hw)

Definition at line 196 of file atl1c_hw.c.

int atl1c_read_phy_core ( struct atl1c_hw hw,
bool  ext,
u8  dev,
u16  reg,
u16 phy_data 
)

Definition at line 315 of file atl1c_hw.c.

int atl1c_read_phy_dbg ( struct atl1c_hw hw,
u16  reg_addr,
u16 phy_data 
)

Definition at line 438 of file atl1c_hw.c.

int atl1c_read_phy_ext ( struct atl1c_hw hw,
u8  dev_addr,
u16  reg_addr,
u16 phy_data 
)

Definition at line 425 of file atl1c_hw.c.

int atl1c_read_phy_reg ( struct atl1c_hw hw,
u16  reg_addr,
u16 phy_data 
)

Definition at line 408 of file atl1c_hw.c.

int atl1c_restart_autoneg ( struct atl1c_hw hw)

Definition at line 756 of file atl1c_hw.c.

void atl1c_start_phy_polling ( struct atl1c_hw hw,
u16  clk_sel 
)

Definition at line 287 of file atl1c_hw.c.

void atl1c_stop_phy_polling ( struct atl1c_hw hw)

Definition at line 278 of file atl1c_hw.c.

bool atl1c_wait_mdio_idle ( struct atl1c_hw hw)

Definition at line 263 of file atl1c_hw.c.

int atl1c_write_phy_core ( struct atl1c_hw hw,
bool  ext,
u8  dev,
u16  reg,
u16  phy_data 
)

Definition at line 364 of file atl1c_hw.c.

int atl1c_write_phy_dbg ( struct atl1c_hw hw,
u16  reg_addr,
u16  phy_data 
)

Definition at line 451 of file atl1c_hw.c.

int atl1c_write_phy_ext ( struct atl1c_hw hw,
u8  dev_addr,
u16  reg_addr,
u16  phy_data 
)

Definition at line 432 of file atl1c_hw.c.

int atl1c_write_phy_reg ( struct atl1c_hw hw,
u32  reg_addr,
u16  phy_data 
)

Definition at line 419 of file atl1c_hw.c.