kernel: Sync ACPICA with Intel's version 20140424.
[dragonfly.git] / sys / netproto / atm / sigpvc / sigpvc_var.h
1 /*
2  *
3  * ===================================
4  * HARP  |  Host ATM Research Platform
5  * ===================================
6  *
7  *
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.
12  *
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.
20  *
21  * Copyright 1994-1998 Network Computing Services, Inc.
22  *
23  * Copies of this Software may be made, however, the above copyright
24  * notice must be reproduced on all copies.
25  *
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 $
28  *
29  */
30
31 /*
32  * PVC-only Signalling Manager
33  * ---------------------------
34  *
35  * Protocol control blocks
36  *
37  */
38
39 #ifndef _SIGPVC_SIGPVC_VAR_H
40 #define _SIGPVC_SIGPVC_VAR_H
41
42 #ifdef ATM_KERNEL
43 /*
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.
47  */
48 struct  sigpvc {
49         struct siginst  pv_inst;        /* Common header */
50 };
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 */
57
58 /*
59  * SigPVC Protocol States
60  */
61 #define SIGPVC_ACTIVE   1               /* Active */
62 #define SIGPVC_DETACH   2               /* Detach in progress */
63
64
65 #ifdef ATM_KERNEL
66 /*
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.
70  */
71 struct sigpvc_vccb {
72         struct vccb     vcp_hdr;        /* Generic vccb */
73 };
74 #endif  /* ATM_KERNEL */
75
76 /*
77  * SigPVC VCC Signalling Protocol States
78  */
79 #define VCCS_NULL       0               /* No state */
80 #define VCCS_ACTIVE     1               /* Active */
81 #define VCCS_FREE       2               /* Waiting for user to free resources */
82
83
84 #ifdef ATM_KERNEL
85 /*
86  * Global function declarations
87  */
88         /* sigpvc_if.c */
89
90         /* sigpvc_subr.c */
91 int             sigpvc_create_pvc (struct sigpvc *, Atm_connvc *, int *);
92 void            sigpvc_close_vcc (struct vccb *);
93
94 #endif  /* ATM_KERNEL */
95
96 #endif  /* _SIGPVC_SIGPVC_VAR_H */