]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | This driver parses the mMiscSubclassDataTable structure and reports\r | |
3 | any generated data to the DataHub.\r | |
4 | \r | |
5 | Copyright (c) 2013-2015 Intel Corporation.\r | |
6 | \r | |
0eb3de2e | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
b303605e MK |
8 | \r |
9 | \r | |
10 | **/\r | |
11 | \r | |
12 | \r | |
13 | #include "CommonHeader.h"\r | |
14 | \r | |
15 | #include "SmbiosMisc.h"\r | |
16 | \r | |
17 | \r | |
18 | //\r | |
19 | // Static (possibly build generated) Bios Vendor data.\r | |
20 | //\r | |
21 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot1) = {\r | |
22 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT1), // SlotDesignation\r | |
23 | EfiSlotTypePci, // SlotType\r | |
24 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
25 | EfiSlotUsageAvailable, // SlotUsage\r | |
26 | EfiSlotLengthLong , // SlotLength\r | |
27 | 1, // SlotId\r | |
28 | { // SlotCharacteristics\r | |
29 | 0, // CharacteristicsUnknown :1;\r | |
30 | 0, // Provides50Volts :1;\r | |
31 | 1, // Provides33Volts :1;\r | |
32 | 0, // SharedSlot :1;\r | |
33 | 0, // PcCard16Supported :1;\r | |
34 | 0, // CardBusSupported :1;\r | |
35 | 0, // ZoomVideoSupported :1;\r | |
36 | 0, // ModemRingResumeSupported:1;\r | |
37 | 1, // PmeSignalSupported :1;\r | |
38 | 0, // HotPlugDevicesSupported :1;\r | |
39 | 1, // SmbusSignalSupported :1;\r | |
40 | 0 // Reserved :21;\r | |
41 | },\r | |
42 | {0} // SlotDevicePath\r | |
43 | };\r | |
44 | \r | |
45 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot2) = {\r | |
46 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT2), // SlotDesignation\r | |
47 | EfiSlotTypePciExpress, // SlotType\r | |
48 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
49 | EfiSlotUsageAvailable, // SlotUsage\r | |
50 | EfiSlotLengthLong , // SlotLength\r | |
51 | 1, // SlotId\r | |
52 | { // SlotCharacteristics\r | |
53 | 0, // CharacteristicsUnknown :1;\r | |
54 | 0, // Provides50Volts :1;\r | |
55 | 1, // Provides33Volts :1;\r | |
56 | 0, // SharedSlot :1;\r | |
57 | 0, // PcCard16Supported :1;\r | |
58 | 0, // CardBusSupported :1;\r | |
59 | 0, // ZoomVideoSupported :1;\r | |
60 | 0, // ModemRingResumeSupported:1;\r | |
61 | 1, // PmeSignalSupported :1;\r | |
62 | 1, // HotPlugDevicesSupported :1;\r | |
63 | 1, // SmbusSignalSupported :1;\r | |
64 | 0 // Reserved :21;\r | |
65 | },\r | |
66 | {0} // SlotDevicePath\r | |
67 | };\r | |
68 | \r | |
69 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot3) = {\r | |
70 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT3), // SlotDesignation\r | |
71 | EfiSlotTypePciExpress, // SlotType\r | |
72 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
73 | EfiSlotUsageAvailable, // SlotUsage\r | |
74 | EfiSlotLengthLong , // SlotLength\r | |
75 | 2, // SlotId\r | |
76 | { // SlotCharacteristics\r | |
77 | 0, // CharacteristicsUnknown :1;\r | |
78 | 0, // Provides50Volts :1;\r | |
79 | 1, // Provides33Volts :1;\r | |
80 | 0, // SharedSlot :1;\r | |
81 | 0, // PcCard16Supported :1;\r | |
82 | 0, // CardBusSupported :1;\r | |
83 | 0, // ZoomVideoSupported :1;\r | |
84 | 0, // ModemRingResumeSupported:1;\r | |
85 | 1, // PmeSignalSupported :1;\r | |
86 | 1, // HotPlugDevicesSupported :1;\r | |
87 | 1, // SmbusSignalSupported :1;\r | |
88 | 0 // Reserved :21;\r | |
89 | },\r | |
90 | {0} // SlotDevicePath\r | |
91 | };\r | |
92 | \r | |
93 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot4) = {\r | |
94 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT4), // SlotDesignation\r | |
95 | EfiSlotTypePciExpress, // SlotType\r | |
96 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
97 | EfiSlotUsageAvailable, // SlotUsage\r | |
98 | EfiSlotLengthLong , // SlotLength\r | |
99 | 2, // SlotId\r | |
100 | { // SlotCharacteristics\r | |
101 | 0, // CharacteristicsUnknown :1;\r | |
102 | 0, // Provides50Volts :1;\r | |
103 | 1, // Provides33Volts :1;\r | |
104 | 0, // SharedSlot :1;\r | |
105 | 0, // PcCard16Supported :1;\r | |
106 | 0, // CardBusSupported :1;\r | |
107 | 0, // ZoomVideoSupported :1;\r | |
108 | 0, // ModemRingResumeSupported:1;\r | |
109 | 1, // PmeSignalSupported :1;\r | |
110 | 1, // HotPlugDevicesSupported :1;\r | |
111 | 1, // SmbusSignalSupported :1;\r | |
112 | 0 // Reserved :21;\r | |
113 | },\r | |
114 | {0} // SlotDevicePath\r | |
115 | };\r | |
116 | \r | |
117 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot5) = {\r | |
118 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT5), // SlotDesignation\r | |
119 | EfiSlotTypePciExpress, // SlotType\r | |
120 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
121 | EfiSlotUsageAvailable, // SlotUsage\r | |
122 | EfiSlotLengthLong , // SlotLength\r | |
123 | 3, // SlotId\r | |
124 | { // SlotCharacteristics\r | |
125 | 0, // CharacteristicsUnknown :1;\r | |
126 | 0, // Provides50Volts :1;\r | |
127 | 1, // Provides33Volts :1;\r | |
128 | 0, // SharedSlot :1;\r | |
129 | 0, // PcCard16Supported :1;\r | |
130 | 0, // CardBusSupported :1;\r | |
131 | 0, // ZoomVideoSupported :1;\r | |
132 | 0, // ModemRingResumeSupported:1;\r | |
133 | 1, // PmeSignalSupported :1;\r | |
134 | 1, // HotPlugDevicesSupported :1;\r | |
135 | 1, // SmbusSignalSupported :1;\r | |
136 | 0 // Reserved :21;\r | |
137 | },\r | |
138 | {0} // SlotDevicePath\r | |
139 | };\r | |
140 | \r | |
141 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot6) = {\r | |
142 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT6), // SlotDesignation\r | |
143 | EfiSlotTypePciExpress, // SlotType\r | |
144 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
145 | EfiSlotUsageAvailable, // SlotUsage\r | |
146 | EfiSlotLengthLong , // SlotLength\r | |
147 | 3, // SlotId\r | |
148 | { // SlotCharacteristics\r | |
149 | 0, // CharacteristicsUnknown :1;\r | |
150 | 0, // Provides50Volts :1;\r | |
151 | 1, // Provides33Volts :1;\r | |
152 | 0, // SharedSlot :1;\r | |
153 | 0, // PcCard16Supported :1;\r | |
154 | 0, // CardBusSupported :1;\r | |
155 | 0, // ZoomVideoSupported :1;\r | |
156 | 0, // ModemRingResumeSupported:1;\r | |
157 | 1, // PmeSignalSupported :1;\r | |
158 | 1, // HotPlugDevicesSupported :1;\r | |
159 | 1, // SmbusSignalSupported :1;\r | |
160 | 0 // Reserved :21;\r | |
161 | },\r | |
162 | {0} // SlotDevicePath\r | |
163 | };\r | |
164 | \r | |
165 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot7) = {\r | |
166 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT7), // SlotDesignation\r | |
167 | EfiSlotTypePciExpress, // SlotType\r | |
168 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
169 | EfiSlotUsageAvailable, // SlotUsage\r | |
170 | EfiSlotLengthLong , // SlotLength\r | |
171 | 3, // SlotId\r | |
172 | { // SlotCharacteristics\r | |
173 | 0, // CharacteristicsUnknown :1;\r | |
174 | 0, // Provides50Volts :1;\r | |
175 | 1, // Provides33Volts :1;\r | |
176 | 0, // SharedSlot :1;\r | |
177 | 0, // PcCard16Supported :1;\r | |
178 | 0, // CardBusSupported :1;\r | |
179 | 0, // ZoomVideoSupported :1;\r | |
180 | 0, // ModemRingResumeSupported:1;\r | |
181 | 1, // PmeSignalSupported :1;\r | |
182 | 1, // HotPlugDevicesSupported :1;\r | |
183 | 1, // SmbusSignalSupported :1;\r | |
184 | 0 // Reserved :21;\r | |
185 | },\r | |
186 | {0} // SlotDevicePath\r | |
187 | };\r | |
188 | \r | |
189 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot8) = {\r | |
190 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT8), // SlotDesignation\r | |
191 | EfiSlotTypePciExpress, // SlotType\r | |
192 | EfiSlotDataBusWidth32Bit, // SlotDataBusWidth\r | |
193 | EfiSlotUsageAvailable, // SlotUsage\r | |
194 | EfiSlotLengthLong , // SlotLength\r | |
195 | 3, // SlotId\r | |
196 | { // SlotCharacteristics\r | |
197 | 0, // CharacteristicsUnknown :1;\r | |
198 | 0, // Provides50Volts :1;\r | |
199 | 1, // Provides33Volts :1;\r | |
200 | 0, // SharedSlot :1;\r | |
201 | 0, // PcCard16Supported :1;\r | |
202 | 0, // CardBusSupported :1;\r | |
203 | 0, // ZoomVideoSupported :1;\r | |
204 | 0, // ModemRingResumeSupported:1;\r | |
205 | 1, // PmeSignalSupported :1;\r | |
206 | 1, // HotPlugDevicesSupported :1;\r | |
207 | 1, // SmbusSignalSupported :1;\r | |
208 | 0 // Reserved :21;\r | |
209 | },\r | |
210 | {0} // SlotDevicePath\r | |
211 | };\r | |
212 | \r | |
213 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot9) = {\r | |
214 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT9), // SlotDesignation\r | |
215 | EfiSlotTypeUnknown, // SlotType\r | |
216 | EfiSlotDataBusWidthUnknown, // SlotDataBusWidth\r | |
217 | EfiSlotUsageUnknown, // SlotUsage\r | |
218 | EfiSlotLengthUnknown , // SlotLength\r | |
219 | 0, // SlotId\r | |
220 | { // SlotCharacteristics\r | |
221 | 0, // CharacteristicsUnknown :1;\r | |
222 | 0, // Provides50Volts :1;\r | |
223 | 1, // Provides33Volts :1;\r | |
224 | 0, // SharedSlot :1;\r | |
225 | 0, // PcCard16Supported :1;\r | |
226 | 0, // CardBusSupported :1;\r | |
227 | 0, // ZoomVideoSupported :1;\r | |
228 | 0, // ModemRingResumeSupported:1;\r | |
229 | 1, // PmeSignalSupported :1;\r | |
230 | 1, // HotPlugDevicesSupported :1;\r | |
231 | 1, // SmbusSignalSupported :1;\r | |
232 | 0 // Reserved :21;\r | |
233 | },\r | |
234 | {0} // SlotDevicePath\r | |
235 | };\r | |
236 | \r | |
237 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot10) = {\r | |
238 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT10), // SlotDesignation\r | |
239 | EfiSlotTypeUnknown, // SlotType\r | |
240 | EfiSlotDataBusWidthUnknown, // SlotDataBusWidth\r | |
241 | EfiSlotUsageUnknown, // SlotUsage\r | |
242 | EfiSlotLengthUnknown , // SlotLength\r | |
243 | 0, // SlotId\r | |
244 | { // SlotCharacteristics\r | |
245 | 0, // CharacteristicsUnknown :1;\r | |
246 | 0, // Provides50Volts :1;\r | |
247 | 1, // Provides33Volts :1;\r | |
248 | 0, // SharedSlot :1;\r | |
249 | 0, // PcCard16Supported :1;\r | |
250 | 0, // CardBusSupported :1;\r | |
251 | 0, // ZoomVideoSupported :1;\r | |
252 | 0, // ModemRingResumeSupported:1;\r | |
253 | 1, // PmeSignalSupported :1;\r | |
254 | 1, // HotPlugDevicesSupported :1;\r | |
255 | 1, // SmbusSignalSupported :1;\r | |
256 | 0 // Reserved :21;\r | |
257 | },\r | |
258 | {0} // SlotDevicePath\r | |
259 | };\r | |
260 | \r | |
261 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot11) = {\r | |
262 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT11), // SlotDesignation\r | |
263 | EfiSlotTypeUnknown, // SlotType\r | |
264 | EfiSlotDataBusWidthUnknown, // SlotDataBusWidth\r | |
265 | EfiSlotUsageUnknown, // SlotUsage\r | |
266 | EfiSlotLengthUnknown , // SlotLength\r | |
267 | 0, // SlotId\r | |
268 | { // SlotCharacteristics\r | |
269 | 0, // CharacteristicsUnknown :1;\r | |
270 | 0, // Provides50Volts :1;\r | |
271 | 1, // Provides33Volts :1;\r | |
272 | 0, // SharedSlot :1;\r | |
273 | 0, // PcCard16Supported :1;\r | |
274 | 0, // CardBusSupported :1;\r | |
275 | 0, // ZoomVideoSupported :1;\r | |
276 | 0, // ModemRingResumeSupported:1;\r | |
277 | 1, // PmeSignalSupported :1;\r | |
278 | 1, // HotPlugDevicesSupported :1;\r | |
279 | 1, // SmbusSignalSupported :1;\r | |
280 | 0 // Reserved :21;\r | |
281 | },\r | |
282 | {0} // SlotDevicePath\r | |
283 | };\r | |
284 | \r | |
285 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot12) = {\r | |
286 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT12), // SlotDesignation\r | |
287 | EfiSlotTypeUnknown, // SlotType\r | |
288 | EfiSlotDataBusWidthUnknown, // SlotDataBusWidth\r | |
289 | EfiSlotUsageUnknown, // SlotUsage\r | |
290 | EfiSlotLengthUnknown , // SlotLength\r | |
291 | 0, // SlotId\r | |
292 | { // SlotCharacteristics\r | |
293 | 0, // CharacteristicsUnknown :1;\r | |
294 | 0, // Provides50Volts :1;\r | |
295 | 1, // Provides33Volts :1;\r | |
296 | 0, // SharedSlot :1;\r | |
297 | 0, // PcCard16Supported :1;\r | |
298 | 0, // CardBusSupported :1;\r | |
299 | 0, // ZoomVideoSupported :1;\r | |
300 | 0, // ModemRingResumeSupported:1;\r | |
301 | 1, // PmeSignalSupported :1;\r | |
302 | 1, // HotPlugDevicesSupported :1;\r | |
303 | 1, // SmbusSignalSupported :1;\r | |
304 | 0 // Reserved :21;\r | |
305 | },\r | |
306 | {0} // SlotDevicePath\r | |
307 | };\r | |
308 | \r | |
309 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot13) = {\r | |
310 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT13), // SlotDesignation\r | |
311 | EfiSlotTypeUnknown, // SlotType\r | |
312 | EfiSlotDataBusWidthUnknown, // SlotDataBusWidth\r | |
313 | EfiSlotUsageUnknown, // SlotUsage\r | |
314 | EfiSlotLengthUnknown , // SlotLength\r | |
315 | 0, // SlotId\r | |
316 | { // SlotCharacteristics\r | |
317 | 0, // CharacteristicsUnknown :1;\r | |
318 | 0, // Provides50Volts :1;\r | |
319 | 1, // Provides33Volts :1;\r | |
320 | 0, // SharedSlot :1;\r | |
321 | 0, // PcCard16Supported :1;\r | |
322 | 0, // CardBusSupported :1;\r | |
323 | 0, // ZoomVideoSupported :1;\r | |
324 | 0, // ModemRingResumeSupported:1;\r | |
325 | 1, // PmeSignalSupported :1;\r | |
326 | 1, // HotPlugDevicesSupported :1;\r | |
327 | 1, // SmbusSignalSupported :1;\r | |
328 | 0 // Reserved :21;\r | |
329 | },\r | |
330 | {0} // SlotDevicePath\r | |
331 | };\r | |
332 | \r | |
333 | MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION, MiscSystemSlot14) = {\r | |
334 | STRING_TOKEN(STR_MISC_SYSTEM_SLOT14), // SlotDesignation\r | |
335 | EfiSlotTypeUnknown, // SlotType\r | |
336 | EfiSlotDataBusWidthUnknown, // SlotDataBusWidth\r | |
337 | EfiSlotUsageUnknown, // SlotUsage\r | |
338 | EfiSlotLengthUnknown , // SlotLength\r | |
339 | 0, // SlotId\r | |
340 | { // SlotCharacteristics\r | |
341 | 0, // CharacteristicsUnknown :1;\r | |
342 | 0, // Provides50Volts :1;\r | |
343 | 1, // Provides33Volts :1;\r | |
344 | 0, // SharedSlot :1;\r | |
345 | 0, // PcCard16Supported :1;\r | |
346 | 0, // CardBusSupported :1;\r | |
347 | 0, // ZoomVideoSupported :1;\r | |
348 | 0, // ModemRingResumeSupported:1;\r | |
349 | 1, // PmeSignalSupported :1;\r | |
350 | 1, // HotPlugDevicesSupported :1;\r | |
351 | 1, // SmbusSignalSupported :1;\r | |
352 | 0 // Reserved :21;\r | |
353 | },\r | |
354 | {0} // SlotDevicePath\r | |
355 | };\r | |
356 | \r | |
357 | \r |