Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / dev / atm / hfa / fore_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/hfa/fore_globals.c,v 1.4 1999/08/28 00:41:49 peter Exp $
27  *
28  */
29
30 /*
31  * FORE Systems 200-Series Adapter Support
32  * ---------------------------------------
33  *
34  * Global variable definitions
35  *
36  */
37
38 #include <dev/hfa/fore_include.h>
39
40 #ifndef lint
41 __RCSID("@(#) $FreeBSD: src/sys/dev/hfa/fore_globals.c,v 1.4 1999/08/28 00:41:49 peter Exp $");
42 #endif
43
44
45 /*
46  * Supported device models
47  */
48 Fore_device     fore_devices[] = {
49 #ifdef FORE_SBUS
50         {SBA200E_PROM_NAME, DEV_FORE_SBA200E},
51         {SBA200_PROM_NAME, DEV_FORE_SBA200},
52 #endif
53         {""}
54 };
55
56
57 /*
58  * Device unit table
59  */
60 Fore_unit       *fore_units[FORE_MAX_UNITS] = {NULL};
61 int             fore_nunits = 0;
62
63
64 /*
65  * ATM Interface services
66  */
67 static struct stack_defn        fore_svaal5 = {
68         NULL,
69         SAP_CPCS_AAL5,
70         SDF_TERM,
71         atm_dev_inst,
72         atm_dev_lower,
73         NULL,
74         0,
75 };
76 static struct stack_defn        fore_svaal4 = {
77         &fore_svaal5,
78         SAP_CPCS_AAL3_4,
79         SDF_TERM,
80         atm_dev_inst,
81         atm_dev_lower,
82         NULL,
83         0,
84 };
85 static struct stack_defn        fore_svaal0 = {
86         &fore_svaal4,
87         SAP_ATM,
88         SDF_TERM,
89         atm_dev_inst,
90         atm_dev_lower,
91         NULL,
92         0,
93 };
94 struct stack_defn       *fore_services = &fore_svaal0;
95
96
97 /*
98  * Storage pools
99  */
100 struct sp_info fore_nif_pool = {
101         "fore nif pool",                /* si_name */
102         sizeof(struct atm_nif),         /* si_blksiz */
103         5,                              /* si_blkcnt */
104         52                              /* si_maxallow */
105 };
106
107 struct sp_info fore_vcc_pool = {
108         "fore vcc pool",                /* si_name */
109         sizeof(Fore_vcc),               /* si_blksiz */
110         10,                             /* si_blkcnt */
111         100                             /* si_maxallow */
112 };
113
114
115 /*
116  * Watchdog timer
117  */
118 struct atm_time         fore_timer = {0, 0};
119