fetch.9: Minor fixes.
[dragonfly.git] / sys / netproto / atm / sigpvc / sigpvc_var.h
blob3160c52de5cc492eeb426c7cc8709b708f9e289d
1 /*
3 * ===================================
4 * HARP | Host ATM Research Platform
5 * ===================================
8 * This Host ATM Research Platform ("HARP") file (the "Software") is
9 * made available by Network Computing Services, Inc. ("NetworkCS")
10 * "AS IS". NetworkCS does not provide maintenance, improvements or
11 * support of any kind.
13 * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
14 * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
15 * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
16 * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
17 * In no event shall NetworkCS be responsible for any damages, including
18 * but not limited to consequential damages, arising from or relating to
19 * any use of the Software or related support.
21 * Copyright 1994-1998 Network Computing Services, Inc.
23 * Copies of this Software may be made, however, the above copyright
24 * notice must be reproduced on all copies.
26 * @(#) $FreeBSD: src/sys/netatm/sigpvc/sigpvc_var.h,v 1.2 1999/08/28 00:48:47 peter Exp $
27 * @(#) $DragonFly: src/sys/netproto/atm/sigpvc/sigpvc_var.h,v 1.3 2003/08/23 10:06:22 rob Exp $
32 * PVC-only Signalling Manager
33 * ---------------------------
35 * Protocol control blocks
39 #ifndef _SIGPVC_SIGPVC_VAR_H
40 #define _SIGPVC_SIGPVC_VAR_H
42 #ifdef ATM_KERNEL
44 * Structure containing state information for each SigPVC protocol instance.
45 * There will be one instance for each ATM device interface using the SigPVC
46 * signalling manager.
48 struct sigpvc {
49 struct siginst pv_inst; /* Common header */
51 #define pv_next pv_inst.si_next
52 #define pv_pif pv_inst.si_pif
53 #define pv_addr pv_inst.si_addr
54 #define pv_vccq pv_inst.si_vccq
55 #define pv_state pv_inst.si_state
56 #endif /* ATM_KERNEL */
59 * SigPVC Protocol States
61 #define SIGPVC_ACTIVE 1 /* Active */
62 #define SIGPVC_DETACH 2 /* Detach in progress */
65 #ifdef ATM_KERNEL
67 * SigPVC Virtual Channel Connection control block. All information regarding
68 * the state of a SigPVC controlled VCC will be recorded here. There will be
69 * one SigPVC VCC control block for each SigPVC-controlled VCC.
71 struct sigpvc_vccb {
72 struct vccb vcp_hdr; /* Generic vccb */
74 #endif /* ATM_KERNEL */
77 * SigPVC VCC Signalling Protocol States
79 #define VCCS_NULL 0 /* No state */
80 #define VCCS_ACTIVE 1 /* Active */
81 #define VCCS_FREE 2 /* Waiting for user to free resources */
84 #ifdef ATM_KERNEL
86 * Global function declarations
88 /* sigpvc_if.c */
90 /* sigpvc_subr.c */
91 int sigpvc_create_pvc (struct sigpvc *, Atm_connvc *, int *);
92 void sigpvc_close_vcc (struct vccb *);
94 #endif /* ATM_KERNEL */
96 #endif /* _SIGPVC_SIGPVC_VAR_H */