brintos

brintos / linux-shallow public Read only

0
0
Text · 2.3 KiB · a8a8482 Raw
103 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/******************************************************************************3 *4 *	(C)Copyright 1998,1999 SysKonnect,5 *	a business unit of Schneider & Koch & Co. Datensysteme GmbH.6 *7 *	The information in this file is provided "AS IS" without warranty.8 *9 ******************************************************************************/10 11#ifndef _SKFP_H_SMTSTATE_H_12#define _SKFP_H_SMTSTATE_H_13 14/*15 *	SMT state definitions16 */17 18#ifndef	KERNEL19/*20 * PCM states21 */22#define PC0_OFF			023#define PC1_BREAK		124#define PC2_TRACE		225#define PC3_CONNECT		326#define PC4_NEXT		427#define PC5_SIGNAL		528#define PC6_JOIN		629#define PC7_VERIFY		730#define PC8_ACTIVE		831#define PC9_MAINT		932 33/*34 * PCM modes35 */36#define PM_NONE			037#define PM_PEER			138#define PM_TREE			239 40/*41 * PCM type42 */43#define TA			044#define TB			145#define TS			246#define TM			347#define TNONE			448 49/*50 * CFM states51 */52#define SC0_ISOLATED	0		/* isolated */53#define SC1_WRAP_A	5		/* wrap A */54#define SC2_WRAP_B	6		/* wrap B */55#define SC4_THRU_A	12		/* through A */56#define SC5_THRU_B	7		/* through B (SMt 6.2) */57#define SC7_WRAP_S	8		/* SAS */58 59/*60 * ECM states61 */62#define EC0_OUT		063#define EC1_IN		164#define EC2_TRACE	265#define EC3_LEAVE	366#define EC4_PATH_TEST	467#define EC5_INSERT	568#define EC6_CHECK	669#define EC7_DEINSERT	770 71/*72 * RMT states73 */74#define RM0_ISOLATED	075#define RM1_NON_OP	1		/* not operational */76#define RM2_RING_OP	2		/* ring operational */77#define RM3_DETECT	3		/* detect dupl addresses */78#define RM4_NON_OP_DUP	4		/* dupl. addr detected */79#define RM5_RING_OP_DUP	5		/* ring oper. with dupl. addr */80#define RM6_DIRECTED	6		/* sending directed beacons */81#define RM7_TRACE	7		/* trace initiated */82#endif83 84struct pcm_state {85	unsigned char	pcm_type ;		/* TA TB TS TM */86	unsigned char	pcm_state ;		/* state PC[0-9]_* */87	unsigned char	pcm_mode ;		/* PM_{NONE,PEER,TREE} */88	unsigned char	pcm_neighbor ;		/* TA TB TS TM */89	unsigned char	pcm_bsf ;		/* flag bs : TRUE/FALSE */90	unsigned char	pcm_lsf ;		/* flag ls : TRUE/FALSE */91	unsigned char	pcm_lct_fail ;		/* counter lct_fail */92	unsigned char	pcm_ls_rx ;		/* rx line state */93	short		pcm_r_val ;		/* signaling bits */94	short		pcm_t_val ;		/* signaling bits */95} ;96 97struct smt_state {98	struct pcm_state pcm_state[NUMPHYS] ;	/* port A & port B */99} ;100 101#endif102 103