#ifndef _SKFP_H_SMTSTATE_H_
#define _SKFP_H_SMTSTATE_H_
#ifndef KERNEL
#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 PM_NONE 0
#define PM_PEER 1
#define PM_TREE 2
#define TA 0
#define TB 1
#define TS 2
#define TM 3
#define TNONE 4
#define SC0_ISOLATED 0 /* isolated */
#define SC1_WRAP_A 5 /* wrap A */
#define SC2_WRAP_B 6 /* wrap B */
#define SC4_THRU_A 12 /* through A */
#define SC5_THRU_B 7 /* through B (SMt 6.2) */
#define SC7_WRAP_S 8 /* SAS */
#define EC0_OUT 0
#define EC1_IN 1
#define EC2_TRACE 2
#define EC3_LEAVE 3
#define EC4_PATH_TEST 4
#define EC5_INSERT 5
#define EC6_CHECK 6
#define EC7_DEINSERT 7
#define RM0_ISOLATED 0
#define RM1_NON_OP 1 /* not operational */
#define RM2_RING_OP 2 /* ring operational */
#define RM3_DETECT 3 /* detect dupl addresses */
#define RM4_NON_OP_DUP 4 /* dupl. addr detected */
#define RM5_RING_OP_DUP 5 /* ring oper. with dupl. addr */
#define RM6_DIRECTED 6 /* sending directed beacons */
#define RM7_TRACE 7 /* trace initiated */
#endif
struct pcm_state {
unsigned char pcm_type ;
unsigned char pcm_state ;
unsigned char pcm_mode ;
unsigned char pcm_neighbor ;
unsigned char pcm_bsf ;
unsigned char pcm_lsf ;
unsigned char pcm_lct_fail ;
unsigned char pcm_ls_rx ;
short pcm_r_val ;
short pcm_t_val ;
} ;
struct smt_state {
struct pcm_state pcm_state[NUMPHYS] ;
} ;
#endif