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

Go to the source code of this file.

Macros

#define EXACT_ADDR_FILTERS   8
 
#define RMON_READ(mac, addr)   t3_read_reg(mac->adapter, addr + mac->offset)
 
#define RMON_UPDATE(mac, name, reg)   (mac)->stats.name += (u64)RMON_READ(mac, A_XGM_STAT_##reg)
 
#define RMON_UPDATE64(mac, name, reg_lo, reg_hi)
 

Functions

void t3b_pcs_reset (struct cmac *mac)
 
int t3_mac_reset (struct cmac *mac)
 
int t3_mac_set_address (struct cmac *mac, unsigned int idx, u8 addr[6])
 
int t3_mac_set_num_ucast (struct cmac *mac, int n)
 
void t3_mac_disable_exact_filters (struct cmac *mac)
 
void t3_mac_enable_exact_filters (struct cmac *mac)
 
int t3_mac_set_rx_mode (struct cmac *mac, struct net_device *dev)
 
int t3_mac_set_mtu (struct cmac *mac, unsigned int mtu)
 
int t3_mac_set_speed_duplex_fc (struct cmac *mac, int speed, int duplex, int fc)
 
int t3_mac_enable (struct cmac *mac, int which)
 
int t3_mac_disable (struct cmac *mac, int which)
 
int t3b2_mac_watchdog_task (struct cmac *mac)
 
struct mac_statst3_mac_update_stats (struct cmac *mac)
 

Macro Definition Documentation

#define EXACT_ADDR_FILTERS   8

Definition at line 39 of file xgmac.c.

#define RMON_READ (   mac,
  addr 
)    t3_read_reg(mac->adapter, addr + mac->offset)
#define RMON_UPDATE (   mac,
  name,
  reg 
)    (mac)->stats.name += (u64)RMON_READ(mac, A_XGM_STAT_##reg)
#define RMON_UPDATE64 (   mac,
  name,
  reg_lo,
  reg_hi 
)
Value:
(mac)->stats.name += RMON_READ(mac, A_XGM_STAT_##reg_lo) + \
((u64)RMON_READ(mac, A_XGM_STAT_##reg_hi) << 32)

Function Documentation

int t3_mac_disable ( struct cmac mac,
int  which 
)

Definition at line 506 of file xgmac.c.

void t3_mac_disable_exact_filters ( struct cmac mac)

Definition at line 264 of file xgmac.c.

int t3_mac_enable ( struct cmac mac,
int  which 
)

Definition at line 467 of file xgmac.c.

void t3_mac_enable_exact_filters ( struct cmac mac)

Definition at line 275 of file xgmac.c.

int t3_mac_reset ( struct cmac mac)

Definition at line 79 of file xgmac.c.

int t3_mac_set_address ( struct cmac mac,
unsigned int  idx,
u8  addr[6] 
)

Definition at line 243 of file xgmac.c.

int t3_mac_set_mtu ( struct cmac mac,
unsigned int  mtu 
)

Definition at line 345 of file xgmac.c.

int t3_mac_set_num_ucast ( struct cmac mac,
int  n 
)

Definition at line 256 of file xgmac.c.

int t3_mac_set_rx_mode ( struct cmac mac,
struct net_device dev 
)

Definition at line 300 of file xgmac.c.

int t3_mac_set_speed_duplex_fc ( struct cmac mac,
int  speed,
int  duplex,
int  fc 
)

Definition at line 428 of file xgmac.c.

struct mac_stats* t3_mac_update_stats ( struct cmac mac)
read

Definition at line 598 of file xgmac.c.

int t3b2_mac_watchdog_task ( struct cmac mac)

Definition at line 532 of file xgmac.c.

void t3b_pcs_reset ( struct cmac mac)

Definition at line 70 of file xgmac.c.