1 /******************************************************************************
3 * (C)Copyright 1998,1999 SysKonnect,
4 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * The information in this file is provided "AS IS" without warranty.
13 ******************************************************************************/
15 #ifndef _SKFP_H_SMTSTATE_H_
16 #define _SKFP_H_SMTSTATE_H_
19 * SMT state definitions
56 #define SC0_ISOLATED 0 /* isolated */
57 #define SC1_WRAP_A 5 /* wrap A */
58 #define SC2_WRAP_B 6 /* wrap B */
59 #define SC4_THRU_A 12 /* through A */
60 #define SC5_THRU_B 7 /* through B (SMt 6.2) */
61 #define SC7_WRAP_S 8 /* SAS */
70 #define EC4_PATH_TEST 4
73 #define EC7_DEINSERT 7
78 #define RM0_ISOLATED 0
79 #define RM1_NON_OP 1 /* not operational */
80 #define RM2_RING_OP 2 /* ring operational */
81 #define RM3_DETECT 3 /* detect dupl addresses */
82 #define RM4_NON_OP_DUP 4 /* dupl. addr detected */
83 #define RM5_RING_OP_DUP 5 /* ring oper. with dupl. addr */
84 #define RM6_DIRECTED 6 /* sending directed beacons */
85 #define RM7_TRACE 7 /* trace initiated */
89 unsigned char pcm_type
; /* TA TB TS TM */
90 unsigned char pcm_state
; /* state PC[0-9]_* */
91 unsigned char pcm_mode
; /* PM_{NONE,PEER,TREE} */
92 unsigned char pcm_neighbor
; /* TA TB TS TM */
93 unsigned char pcm_bsf
; /* flag bs : TRUE/FALSE */
94 unsigned char pcm_lsf
; /* flag ls : TRUE/FALSE */
95 unsigned char pcm_lct_fail
; /* counter lct_fail */
96 unsigned char pcm_ls_rx
; /* rx line state */
97 short pcm_r_val
; /* signaling bits */
98 short pcm_t_val
; /* signaling bits */
102 struct pcm_state pcm_state
[NUMPHYS
] ; /* port A & port B */