Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mcdi_phy.c File Reference
#include <linux/slab.h>
#include "efx.h"
#include "phy.h"
#include "mcdi.h"
#include "mcdi_pcol.h"
#include "nic.h"
#include "selftest.h"

Go to the source code of this file.

Data Structures

struct  efx_mcdi_phy_data
 

Macros

#define SFP_PAGE_SIZE   128
 
#define SFP_NUM_PAGES   2
 

Functions

int efx_mcdi_mdio_read (struct efx_nic *efx, unsigned int bus, unsigned int prtad, unsigned int devad, u16 addr, u16 *value_out, u32 *status_out)
 
int efx_mcdi_mdio_write (struct efx_nic *efx, unsigned int bus, unsigned int prtad, unsigned int devad, u16 addr, u16 value, u32 *status_out)
 
int efx_mcdi_phy_reconfigure (struct efx_nic *efx)
 
void efx_mcdi_phy_decode_link (struct efx_nic *efx, struct efx_link_state *link_state, u32 speed, u32 flags, u32 fcntl)
 
void efx_mcdi_phy_check_fcntl (struct efx_nic *efx, u32 lpa)
 

Variables

struct efx_phy_operations efx_mcdi_phy_ops
 

Macro Definition Documentation

#define SFP_NUM_PAGES   2

Definition at line 743 of file mcdi_phy.c.

#define SFP_PAGE_SIZE   128

Definition at line 742 of file mcdi_phy.c.

Function Documentation

int efx_mcdi_mdio_read ( struct efx_nic efx,
unsigned int  bus,
unsigned int  prtad,
unsigned int  devad,
u16  addr,
u16 value_out,
u32 status_out 
)

Definition at line 128 of file mcdi_phy.c.

int efx_mcdi_mdio_write ( struct efx_nic efx,
unsigned int  bus,
unsigned int  prtad,
unsigned int  devad,
u16  addr,
u16  value,
u32 status_out 
)

Definition at line 156 of file mcdi_phy.c.

void efx_mcdi_phy_check_fcntl ( struct efx_nic efx,
u32  lpa 
)

Definition at line 447 of file mcdi_phy.c.

void efx_mcdi_phy_decode_link ( struct efx_nic efx,
struct efx_link_state link_state,
u32  speed,
u32  flags,
u32  fcntl 
)

Definition at line 417 of file mcdi_phy.c.

int efx_mcdi_phy_reconfigure ( struct efx_nic efx)

Definition at line 406 of file mcdi_phy.c.

Variable Documentation

struct efx_phy_operations efx_mcdi_phy_ops
Initial value:
= {
.probe = efx_mcdi_phy_probe,
.reconfigure = efx_mcdi_phy_reconfigure,
.poll = efx_mcdi_phy_poll,
.remove = efx_mcdi_phy_remove,
.get_settings = efx_mcdi_phy_get_settings,
.set_settings = efx_mcdi_phy_set_settings,
.test_alive = efx_mcdi_phy_test_alive,
.run_tests = efx_mcdi_phy_run_tests,
.test_name = efx_mcdi_phy_test_name,
.get_module_eeprom = efx_mcdi_phy_get_module_eeprom,
.get_module_info = efx_mcdi_phy_get_module_info,
}

Definition at line 816 of file mcdi_phy.c.