Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mdio_10g.c File Reference
#include <linux/types.h>
#include <linux/ethtool.h>
#include <linux/delay.h>
#include "net_driver.h"
#include "mdio_10g.h"
#include "workarounds.h"

Go to the source code of this file.

Macros

#define MDIO45_RESET_TIME   1000 /* ms */
 
#define MDIO45_RESET_ITERS   100
 

Functions

unsigned efx_mdio_id_oui (u32 id)
 
int efx_mdio_reset_mmd (struct efx_nic *port, int mmd, int spins, int spintime)
 
int efx_mdio_wait_reset_mmds (struct efx_nic *efx, unsigned int mmd_mask)
 
int efx_mdio_check_mmds (struct efx_nic *efx, unsigned int mmd_mask)
 
bool efx_mdio_links_ok (struct efx_nic *efx, unsigned int mmd_mask)
 
void efx_mdio_transmit_disable (struct efx_nic *efx)
 
void efx_mdio_phy_reconfigure (struct efx_nic *efx)
 
void efx_mdio_set_mmds_lpower (struct efx_nic *efx, int low_power, unsigned int mmd_mask)
 
int efx_mdio_set_settings (struct efx_nic *efx, struct ethtool_cmd *ecmd)
 
void efx_mdio_an_reconfigure (struct efx_nic *efx)
 
u8 efx_mdio_get_pause (struct efx_nic *efx)
 
int efx_mdio_test_alive (struct efx_nic *efx)
 

Macro Definition Documentation

#define MDIO45_RESET_ITERS   100

Definition at line 73 of file mdio_10g.c.

#define MDIO45_RESET_TIME   1000 /* ms */

Definition at line 72 of file mdio_10g.c.

Function Documentation

void efx_mdio_an_reconfigure ( struct efx_nic efx)

efx_mdio_an_reconfigure - Push advertising flags and restart autonegotiation : Efx NIC

Definition at line 264 of file mdio_10g.c.

int efx_mdio_check_mmds ( struct efx_nic efx,
unsigned int  mmd_mask 
)

Definition at line 116 of file mdio_10g.c.

u8 efx_mdio_get_pause ( struct efx_nic efx)

Definition at line 287 of file mdio_10g.c.

unsigned efx_mdio_id_oui ( u32  id)

Definition at line 19 of file mdio_10g.c.

bool efx_mdio_links_ok ( struct efx_nic efx,
unsigned int  mmd_mask 
)

Definition at line 155 of file mdio_10g.c.

void efx_mdio_phy_reconfigure ( struct efx_nic efx)

Definition at line 188 of file mdio_10g.c.

int efx_mdio_reset_mmd ( struct efx_nic port,
int  mmd,
int  spins,
int  spintime 
)

Definition at line 34 of file mdio_10g.c.

void efx_mdio_set_mmds_lpower ( struct efx_nic efx,
int  low_power,
unsigned int  mmd_mask 
)

Definition at line 215 of file mdio_10g.c.

int efx_mdio_set_settings ( struct efx_nic efx,
struct ethtool_cmd ecmd 
)

efx_mdio_set_settings - Set (some of) the PHY settings over MDIO. : Efx NIC : New settings

Definition at line 233 of file mdio_10g.c.

int efx_mdio_test_alive ( struct efx_nic efx)

Definition at line 301 of file mdio_10g.c.

void efx_mdio_transmit_disable ( struct efx_nic efx)

Definition at line 181 of file mdio_10g.c.

int efx_mdio_wait_reset_mmds ( struct efx_nic efx,
unsigned int  mmd_mask 
)

Definition at line 75 of file mdio_10g.c.