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

Go to the source code of this file.

Macros

#define KERNEL
 
#define AFLAG   0x10
 
#define GO_STATE(x)   (smc->mib.fddiSMTECMState = (x)|AFLAG)
 
#define ACTIONS_DONE()   (smc->mib.fddiSMTECMState &= ~AFLAG)
 
#define ACTIONS(x)   (x|AFLAG)
 
#define EC0_OUT   0 /* not inserted */
 
#define EC1_IN   1 /* inserted */
 
#define EC2_TRACE   2 /* tracing */
 
#define EC3_LEAVE   3 /* leaving the ring */
 
#define EC4_PATH_TEST   4 /* performing path test */
 
#define EC5_INSERT   5 /* bypass being turned on */
 
#define EC6_CHECK   6 /* checking bypass */
 
#define EC7_DEINSERT   7 /* bypass being turnde off */
 

Functions

void ecm_init (struct s_smc *smc)
 
void ecm (struct s_smc *smc, int event)
 

Macro Definition Documentation

#define ACTIONS (   x)    (x|AFLAG)

Definition at line 58 of file ecm.c.

#define ACTIONS_DONE ( )    (smc->mib.fddiSMTECMState &= ~AFLAG)

Definition at line 57 of file ecm.c.

#define AFLAG   0x10

Definition at line 55 of file ecm.c.

#define EC0_OUT   0 /* not inserted */

Definition at line 60 of file ecm.c.

#define EC1_IN   1 /* inserted */

Definition at line 61 of file ecm.c.

#define EC2_TRACE   2 /* tracing */

Definition at line 62 of file ecm.c.

#define EC3_LEAVE   3 /* leaving the ring */

Definition at line 63 of file ecm.c.

#define EC4_PATH_TEST   4 /* performing path test */

Definition at line 64 of file ecm.c.

#define EC5_INSERT   5 /* bypass being turned on */

Definition at line 65 of file ecm.c.

#define EC6_CHECK   6 /* checking bypass */

Definition at line 66 of file ecm.c.

#define EC7_DEINSERT   7 /* bypass being turnde off */

Definition at line 67 of file ecm.c.

#define GO_STATE (   x)    (smc->mib.fddiSMTECMState = (x)|AFLAG)

Definition at line 56 of file ecm.c.

#define KERNEL

Definition at line 45 of file ecm.c.

Function Documentation

void ecm ( struct s_smc smc,
int  event 
)

Definition at line 124 of file ecm.c.

void ecm_init ( struct s_smc smc)

Definition at line 106 of file ecm.c.