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

Go to the source code of this file.

Data Structures

struct  plt
 

Macros

#define KERNEL
 
#define AFLAG   (0x20)
 
#define GO_STATE(x)   (mib->fddiPORTPCMState = (x)|AFLAG)
 
#define ACTIONS_DONE()   (mib->fddiPORTPCMState &= ~AFLAG)
 
#define ACTIONS(x)   (x|AFLAG)
 
#define PC0_OFF   0
 
#define PC1_BREAK   1
 
#define PC2_TRACE   2
 
#define PC3_CONNECT   3
 
#define PC4_NEXT   4
 
#define PC5_SIGNAL   5
 
#define PC6_JOIN   6
 
#define PC7_VERIFY   7
 
#define PC8_ACTIVE   8
 
#define PC9_MAINT   9
 
#define PLCS_CONTROL_C_U   (plcs_control_c_u[14] | (plcs_control_c_u[15]<<8))
 
#define PLCS_CONTROL_C_S   (plcs_control_c_s[14] | (plcs_control_c_s[15]<<8))
 
#define PS_OFF   0
 
#define PS_BIT3   1
 
#define PS_BIT4   2
 
#define PS_BIT7   3
 
#define PS_LCT   4
 
#define PS_BIT8   5
 
#define PS_JOIN   6
 
#define PS_ACTIVE   7
 
#define LCT_LEM_MAX   255
 
#define PLC_MS(m)   ((int)((0x10000L-(m*100000L/2048))))
 
#define SLOW_TL_MIN   PLC_MS(6)
 
#define SLOW_C_MIN   PLC_MS(10)
 

Functions

void pcm_init (struct s_smc *smc)
 
void init_plc (struct s_smc *smc)
 
int sm_pm_get_ls (struct s_smc *smc, int phy)
 
void plc_config_mux (struct s_smc *smc, int mux)
 
void pcm (struct s_smc *smc, const int np, int event)
 
void sm_lem_evaluate (struct s_smc *smc)
 
void sm_pm_ls_latch (struct s_smc *smc, int phy, int on_off)
 
int pcm_status_twisted (struct s_smc *smc)
 
void pcm_status_state (struct s_smc *smc, int np, int *type, int *state, int *remote, int *mac)
 
int pcm_rooted_station (struct s_smc *smc)
 
void plc_irq (struct s_smc *smc, int np, unsigned int cmd)
 

Macro Definition Documentation

#define ACTIONS (   x)    (x|AFLAG)

Definition at line 78 of file pcmplc.c.

#define ACTIONS_DONE ( )    (mib->fddiPORTPCMState &= ~AFLAG)

Definition at line 77 of file pcmplc.c.

#define AFLAG   (0x20)

Definition at line 75 of file pcmplc.c.

#define GO_STATE (   x)    (mib->fddiPORTPCMState = (x)|AFLAG)

Definition at line 76 of file pcmplc.c.

#define KERNEL

Definition at line 50 of file pcmplc.c.

#define LCT_LEM_MAX   255

Definition at line 157 of file pcmplc.c.

#define PC0_OFF   0

Definition at line 83 of file pcmplc.c.

#define PC1_BREAK   1

Definition at line 84 of file pcmplc.c.

#define PC2_TRACE   2

Definition at line 85 of file pcmplc.c.

#define PC3_CONNECT   3

Definition at line 86 of file pcmplc.c.

#define PC4_NEXT   4

Definition at line 87 of file pcmplc.c.

#define PC5_SIGNAL   5

Definition at line 88 of file pcmplc.c.

#define PC6_JOIN   6

Definition at line 89 of file pcmplc.c.

#define PC7_VERIFY   7

Definition at line 90 of file pcmplc.c.

#define PC8_ACTIVE   8

Definition at line 91 of file pcmplc.c.

#define PC9_MAINT   9

Definition at line 92 of file pcmplc.c.

#define PLC_MS (   m)    ((int)((0x10000L-(m*100000L/2048))))

Definition at line 163 of file pcmplc.c.

#define PLCS_CONTROL_C_S   (plcs_control_c_s[14] | (plcs_control_c_s[15]<<8))

Definition at line 140 of file pcmplc.c.

#define PLCS_CONTROL_C_U   (plcs_control_c_u[14] | (plcs_control_c_u[15]<<8))

Definition at line 139 of file pcmplc.c.

#define PS_ACTIVE   7

Definition at line 155 of file pcmplc.c.

#define PS_BIT3   1

Definition at line 149 of file pcmplc.c.

#define PS_BIT4   2

Definition at line 150 of file pcmplc.c.

#define PS_BIT7   3

Definition at line 151 of file pcmplc.c.

#define PS_BIT8   5

Definition at line 153 of file pcmplc.c.

#define PS_JOIN   6

Definition at line 154 of file pcmplc.c.

#define PS_LCT   4

Definition at line 152 of file pcmplc.c.

#define PS_OFF   0

Definition at line 148 of file pcmplc.c.

#define SLOW_C_MIN   PLC_MS(10)

Definition at line 165 of file pcmplc.c.

#define SLOW_TL_MIN   PLC_MS(6)

Definition at line 164 of file pcmplc.c.

Function Documentation

void init_plc ( struct s_smc smc)

Definition at line 401 of file pcmplc.c.

void pcm ( struct s_smc smc,
const int  np,
int  event 
)

Definition at line 595 of file pcmplc.c.

void pcm_init ( struct s_smc smc)

Definition at line 237 of file pcmplc.c.

int pcm_rooted_station ( struct s_smc smc)

Definition at line 1632 of file pcmplc.c.

void pcm_status_state ( struct s_smc smc,
int  np,
int type,
int state,
int remote,
int mac 
)

Definition at line 1608 of file pcmplc.c.

int pcm_status_twisted ( struct s_smc smc)

Definition at line 1589 of file pcmplc.c.

void plc_config_mux ( struct s_smc smc,
int  mux 
)

Definition at line 571 of file pcmplc.c.

void plc_irq ( struct s_smc smc,
int  np,
unsigned int  cmd 
)

Definition at line 1647 of file pcmplc.c.

void sm_lem_evaluate ( struct s_smc smc)

Definition at line 1177 of file pcmplc.c.

int sm_pm_get_ls ( struct s_smc smc,
int  phy 
)

Definition at line 501 of file pcmplc.c.

void sm_pm_ls_latch ( struct s_smc smc,
int  phy,
int  on_off 
)

Definition at line 1256 of file pcmplc.c.