Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / dev / atm / hea / eni_globals.c
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/dev/hea/eni_globals.c,v 1.5 2000/01/17 20:49:41 mks Exp $
27  *
28  */
29
30 /*
31  * Efficient ENI Adapter Support
32  * -----------------------------
33  *
34  * Global variable definitions
35  *
36  */
37
38 #include <netatm/kern_include.h>
39
40 #include <dev/hea/eni_stats.h>
41 #include <dev/hea/eni.h>
42
43 #ifndef lint
44 __RCSID("@(#) $FreeBSD: src/sys/dev/hea/eni_globals.c,v 1.5 2000/01/17 20:49:41 mks Exp $");
45 #endif
46
47 /*
48  * Device unit table
49  */
50 Eni_unit        *eni_units[ENI_MAX_UNITS] = {NULL};
51
52 /*
53  * ATM Interface services
54  */
55 /*
56  * AAL5 service stack
57  */
58 static struct stack_defn        eni_svaal5 = {
59         NULL,
60         SAP_CPCS_AAL5,
61         SDF_TERM,
62         atm_dev_inst,
63         atm_dev_lower,
64         NULL,
65         0,
66 };
67 /*
68  * Efficient hardware doesn't support AAL3/4. Don't define
69  * an AAL3/4 stack.
70  */
71 /*
72  * AAL0 service stack
73  */
74 static struct stack_defn        eni_svaal0 = {
75         &eni_svaal5,
76         SAP_ATM,
77         SDF_TERM,
78         atm_dev_inst,
79         atm_dev_lower,
80         NULL,
81         0,
82 };
83 struct stack_defn       *eni_services = &eni_svaal0;
84
85 /*
86  * Storage pools
87  */
88 struct sp_info eni_nif_pool = {
89         "eni nif pool",                 /* si_name */
90         sizeof(struct atm_nif),         /* si_blksiz */
91         5,                              /* si_blkcnt */
92         52                              /* si_maxallow */
93 };
94
95 struct sp_info eni_vcc_pool = {
96         "eni vcc pool",                 /* si_name */
97         sizeof(Eni_vcc),                /* si_blksiz */
98         10,                             /* si_blkcnt */
99         100                             /* si_maxallow */
100 };
101