kernel tree reorganization stage 1: Major cvs repository work (not logged as
[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  *      @(#) $DragonFly: src/sys/dev/atm/hea/eni_globals.c,v 1.3 2003/08/07 21:16:49 dillon Exp $
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 "eni_stats.h"
41 #include "eni.h"
42
43 /*
44  * Device unit table
45  */
46 Eni_unit        *eni_units[ENI_MAX_UNITS] = {NULL};
47
48 /*
49  * ATM Interface services
50  */
51 /*
52  * AAL5 service stack
53  */
54 static struct stack_defn        eni_svaal5 = {
55         NULL,
56         SAP_CPCS_AAL5,
57         SDF_TERM,
58         atm_dev_inst,
59         atm_dev_lower,
60         NULL,
61         0,
62 };
63 /*
64  * Efficient hardware doesn't support AAL3/4. Don't define
65  * an AAL3/4 stack.
66  */
67 /*
68  * AAL0 service stack
69  */
70 static struct stack_defn        eni_svaal0 = {
71         &eni_svaal5,
72         SAP_ATM,
73         SDF_TERM,
74         atm_dev_inst,
75         atm_dev_lower,
76         NULL,
77         0,
78 };
79 struct stack_defn       *eni_services = &eni_svaal0;
80
81 /*
82  * Storage pools
83  */
84 struct sp_info eni_nif_pool = {
85         "eni nif pool",                 /* si_name */
86         sizeof(struct atm_nif),         /* si_blksiz */
87         5,                              /* si_blkcnt */
88         52                              /* si_maxallow */
89 };
90
91 struct sp_info eni_vcc_pool = {
92         "eni vcc pool",                 /* si_name */
93         sizeof(Eni_vcc),                /* si_blksiz */
94         10,                             /* si_blkcnt */
95         100                             /* si_maxallow */
96 };
97