]> git.saurik.com Git - apple/xnu.git/blob - iokit/KernelConfigTables.cpp
f06533b63ca6e4056f0a12b370340f3b0a66fc44
[apple/xnu.git] / iokit / KernelConfigTables.cpp
1 /*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23
24 /* This list is used in IOStartIOKit.cpp to declare fake kmod_info
25 * structs for kext dependencies that are built into the kernel.
26 * See the SystemKEXT project for fuller information on these
27 * fake or pseudo-kexts, including their compatible versions.
28 */
29 const char * gIOKernelKmods =
30 "{
31 'com.apple.kernel' = '5.5';
32 'com.apple.kernel.bsd' = '5.5';
33 'com.apple.kernel.iokit' = '5.5';
34 'com.apple.kernel.libkern' = '5.5';
35 'com.apple.kernel.mach' = '5.5';
36 'com.apple.iokit.IOADBFamily' = '1.1';
37 'com.apple.iokit.IONVRAMFamily' = '1.1';
38 'com.apple.iokit.IOSystemManagementFamily' = '1.1';
39 'com.apple.iokit.ApplePlatformFamily' = '1.0';
40 'com.apple.driver.AppleNMI' = '1.0';
41 }";
42
43
44 const char * gIOKernelConfigTables =
45 "(
46 {
47 'IOClass' = IOPanicPlatform;
48 'IOProviderClass' = IOPlatformExpertDevice;
49 'IOProbeScore' = '-1';
50 }
51 "
52 #ifdef PPC
53 " ,
54 {
55 'IOClass' = AppleCPU;
56 'IOProviderClass' = IOPlatformDevice;
57 'IONameMatch' = 'cpu';
58 'IOProbeScore' = 100:32;
59 },
60 "
61 #if 0
62 "
63 {
64 'IOClass' = PowerSurgePE;
65 'IOProviderClass' = IOPlatformExpertDevice;
66 'IONameMatch' = ('AAPL,7300', 'AAPL,7500', 'AAPL,8500', 'AAPL,9500');
67 'IOProbeScore' = 10000:32;
68 },
69 "
70 #endif
71 "
72 "
73 #if 0
74 "
75 {
76 'IOClass' = PowerStarPE;
77 'IOProviderClass' = IOPlatformExpertDevice;
78 'IONameMatch' = ('AAPL,3400/2400', 'AAPL,3500');
79 'IOProbeScore' = 10000:32;
80 },
81 "
82 #endif
83 "
84 {
85 'IOClass' = GossamerPE;
86 'IOProviderClass' = IOPlatformExpertDevice;
87 'IONameMatch' = ('AAPL,Gossamer', 'AAPL,PowerMac G3', 'AAPL,PowerBook1998', 'iMac,1', 'PowerMac1,1', 'PowerMac1,2', 'PowerBook1,1');
88 'IOProbeScore' = 10000:32;
89 },
90 {
91 'IOClass' = GossamerCPU;
92 'IOProviderClass' = IOPlatformDevice;
93 'IONameMatch' = 'cpu';
94 'IOProbeScore' = 1000:32;
95 },
96 "
97 #if 0
98 "
99 {
100 'IOClass' = PowerExpressPE;
101 'IOProviderClass' = IOPlatformExpertDevice;
102 'IONameMatch' = 'AAPL,9700';
103 'IOProbeScore' = 10000:32;
104 'senses' = <00000000 00000000 00000000 00000000 "
105 "00000000 00000000 00000000 00000000 "
106 "00000000 00000000 00000000 00000000 "
107 "00000000 00000000 00000000 00000000 "
108 "00000000 00000000 00000000 00000000 "
109 "00000000 00000000 00000000 00000000 "
110 "00000000 00000000 00000001 00000001 "
111 "00000001 00000001 00000001 00000001 "
112 "00000001 00000001 00000001 00000001 "
113 "00000001 00000001>;
114 },
115 "
116 #endif
117 #if 0
118 "
119 {
120 'IOClass' = GrandCentral;
121 'IOProviderClass' = IOPCIDevice;
122 'IONameMatch' = gc;
123 'IOProbeScore' = 2000:32;
124 },
125 "
126 #endif
127 "
128 {
129 'IOClass' = OHare;
130 'IOProviderClass' = IOPCIDevice;
131 'IONameMatch' = ('ohare', 'pci106b,7');
132 },
133 {
134 'IOClass' = AppleNMI;
135 'IOProviderClass' = AppleMacIODevice;
136 'IONameMatch' = 'programmer-switch';
137 },
138 {
139 'IOClass' = AppleCuda;
140 'IOProviderClass' = AppleVIADevice;
141 'IONameMatch' = cuda;
142 },"
143 #if 0
144 " {
145 'IOClass' = ApplePMU;
146 'IOProviderClass' = AppleVIADevice;
147 'IONameMatch' = pmu;
148 },"
149 #endif
150 "{
151 'IOClass' = IOPMUADBController;
152 'IOProviderClass' = AppleMacIODevice;
153 'IONameMatch' = adb;
154 },
155 {
156 'IOClass' = AppleNVRAM;
157 'IOProviderClass' = AppleMacIODevice;
158 'IONameMatch' = nvram;
159 }
160 "
161 #endif /* PPC */
162 #ifdef i386
163 " ,
164 {
165 'IOClass' = AppleI386PlatformExpert;
166 'IOProviderClass' = IOPlatformExpertDevice;
167 'top-level' = "
168 /* set of dicts to make into nubs */
169 "[
170 { IOName = cpu; },
171 { IOName = intel-pic; },
172 { IOName = intel-clock; },
173 { IOName = ps2controller; },
174 { IOName = pci; },
175 { IOName = display; 'AAPL,boot-display' = Yes; }
176 ];
177 },
178 {
179 'IOClass' = AppleI386CPU;
180 'IOProviderClass' = IOPlatformDevice;
181 'IONameMatch' = cpu;
182 'IOProbeScore' = 100:32;
183 },
184 {
185 'IOClass' = AppleIntelClassicPIC;
186 'IOProviderClass' = IOPlatformDevice;
187 'IONameMatch' = intel-pic;
188 },
189 {
190 'IOClass' = AppleIntelClock;
191 'IOProviderClass' = IOPlatformDevice;
192 'IONameMatch' = intel-clock;
193 },
194 {
195 'IOClass' = AppleATAPIIX;
196 'IOProviderClass' = IOPCIDevice;
197 'IOPCIMatch' = '0x12308086 0x70108086 0x71118086 0x24118086 0x24218086 0x244a8086 0x244b8086';
198 'IOMatchCategory' = AppleATAPIIXChannel0;
199 },
200 {
201 'IOClass' = AppleATAPIIX;
202 'IOProviderClass' = IOPCIDevice;
203 'IOPCIMatch' = '0x12308086 0x70108086 0x71118086 0x24118086 0x24218086 0x244a8086 0x244b8086';
204 'IOMatchCategory' = AppleATAPIIXChannel1;
205 }
206 "
207 #endif /* i386 */
208 ")";
209