ext2fs - A few bug fixes and syntax adjustments.
[dragonfly.git] / sys / dev / atm / hea / eni_globals.c
blob8ed2f6402b3af728c0a259237a5eb3e53d0a436d
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/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.4 2003/08/07 21:54:28 dillon Exp $
31 * Efficient ENI Adapter Support
32 * -----------------------------
34 * Global variable definitions
38 #include <netproto/atm/kern_include.h>
40 #include "eni_stats.h"
41 #include "eni.h"
44 * Device unit table
46 Eni_unit *eni_units[ENI_MAX_UNITS] = {NULL};
49 * ATM Interface services
52 * AAL5 service stack
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,
64 * Efficient hardware doesn't support AAL3/4. Don't define
65 * an AAL3/4 stack.
68 * AAL0 service stack
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,
79 struct stack_defn *eni_services = &eni_svaal0;
82 * Storage pools
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 */
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 */