Add amd64 files for the ISA and PCI busses and adjust the header files
[dragonfly.git] / sys / bus / isa / amd64 / isa_compat.h
blob0f71ae4e3462ebb63ee7a45fcbf262fe7914b9c9
1 /*-
2 * Copyright (c) 1998 Doug Rabson
3 * All rights reserved.
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.
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.
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/amd64/isa_compat.h,v 1.1 2008/08/02 05:22:17 dillon Exp $
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"
48 struct old_isa_driver {
49 int type;
50 struct isa_driver *driver;
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;
72 static struct old_isa_driver old_drivers[] = {
74 /* Sensitive TTY */
76 /* Sensitive BIO */
78 /* Sensitive NET */
79 #if NRDP > 0
80 { 0, &rdpdriver },
81 #endif
83 /* Sensitive CAM */
85 /* TTY */
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
118 /* BIO */
120 #if NWT > 0
121 { 0, &wtdriver },
122 #endif
124 /* NET */
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
136 /* MISC */
138 #if NCTX > 0
139 { 0, &ctxdriver },
140 #endif
141 #if NSPIGOT > 0
142 { 0, &spigotdriver },
143 #endif
147 #define old_drivers_count (sizeof(old_drivers) / sizeof(old_drivers[0]))