File: smt-types.h

package info (click to toggle)
kernel-source-2.2.19 2.2.19.1-4woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,100 kB
  • ctags: 276,892
  • sloc: ansic: 1,710,384; asm: 58,709; makefile: 10,198; sh: 2,398; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (167 lines) | stat: -rw-r--r-- 2,691 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
  /*
   * Copyright 1996 The Australian National University.
   * Copyright 1996 Fujitsu Laboratories Limited
   * 
   * This software may be distributed under the terms of the Gnu
   * Public License version 2 or later
  */
/*
 * Definitions for FDDI Station Management.
 */

/*
 * FDDI-COMMON types.
 */

typedef unsigned int Counter;	/* 32-bit event counter */

typedef enum {
    cp_isolated,
    cp_local,
    cp_secondary,
    cp_primary,
    cp_concatenated,
    cp_thru
} CurrentPath;

typedef char Flag;

typedef unsigned char LongAddressType[6];

typedef enum {
    pt_a,
    pt_b,
    pt_s,
    pt_m,
    pt_none
} PortType;

typedef unsigned short ResourceId;

typedef int Time;		/* time in 80ns units */
#define FDDI_TIME_UNIT	80e-9	/* 80 nanoseconds */
#define SECS_TO_FDDI_TIME(s)	((int)((s)/FDDI_TIME_UNIT+0.99))

typedef int TimerTwosComplement;

/*
 * FDDI-SMT types.
 */
typedef enum {
    ec_Out,
    ec_In,
    ec_Trace,
    ec_Leave,
    ec_Path_Test,
    ec_Insert,
    ec_Check,
    ec_Deinsert
} ECMState;

/*
 * FDDI-MAC types.
 */
typedef enum {
    dat_none,
    dat_pass,
    dat_fail
} DupAddressTest;

typedef unsigned short DupCondition;
#define DC_MYDUP	1
#define DC_UNADUP	2

typedef unsigned short FS_Functions;
#define FSF_FS_REPEATING	1
#define FSF_FS_SETTING		2
#define FSF_FS_CLEARING		4

typedef unsigned char NACondition;
#define NAC_UNACHANGE	1
#define NAC_DNACHANGE	2

typedef enum {
    rmt_Isolated,
    rmt_Non_Op,
    rmt_Ring_Op,
    rmt_Detect,
    rmt_Non_Op_Dup,
    rmt_Ring_Op_Dup,
    rmt_Directed,
    rmt_Trace
} RMTState;

typedef unsigned char ShortAddressType[2];

/*
 * FDDI-PATH types.
 */
typedef unsigned short TraceStatus;
#define TS_TRACEINITIATED	1
#define TS_TRACEPROPAGATED	2
#define TS_TRACETERMINATED	4
#define TS_TRACETIMEOUT		8

/*
 * FDDI-PORT types.
 */
typedef enum {
    PC_Maint,
    PC_Enable,
    PC_Disable,
    PC_Start,
    PC_Stop
} ActionType;

typedef unsigned char ConnectionPolicies;
#define PC_MAC_LCT	1
#define PC_MAC_LOOP	2

typedef enum {
    cs_disabled,
    cs_connecting,
    cs_standby,
    cs_active
} ConnectState;

typedef enum {
    ls_qls,
    ls_ils,
    ls_mls,
    ls_hls,
    ls_pdr,
    ls_lsu,
    ls_nls
} LineState;

typedef enum {
    pc_Off,
    pc_Break,
    pc_Trace,
    pc_Connect,
    pc_Next,
    pc_Signal,
    pc_Join,
    pc_Verify,
    pc_Active,
    pc_Maint
} PCMState;

typedef enum {
    pcw_none,
    pcw_mm,
    pcw_otherincompatible,
    pcw_pathnotavailable
} PC_Withhold;

typedef enum {
    pmd_multimode,
    pmd_single_mode1,
    pmd_single_mode2,
    pmd_sonet,
    pmd_low_cost_fiber,
    pmd_twisted_pair,
    pmd_unknown,
    pmd_unspecified
} PMDClass;