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

Go to the source code of this file.

Macros

#define QUAKE_LED_LINK_INVAL   (0)
 
#define QUAKE_LED_LINK_STAT   (1)
 
#define QUAKE_LED_LINK_ACT   (2)
 
#define QUAKE_LED_LINK_ACTSTAT   (3)
 
#define QUAKE_LED_OFF   (4)
 
#define QUAKE_LED_ON   (5)
 
#define QUAKE_LED_LINK_INPUT   (6) /* Pin is an input. */
 
#define QUAKE_LED_TXLINK   (0)
 
#define QUAKE_LED_RXLINK   (8)
 
#define TXC_GPIO_DIR_INPUT   0
 
#define TXC_GPIO_DIR_OUTPUT   1
 

Functions

void tenxpress_set_id_led (struct efx_nic *efx, enum efx_led_mode mode)
 
void falcon_qt202x_set_led (struct efx_nic *p, int led, int state)
 
void falcon_txc_set_gpio_dir (struct efx_nic *efx, int pin, int dir)
 
void falcon_txc_set_gpio_val (struct efx_nic *efx, int pin, int val)
 
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)
 
void efx_mcdi_phy_decode_link (struct efx_nic *efx, struct efx_link_state *link_state, u32 speed, u32 flags, u32 fcntl)
 
int efx_mcdi_phy_reconfigure (struct efx_nic *efx)
 
void efx_mcdi_phy_check_fcntl (struct efx_nic *efx, u32 lpa)
 

Variables

struct efx_phy_operations falcon_sfx7101_phy_ops
 
struct efx_phy_operations falcon_qt202x_phy_ops
 
struct efx_phy_operations falcon_txc_phy_ops
 
struct efx_phy_operations efx_mcdi_phy_ops
 

Macro Definition Documentation

#define QUAKE_LED_LINK_ACT   (2)

Definition at line 28 of file phy.h.

#define QUAKE_LED_LINK_ACTSTAT   (3)

Definition at line 29 of file phy.h.

#define QUAKE_LED_LINK_INPUT   (6) /* Pin is an input. */

Definition at line 32 of file phy.h.

#define QUAKE_LED_LINK_INVAL   (0)

Definition at line 26 of file phy.h.

#define QUAKE_LED_LINK_STAT   (1)

Definition at line 27 of file phy.h.

#define QUAKE_LED_OFF   (4)

Definition at line 30 of file phy.h.

#define QUAKE_LED_ON   (5)

Definition at line 31 of file phy.h.

#define QUAKE_LED_RXLINK   (8)

Definition at line 35 of file phy.h.

#define QUAKE_LED_TXLINK   (0)

Definition at line 34 of file phy.h.

#define TXC_GPIO_DIR_INPUT   0

Definition at line 44 of file phy.h.

#define TXC_GPIO_DIR_OUTPUT   1

Definition at line 45 of file phy.h.

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.

void falcon_qt202x_set_led ( struct efx_nic p,
int  led,
int  state 
)

Definition at line 53 of file qt202x_phy.c.

void falcon_txc_set_gpio_dir ( struct efx_nic efx,
int  pin,
int  dir 
)

Definition at line 180 of file txc43128_phy.c.

void falcon_txc_set_gpio_val ( struct efx_nic efx,
int  pin,
int  val 
)

Definition at line 174 of file txc43128_phy.c.

void tenxpress_set_id_led ( struct efx_nic efx,
enum efx_led_mode  mode 
)

Definition at line 394 of file tenxpress.c.

Variable Documentation

struct efx_phy_operations efx_mcdi_phy_ops

Definition at line 816 of file mcdi_phy.c.

struct efx_phy_operations falcon_qt202x_phy_ops

Definition at line 483 of file qt202x_phy.c.

struct efx_phy_operations falcon_sfx7101_phy_ops

Definition at line 481 of file tenxpress.c.

struct efx_phy_operations falcon_txc_phy_ops

Definition at line 548 of file txc43128_phy.c.