Merge branch 'vendor/FILE'
[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_el.h"
31 #include "use_le.h"
32 #include "use_rdp.h"
33 #include "use_wt.h"
34 #include "use_ctx.h"
35 #include "use_spigot.h"
36 #include "use_gp.h"
37 #include "use_gsc.h"
38 #include "use_cy.h"
39 #include "use_dgb.h"
40 #include "use_labpc.h"
41 #include "use_rc.h"
42 #include "use_tw.h"
43 #include "use_asc.h"
44 #include "use_stl.h"
45 #include "use_stli.h"
46
47 struct old_isa_driver {
48         int                     type;
49         struct isa_driver       *driver;
50 };
51
52 extern struct isa_driver  eldriver;
53 extern struct isa_driver  ledriver;
54 extern struct isa_driver rdpdriver;
55 extern struct isa_driver  wtdriver;
56 extern struct isa_driver ctxdriver;
57 extern struct isa_driver spigotdriver;
58 extern struct isa_driver  gpdriver;
59 extern struct isa_driver gscdriver;
60 extern struct isa_driver  cydriver;
61 extern struct isa_driver dgbdriver;
62 extern struct isa_driver labpcdriver;
63 extern struct isa_driver  rcdriver;
64 extern struct isa_driver  twdriver;
65 extern struct isa_driver ascdriver;
66 extern struct isa_driver stldriver;
67 extern struct isa_driver stlidriver;
68
69
70 static struct old_isa_driver old_drivers[] = {
71
72 /* Sensitive TTY */
73
74 /* Sensitive BIO */
75
76 /* Sensitive NET */
77 #if NRDP > 0
78         { 0, &rdpdriver },
79 #endif
80
81 /* Sensitive CAM */
82
83 /* TTY */
84
85 #if NGP > 0
86         { 0, &gpdriver },
87 #endif
88 #if NGSC > 0
89         { 0, &gscdriver },
90 #endif
91 #if NCY > 0
92         { INTR_FAST, &cydriver },
93 #endif
94 #if NDGB > 0
95         { 0, &dgbdriver },
96 #endif
97 #if NLABPC > 0
98         { 0, &labpcdriver },
99 #endif
100 #if NRC > 0
101         { 0, &rcdriver },
102 #endif
103 #if NTW > 0
104         { 0, &twdriver },
105 #endif
106 #if NASC > 0
107         { 0, &ascdriver },
108 #endif
109 #if NSTL > 0
110         { 0, &stldriver },
111 #endif
112 #if NSTLI > 0
113         { 0, &stlidriver },
114 #endif
115
116 /* BIO */
117
118 #if NWT > 0
119         { 0, &wtdriver },
120 #endif
121
122 /* NET */
123
124 #if NLE > 0
125         { 0, &ledriver },
126 #endif
127 #if NEL > 0
128         { 0, &eldriver },
129 #endif
130
131 /* MISC */
132
133 #if NCTX > 0
134         { 0, &ctxdriver },
135 #endif
136 #if NSPIGOT > 0
137         { 0, &spigotdriver },
138 #endif
139
140 };
141
142 #define old_drivers_count (sizeof(old_drivers) / sizeof(old_drivers[0]))
143