Merge commit 'crater/vendor/OPENPAM'
[dragonfly.git] / sys / bus / isa / i386 / isa_compat.h
1 /*-
2  * Copyright (c) 1998 Doug Rabson
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  *
26  * $FreeBSD: src/sys/i386/isa/isa_compat.h,v 1.27.2.11 2002/10/05 18:31:48 scottl Exp $
27  * $DragonFly: src/sys/bus/isa/i386/isa_compat.h,v 1.13 2008/07/28 01:21:39 swildner Exp $
28  */
29
30 #include "use_cx.h"
31 #include "use_el.h"
32 #include "use_le.h"
33 #include "use_rdp.h"
34 #include "use_wt.h"
35 #include "use_ctx.h"
36 #include "use_spigot.h"
37 #include "use_gp.h"
38 #include "use_gsc.h"
39 #include "use_cy.h"
40 #include "use_dgb.h"
41 #include "use_labpc.h"
42 #include "use_rc.h"
43 #include "use_tw.h"
44 #include "use_asc.h"
45 #include "use_stl.h"
46 #include "use_stli.h"
47
48 struct old_isa_driver {
49         int                     type;
50         struct isa_driver       *driver;
51 };
52
53 extern struct isa_driver  cxdriver;
54 extern struct isa_driver  eldriver;
55 extern struct isa_driver  ledriver;
56 extern struct isa_driver rdpdriver;
57 extern struct isa_driver  wtdriver;
58 extern struct isa_driver ctxdriver;
59 extern struct isa_driver spigotdriver;
60 extern struct isa_driver  gpdriver;
61 extern struct isa_driver gscdriver;
62 extern struct isa_driver  cydriver;
63 extern struct isa_driver dgbdriver;
64 extern struct isa_driver labpcdriver;
65 extern struct isa_driver  rcdriver;
66 extern struct isa_driver  twdriver;
67 extern struct isa_driver ascdriver;
68 extern struct isa_driver stldriver;
69 extern struct isa_driver stlidriver;
70
71
72 static struct old_isa_driver old_drivers[] = {
73
74 /* Sensitive TTY */
75
76 /* Sensitive BIO */
77
78 /* Sensitive NET */
79 #if NRDP > 0
80         { 0, &rdpdriver },
81 #endif
82
83 /* Sensitive CAM */
84
85 /* TTY */
86
87 #if NGP > 0
88         { 0, &gpdriver },
89 #endif
90 #if NGSC > 0
91         { 0, &gscdriver },
92 #endif
93 #if NCY > 0
94         { INTR_FAST, &cydriver },
95 #endif
96 #if NDGB > 0
97         { 0, &dgbdriver },
98 #endif
99 #if NLABPC > 0
100         { 0, &labpcdriver },
101 #endif
102 #if NRC > 0
103         { 0, &rcdriver },
104 #endif
105 #if NTW > 0
106         { 0, &twdriver },
107 #endif
108 #if NASC > 0
109         { 0, &ascdriver },
110 #endif
111 #if NSTL > 0
112         { 0, &stldriver },
113 #endif
114 #if NSTLI > 0
115         { 0, &stlidriver },
116 #endif
117
118 /* BIO */
119
120 #if NWT > 0
121         { 0, &wtdriver },
122 #endif
123
124 /* NET */
125
126 #if NLE > 0
127         { 0, &ledriver },
128 #endif
129 #if NCX > 0
130         { 0, &cxdriver },
131 #endif
132 #if NEL > 0
133         { 0, &eldriver },
134 #endif
135
136 /* MISC */
137
138 #if NCTX > 0
139         { 0, &ctxdriver },
140 #endif
141 #if NSPIGOT > 0
142         { 0, &spigotdriver },
143 #endif
144
145 };
146
147 #define old_drivers_count (sizeof(old_drivers) / sizeof(old_drivers[0]))
148