Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
fplustm.c File Reference
#include "h/types.h"
#include "h/fddi.h"
#include "h/smc.h"
#include "h/supern_2.h"
#include <linux/bitrev.h>

Go to the source code of this file.

Macros

#define UNUSED(x)
 
#define FM_ADDRX   (FM_ADDET|FM_EXGPA0|FM_EXGPA1)
 
#define MS2BCLK(x)   ((x)*12500L)
 
#define US2BCLK(x)   ((x)*1250L)
 
#define DUMMY_READ()   smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP))
 
#define CHECK_NPP()
 
#define CHECK_CAM()
 
#define MA   smc->hw.fddi_home_addr
 
#define RX_MODE_PROM   0x1
 
#define RX_MODE_ALL_MULTI   0x2
 

Functions

void mac_update_counter (struct s_smc *smc)
 
void set_formac_tsync (struct s_smc *smc, long sync_bw)
 
void formac_tx_restart (struct s_smc *smc)
 
void mac2_irq (struct s_smc *smc, u_short code_s2u, u_short code_s2l)
 
void mac3_irq (struct s_smc *smc, u_short code_s3u, u_short code_s3l)
 
int init_fplus (struct s_smc *smc)
 
void config_mux (struct s_smc *smc, int mux)
 
void sm_mac_check_beacon_claim (struct s_smc *smc)
 
void sm_ma_control (struct s_smc *smc, int mode)
 
int sm_mac_get_tx_state (struct s_smc *smc)
 
void mac_clear_multicast (struct s_smc *smc)
 
int mac_add_multicast (struct s_smc *smc, struct fddi_addr *addr, int can)
 
void mac_update_multicast (struct s_smc *smc)
 
void mac_set_rx_mode (struct s_smc *smc, int mode)
 
void rtm_irq (struct s_smc *smc)
 
void rtm_set_timer (struct s_smc *smc)
 
void formac_reinit_tx (struct s_smc *smc)
 

Variables

struct fddi_addr fddi_broadcast = {{0xff,0xff,0xff,0xff,0xff,0xff}}
 

Macro Definition Documentation

#define CHECK_CAM ( )
Value:
{ unsigned k = 10 ;\
while (!(inpw(FM_A(FM_AFSTAT)) & FM_DONE) && k) k--;\
if (!k) { \
SMT_PANIC(smc,SMT_E0131, SMT_E0131_MSG) ; \
} \
}

Definition at line 65 of file fplustm.c.

#define CHECK_NPP ( )
Value:
{ unsigned k = 10000 ;\
while ((inpw(FM_A(FM_STMCHN)) & FM_SNPPND) && k) k--;\
if (!k) { \
SMT_PANIC(smc,SMT_E0130, SMT_E0130_MSG) ; \
} \
}

Definition at line 58 of file fplustm.c.

#define DUMMY_READ ( )    smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP))

Definition at line 56 of file fplustm.c.

#define FM_ADDRX   (FM_ADDET|FM_EXGPA0|FM_EXGPA1)

Definition at line 39 of file fplustm.c.

#define MA   smc->hw.fddi_home_addr

Definition at line 85 of file fplustm.c.

#define MS2BCLK (   x)    ((x)*12500L)

Definition at line 40 of file fplustm.c.

#define RX_MODE_ALL_MULTI   0x2

Definition at line 1186 of file fplustm.c.

#define RX_MODE_PROM   0x1

Definition at line 1185 of file fplustm.c.

#define UNUSED (   x)

Definition at line 35 of file fplustm.c.

#define US2BCLK (   x)    ((x)*1250L)

Definition at line 41 of file fplustm.c.

Function Documentation

void config_mux ( struct s_smc smc,
int  mux 
)

Definition at line 999 of file fplustm.c.

void formac_reinit_tx ( struct s_smc smc)

Definition at line 1480 of file fplustm.c.

void formac_tx_restart ( struct s_smc smc)

Definition at line 543 of file fplustm.c.

int init_fplus ( struct s_smc smc)

Definition at line 856 of file fplustm.c.

void mac2_irq ( struct s_smc smc,
u_short  code_s2u,
u_short  code_s2l 
)

Definition at line 679 of file fplustm.c.

void mac3_irq ( struct s_smc smc,
u_short  code_s3u,
u_short  code_s3l 
)

Definition at line 805 of file fplustm.c.

int mac_add_multicast ( struct s_smc smc,
struct fddi_addr addr,
int  can 
)

Definition at line 1145 of file fplustm.c.

void mac_clear_multicast ( struct s_smc smc)

Definition at line 1103 of file fplustm.c.

void mac_set_rx_mode ( struct s_smc smc,
int  mode 
)

Definition at line 1275 of file fplustm.c.

void mac_update_counter ( struct s_smc smc)

Definition at line 119 of file fplustm.c.

void mac_update_multicast ( struct s_smc smc)

Definition at line 1199 of file fplustm.c.

void rtm_irq ( struct s_smc smc)

Definition at line 1331 of file fplustm.c.

void rtm_set_timer ( struct s_smc smc)

Definition at line 1350 of file fplustm.c.

void set_formac_tsync ( struct s_smc smc,
long  sync_bw 
)

Definition at line 297 of file fplustm.c.

void sm_ma_control ( struct s_smc smc,
int  mode 
)

Definition at line 1026 of file fplustm.c.

void sm_mac_check_beacon_claim ( struct s_smc smc)

Definition at line 1013 of file fplustm.c.

int sm_mac_get_tx_state ( struct s_smc smc)

Definition at line 1050 of file fplustm.c.

Variable Documentation

struct fddi_addr fddi_broadcast = {{0xff,0xff,0xff,0xff,0xff,0xff}}

Definition at line 72 of file fplustm.c.