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

Go to the source code of this file.

Macros

#define OEM_USER_DATA   "SK-NET FDDI V2.0 Userdata"
 
#define TTMS(x)   ((u_long)(x)*1000L)
 
#define TTS(x)   ((u_long)(x)*1000000L)
 
#define TTUS(x)   ((u_long)(x))
 
#define DEFAULT_TB_MIN   TTMS(5)
 
#define DEFAULT_TB_MAX   TTMS(50)
 
#define DEFAULT_C_MIN   TTUS(1600)
 
#define DEFAULT_T_OUT   TTMS(100+5)
 
#define DEFAULT_TL_MIN   TTUS(30)
 
#define DEFAULT_LC_SHORT   TTMS(50+5)
 
#define DEFAULT_LC_MEDIUM   TTMS(500+20)
 
#define DEFAULT_LC_LONG   TTS(5)+TTMS(50)
 
#define DEFAULT_LC_EXTENDED   TTS(50)+TTMS(50)
 
#define DEFAULT_T_NEXT_9   TTMS(200+10)
 
#define DEFAULT_NS_MAX   TTUS(1310)
 
#define DEFAULT_I_MAX   TTMS(25)
 
#define DEFAULT_IN_MAX   TTMS(40)
 
#define DEFAULT_TD_MIN   TTMS(5)
 
#define DEFAULT_T_NON_OP   TTS(1)
 
#define DEFAULT_T_STUCK   TTS(8)
 
#define DEFAULT_T_DIRECT   TTMS(370)
 
#define DEFAULT_T_JAM   TTMS(370)
 
#define DEFAULT_T_ANNOUNCE   TTMS(2500)
 
#define DEFAULT_D_MAX   TTUS(1617)
 
#define DEFAULT_LEM_ALARM   (8)
 
#define DEFAULT_LEM_CUTOFF   (7)
 
#define DEFAULT_TEST_DONE   TTS(1)
 
#define DEFAULT_CHECK_POLL   TTS(1)
 
#define DEFAULT_POLL   TTMS(50)
 
#define DEFAULT_LCT_SHORT   1
 
#define DEFAULT_LCT_MEDIUM   3
 
#define DEFAULT_LCT_LONG   5
 
#define DEFAULT_LCT_EXTEND   50
 
#define MS2BCLK(x)   ((x)*12500L)
 
#define US2BCLK(x)   ((x)*1250L)
 

Functions

void smt_reset_defaults (struct s_smc *smc, int level)
 
int smt_set_mac_opvalues (struct s_smc *smc)
 
void smt_fixup_mib (struct s_smc *smc)
 

Macro Definition Documentation

#define DEFAULT_C_MIN   TTUS(1600)

Definition at line 42 of file smtdef.c.

#define DEFAULT_CHECK_POLL   TTS(1)

Definition at line 63 of file smtdef.c.

#define DEFAULT_D_MAX   TTUS(1617)

Definition at line 59 of file smtdef.c.

#define DEFAULT_I_MAX   TTMS(25)

Definition at line 51 of file smtdef.c.

#define DEFAULT_IN_MAX   TTMS(40)

Definition at line 52 of file smtdef.c.

#define DEFAULT_LC_EXTENDED   TTS(50)+TTMS(50)

Definition at line 48 of file smtdef.c.

#define DEFAULT_LC_LONG   TTS(5)+TTMS(50)

Definition at line 47 of file smtdef.c.

#define DEFAULT_LC_MEDIUM   TTMS(500+20)

Definition at line 46 of file smtdef.c.

#define DEFAULT_LC_SHORT   TTMS(50+5)

Definition at line 45 of file smtdef.c.

#define DEFAULT_LCT_EXTEND   50

Definition at line 72 of file smtdef.c.

#define DEFAULT_LCT_LONG   5

Definition at line 71 of file smtdef.c.

#define DEFAULT_LCT_MEDIUM   3

Definition at line 70 of file smtdef.c.

#define DEFAULT_LCT_SHORT   1

Definition at line 69 of file smtdef.c.

#define DEFAULT_LEM_ALARM   (8)

Definition at line 60 of file smtdef.c.

#define DEFAULT_LEM_CUTOFF   (7)

Definition at line 61 of file smtdef.c.

#define DEFAULT_NS_MAX   TTUS(1310)

Definition at line 50 of file smtdef.c.

#define DEFAULT_POLL   TTMS(50)

Definition at line 64 of file smtdef.c.

#define DEFAULT_T_ANNOUNCE   TTMS(2500)

Definition at line 58 of file smtdef.c.

#define DEFAULT_T_DIRECT   TTMS(370)

Definition at line 56 of file smtdef.c.

#define DEFAULT_T_JAM   TTMS(370)

Definition at line 57 of file smtdef.c.

#define DEFAULT_T_NEXT_9   TTMS(200+10)

Definition at line 49 of file smtdef.c.

#define DEFAULT_T_NON_OP   TTS(1)

Definition at line 54 of file smtdef.c.

#define DEFAULT_T_OUT   TTMS(100+5)

Definition at line 43 of file smtdef.c.

#define DEFAULT_T_STUCK   TTS(8)

Definition at line 55 of file smtdef.c.

#define DEFAULT_TB_MAX   TTMS(50)

Definition at line 41 of file smtdef.c.

#define DEFAULT_TB_MIN   TTMS(5)

Definition at line 40 of file smtdef.c.

#define DEFAULT_TD_MIN   TTMS(5)

Definition at line 53 of file smtdef.c.

#define DEFAULT_TEST_DONE   TTS(1)

Definition at line 62 of file smtdef.c.

#define DEFAULT_TL_MIN   TTUS(30)

Definition at line 44 of file smtdef.c.

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

Definition at line 79 of file smtdef.c.

#define OEM_USER_DATA   "SK-NET FDDI V2.0 Userdata"

Definition at line 26 of file smtdef.c.

#define TTMS (   x)    ((u_long)(x)*1000L)

Definition at line 36 of file smtdef.c.

#define TTS (   x)    ((u_long)(x)*1000000L)

Definition at line 37 of file smtdef.c.

#define TTUS (   x)    ((u_long)(x))

Definition at line 38 of file smtdef.c.

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

Definition at line 80 of file smtdef.c.

Function Documentation

void smt_fixup_mib ( struct s_smc smc)

Definition at line 309 of file smtdef.c.

void smt_reset_defaults ( struct s_smc smc,
int  level 
)

Definition at line 82 of file smtdef.c.

int smt_set_mac_opvalues ( struct s_smc smc)

Definition at line 284 of file smtdef.c.