freebsd-skq/sys/netatm/uni/sscf_uni_var.h
phk acecaa1fc2 More HARP polishina:
unifdef -UFORE_SBUS -DFORE_PCI
s/ATM_KERNEL/_KERNER/g
2000-10-12 07:42:34 +00:00

116 lines
3.3 KiB
C

/*
*
* ===================================
* HARP | Host ATM Research Platform
* ===================================
*
*
* This Host ATM Research Platform ("HARP") file (the "Software") is
* made available by Network Computing Services, Inc. ("NetworkCS")
* "AS IS". NetworkCS does not provide maintenance, improvements or
* support of any kind.
*
* NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
* INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
* SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
* In no event shall NetworkCS be responsible for any damages, including
* but not limited to consequential damages, arising from or relating to
* any use of the Software or related support.
*
* Copyright 1994-1998 Network Computing Services, Inc.
*
* Copies of this Software may be made, however, the above copyright
* notice must be reproduced on all copies.
*
* @(#) $FreeBSD$
*
*/
/*
* ATM Forum UNI Support
* ---------------------
*
* SSCF UNI protocol control blocks
*
*/
#ifndef _UNI_SSCF_UNI_VAR_H
#define _UNI_SSCF_UNI_VAR_H
/*
* Structure containing information for each SSCF UNI connection.
*/
struct univcc {
u_char uv_ustate; /* SSCF-User state (see below) */
u_char uv_lstate; /* SSCF-SSCOP state (see below) */
u_short uv_flags; /* Connection flags (see below) */
enum uni_vers uv_vers; /* UNI version */
/* Stack variables */
Atm_connvc *uv_connvc; /* Connection vcc for this stack */
void *uv_toku; /* Stack upper layer's token */
void *uv_tokl; /* Stack lower layer's token */
void (*uv_upper) /* Stack upper layer's interface */
__P((int, void *, int, int));
void (*uv_lower) /* Stack lower layer's interface */
__P((int, void *, int, int));
};
/*
* SSCF to SAAL User (Q.2931) Interface States
*/
#define UVU_INST 0 /* Instantiated, waiting for INIT */
#define UVU_RELEASED 1 /* Connection released */
#define UVU_PACTIVE 2 /* Awaiting connection establishment */
#define UVU_PRELEASE 3 /* Awaiting connection release */
#define UVU_ACTIVE 4 /* Connection established */
#define UVU_TERM 5 /* Waiting for TERM */
/*
* SSCF to SSCOP Interface States
*/
#define UVL_INST 0 /* Instantiated, waiting for INIT */
#define UVL_IDLE 1 /* Idle */
#define UVL_OUTCONN 2 /* Outgoing connection pending */
#define UVL_INCONN 3 /* Incoming connection pending */
#define UVL_OUTDISC 4 /* Outgoing disconnection pending */
#define UVL_OUTRESYN 5 /* Outgoing resynchronization pending */
#define UVL_INRESYN 6 /* Incoming resynchornization pending */
#define UVL_RECOVERY 8 /* Recovery pending */
#define UVL_READY 10 /* Data transfer ready */
#define UVL_TERM 11 /* Waiting for TERM */
/*
* Connection Flags
*/
#define UVF_NOESTIND 0x0001 /* Don't process ESTABLISH_IND */
#ifdef _KERNEL
/*
* Global function declarations
*/
/* sscf_uni.c */
int sscf_uni_start __P((void));
int sscf_uni_stop __P((void));
void sscf_uni_abort __P((struct univcc *, char *));
void sscf_uni_pdu_print __P((struct univcc *, KBuffer *,
char *));
/* sscf_uni_lower.c */
void sscf_uni_lower __P((int, void *, int, int));
/* sscf_uni_upper.c */
void sscf_uni_upper __P((int, void *, int, int));
/*
* External variables
*/
extern int sscf_uni_vccnt;
#endif /* _KERNEL */
#endif /* _UNI_SSCF_UNI_VAR_H */