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