Commit | Line | Data |
---|---|---|
a8357b0c BM |
1 | /****************************************************************************** |
2 | * | |
5cf4d733 | 3 | * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec) |
a8357b0c BM |
4 | * |
5 | *****************************************************************************/ | |
6 | ||
7 | /* | |
75e7386b | 8 | * Copyright (C) 2000 - 2012, Intel Corp. |
a8357b0c BM |
9 | * All rights reserved. |
10 | * | |
11 | * Redistribution and use in source and binary forms, with or without | |
12 | * modification, are permitted provided that the following conditions | |
13 | * are met: | |
14 | * 1. Redistributions of source code must retain the above copyright | |
15 | * notice, this list of conditions, and the following disclaimer, | |
16 | * without modification. | |
17 | * 2. Redistributions in binary form must reproduce at minimum a disclaimer | |
18 | * substantially similar to the "NO WARRANTY" disclaimer below | |
19 | * ("Disclaimer") and any redistribution must be conditioned upon | |
20 | * including a substantially similar Disclaimer requirement for further | |
21 | * binary redistribution. | |
22 | * 3. Neither the names of the above-listed copyright holders nor the names | |
23 | * of any contributors may be used to endorse or promote products derived | |
24 | * from this software without specific prior written permission. | |
25 | * | |
26 | * Alternatively, this software may be distributed under the terms of the | |
27 | * GNU General Public License ("GPL") version 2 as published by the Free | |
28 | * Software Foundation. | |
29 | * | |
30 | * NO WARRANTY | |
31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
32 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
33 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR | |
34 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
35 | * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
39 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |
40 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
41 | * POSSIBILITY OF SUCH DAMAGES. | |
42 | */ | |
43 | ||
b24aad44 BM |
44 | #ifndef __ACTBL2_H__ |
45 | #define __ACTBL2_H__ | |
46 | ||
47 | /******************************************************************************* | |
48 | * | |
49 | * Additional ACPI Tables (2) | |
50 | * | |
51 | * These tables are not consumed directly by the ACPICA subsystem, but are | |
52 | * included here to support device drivers and the AML disassembler. | |
53 | * | |
54 | * The tables in this file are defined by third-party specifications, and are | |
55 | * not defined directly by the ACPI specification itself. | |
56 | * | |
57 | ******************************************************************************/ | |
58 | ||
59 | /* | |
6e2d5ebd BM |
60 | * Values for description table header signatures for tables defined in this |
61 | * file. Useful because they make it more difficult to inadvertently type in | |
62 | * the wrong signature. | |
b24aad44 BM |
63 | */ |
64 | #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ | |
65 | #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ | |
4e2f9c27 BM |
66 | #define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */ |
67 | #define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */ | |
b24aad44 BM |
68 | #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ |
69 | #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ | |
70 | #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ | |
ba494bee | 71 | #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */ |
6e2d5ebd | 72 | #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */ |
b24aad44 | 73 | #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ |
0e264f0b | 74 | #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */ |
b24aad44 BM |
75 | #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */ |
76 | #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */ | |
77 | #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */ | |
78 | #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */ | |
79 | #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ | |
6e2d5ebd | 80 | #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */ |
b24aad44 | 81 | #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ |
9d8b5e7b | 82 | #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */ |
b24aad44 BM |
83 | #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ |
84 | ||
4461cf54 BM |
85 | #ifdef ACPI_UNDEFINED_TABLES |
86 | /* | |
87 | * These tables have been seen in the field, but no definition has been found | |
88 | */ | |
89 | #define ACPI_SIG_ATKG "ATKG" | |
90 | #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */ | |
91 | #define ACPI_SIG_IEIT "IEIT" | |
92 | #endif | |
93 | ||
b24aad44 BM |
94 | /* |
95 | * All tables must be byte-packed to match the ACPI specification, since | |
96 | * the tables are provided by the system BIOS. | |
97 | */ | |
98 | #pragma pack(1) | |
99 | ||
100 | /* | |
101 | * Note about bitfields: The u8 type is used for bitfields in ACPI tables. | |
102 | * This is the only type that is even remotely portable. Anything else is not | |
103 | * portable, so do not use any other bitfield types. | |
104 | */ | |
105 | ||
106 | /******************************************************************************* | |
107 | * | |
108 | * ASF - Alert Standard Format table (Signature "ASF!") | |
6e2d5ebd | 109 | * Revision 0x10 |
b24aad44 BM |
110 | * |
111 | * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003 | |
112 | * | |
113 | ******************************************************************************/ | |
114 | ||
115 | struct acpi_table_asf { | |
116 | struct acpi_table_header header; /* Common ACPI table header */ | |
117 | }; | |
118 | ||
119 | /* ASF subtable header */ | |
120 | ||
121 | struct acpi_asf_header { | |
122 | u8 type; | |
123 | u8 reserved; | |
124 | u16 length; | |
125 | }; | |
126 | ||
127 | /* Values for Type field above */ | |
128 | ||
129 | enum acpi_asf_type { | |
130 | ACPI_ASF_TYPE_INFO = 0, | |
131 | ACPI_ASF_TYPE_ALERT = 1, | |
132 | ACPI_ASF_TYPE_CONTROL = 2, | |
133 | ACPI_ASF_TYPE_BOOT = 3, | |
134 | ACPI_ASF_TYPE_ADDRESS = 4, | |
135 | ACPI_ASF_TYPE_RESERVED = 5 | |
136 | }; | |
137 | ||
138 | /* | |
139 | * ASF subtables | |
140 | */ | |
141 | ||
142 | /* 0: ASF Information */ | |
143 | ||
144 | struct acpi_asf_info { | |
145 | struct acpi_asf_header header; | |
146 | u8 min_reset_value; | |
147 | u8 min_poll_interval; | |
148 | u16 system_id; | |
149 | u32 mfg_id; | |
150 | u8 flags; | |
151 | u8 reserved2[3]; | |
152 | }; | |
153 | ||
6e2d5ebd BM |
154 | /* Masks for Flags field above */ |
155 | ||
156 | #define ACPI_ASF_SMBUS_PROTOCOLS (1) | |
157 | ||
b24aad44 BM |
158 | /* 1: ASF Alerts */ |
159 | ||
160 | struct acpi_asf_alert { | |
161 | struct acpi_asf_header header; | |
162 | u8 assert_mask; | |
163 | u8 deassert_mask; | |
164 | u8 alerts; | |
165 | u8 data_length; | |
166 | }; | |
167 | ||
168 | struct acpi_asf_alert_data { | |
169 | u8 address; | |
170 | u8 command; | |
171 | u8 mask; | |
172 | u8 value; | |
173 | u8 sensor_type; | |
174 | u8 type; | |
175 | u8 offset; | |
176 | u8 source_type; | |
177 | u8 severity; | |
178 | u8 sensor_number; | |
179 | u8 entity; | |
180 | u8 instance; | |
181 | }; | |
182 | ||
183 | /* 2: ASF Remote Control */ | |
184 | ||
185 | struct acpi_asf_remote { | |
186 | struct acpi_asf_header header; | |
187 | u8 controls; | |
188 | u8 data_length; | |
189 | u16 reserved2; | |
190 | }; | |
191 | ||
192 | struct acpi_asf_control_data { | |
193 | u8 function; | |
194 | u8 address; | |
195 | u8 command; | |
196 | u8 value; | |
197 | }; | |
198 | ||
199 | /* 3: ASF RMCP Boot Options */ | |
200 | ||
201 | struct acpi_asf_rmcp { | |
202 | struct acpi_asf_header header; | |
203 | u8 capabilities[7]; | |
204 | u8 completion_code; | |
205 | u32 enterprise_id; | |
206 | u8 command; | |
207 | u16 parameter; | |
208 | u16 boot_options; | |
209 | u16 oem_parameters; | |
210 | }; | |
211 | ||
212 | /* 4: ASF Address */ | |
213 | ||
214 | struct acpi_asf_address { | |
215 | struct acpi_asf_header header; | |
216 | u8 eprom_address; | |
217 | u8 devices; | |
218 | }; | |
219 | ||
220 | /******************************************************************************* | |
221 | * | |
222 | * BOOT - Simple Boot Flag Table | |
6e2d5ebd BM |
223 | * Version 1 |
224 | * | |
225 | * Conforms to the "Simple Boot Flag Specification", Version 2.1 | |
b24aad44 BM |
226 | * |
227 | ******************************************************************************/ | |
228 | ||
229 | struct acpi_table_boot { | |
230 | struct acpi_table_header header; /* Common ACPI table header */ | |
231 | u8 cmos_index; /* Index in CMOS RAM for the boot register */ | |
232 | u8 reserved[3]; | |
233 | }; | |
234 | ||
4e2f9c27 BM |
235 | /******************************************************************************* |
236 | * | |
237 | * CSRT - Core System Resource Table | |
238 | * Version 0 | |
239 | * | |
240 | * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011 | |
241 | * | |
242 | ******************************************************************************/ | |
243 | ||
244 | struct acpi_table_csrt { | |
245 | struct acpi_table_header header; /* Common ACPI table header */ | |
246 | }; | |
247 | ||
248 | /* Resource Group subtable */ | |
249 | ||
250 | struct acpi_csrt_group { | |
251 | u32 length; | |
252 | u32 vendor_id; | |
253 | u32 subvendor_id; | |
254 | u16 device_id; | |
255 | u16 subdevice_id; | |
256 | u16 revision; | |
257 | u16 reserved; | |
258 | u32 info_length; | |
259 | ||
260 | /* Shared data (length = info_length) immediately follows */ | |
261 | }; | |
262 | ||
263 | /* Resource Descriptor subtable */ | |
264 | ||
265 | struct acpi_csrt_descriptor { | |
266 | u32 length; | |
267 | u16 type; | |
268 | u16 subtype; | |
269 | u32 uid; | |
270 | ||
271 | /* Resource-specific information immediately follows */ | |
272 | }; | |
273 | ||
274 | /* Resource Types */ | |
275 | ||
276 | #define ACPI_CSRT_TYPE_INTERRUPT 0x0001 | |
277 | #define ACPI_CSRT_TYPE_TIMER 0x0002 | |
278 | #define ACPI_CSRT_TYPE_DMA 0x0003 | |
279 | ||
280 | /* Resource Subtypes */ | |
281 | ||
282 | #define ACPI_CSRT_XRUPT_LINE 0x0000 | |
283 | #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001 | |
284 | #define ACPI_CSRT_TIMER 0x0000 | |
285 | #define ACPI_CSRT_DMA_CHANNEL 0x0000 | |
286 | #define ACPI_CSRT_DMA_CONTROLLER 0x0001 | |
287 | ||
288 | /******************************************************************************* | |
289 | * | |
290 | * DBG2 - Debug Port Table 2 | |
291 | * Version 0 (Both main table and subtables) | |
292 | * | |
293 | * Conforms to "Microsoft Debug Port Table 2 (DBG2)", May 22 2012. | |
294 | * | |
295 | ******************************************************************************/ | |
296 | ||
297 | struct acpi_table_dbg2 { | |
298 | struct acpi_table_header header; /* Common ACPI table header */ | |
299 | u32 info_offset; | |
300 | u32 info_count; | |
301 | }; | |
302 | ||
303 | /* Debug Device Information Subtable */ | |
304 | ||
305 | struct acpi_dbg2_device { | |
306 | u8 revision; | |
307 | u16 length; | |
308 | u8 register_count; /* Number of base_address registers */ | |
309 | u16 namepath_length; | |
310 | u16 namepath_offset; | |
311 | u16 oem_data_length; | |
312 | u16 oem_data_offset; | |
313 | u16 port_type; | |
314 | u16 port_subtype; | |
315 | u16 reserved; | |
316 | u16 base_address_offset; | |
317 | u16 address_size_offset; | |
318 | /* | |
319 | * Data that follows: | |
320 | * base_address (required) - Each in 12-byte Generic Address Structure format. | |
321 | * address_size (required) - Array of u32 sizes corresponding to each base_address register. | |
322 | * Namepath (required) - Null terminated string. Single dot if not supported. | |
323 | * oem_data (optional) - Length is oem_data_length. | |
324 | */ | |
325 | }; | |
326 | ||
327 | /* Types for port_type field above */ | |
328 | ||
329 | #define ACPI_DBG2_SERIAL_PORT 0x8000 | |
330 | #define ACPI_DBG2_1394_PORT 0x8001 | |
331 | #define ACPI_DBG2_USB_PORT 0x8002 | |
332 | #define ACPI_DBG2_NET_PORT 0x8003 | |
333 | ||
334 | /* Subtypes for port_subtype field above */ | |
335 | ||
336 | #define ACPI_DBG2_16550_COMPATIBLE 0x0000 | |
337 | #define ACPI_DBG2_16550_SUBSET 0x0001 | |
338 | ||
339 | #define ACPI_DBG2_1394_STANDARD 0x0000 | |
340 | ||
341 | #define ACPI_DBG2_USB_XHCI 0x0000 | |
342 | #define ACPI_DBG2_USB_EHCI 0x0001 | |
343 | ||
b24aad44 BM |
344 | /******************************************************************************* |
345 | * | |
346 | * DBGP - Debug Port table | |
6e2d5ebd BM |
347 | * Version 1 |
348 | * | |
349 | * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000 | |
b24aad44 BM |
350 | * |
351 | ******************************************************************************/ | |
352 | ||
353 | struct acpi_table_dbgp { | |
354 | struct acpi_table_header header; /* Common ACPI table header */ | |
355 | u8 type; /* 0=full 16550, 1=subset of 16550 */ | |
356 | u8 reserved[3]; | |
357 | struct acpi_generic_address debug_port; | |
358 | }; | |
359 | ||
360 | /******************************************************************************* | |
361 | * | |
362 | * DMAR - DMA Remapping table | |
6e2d5ebd BM |
363 | * Version 1 |
364 | * | |
365 | * Conforms to "Intel Virtualization Technology for Directed I/O", | |
366 | * Version 1.2, Sept. 2008 | |
b24aad44 BM |
367 | * |
368 | ******************************************************************************/ | |
369 | ||
370 | struct acpi_table_dmar { | |
371 | struct acpi_table_header header; /* Common ACPI table header */ | |
372 | u8 width; /* Host Address Width */ | |
373 | u8 flags; | |
374 | u8 reserved[10]; | |
375 | }; | |
376 | ||
6e2d5ebd | 377 | /* Masks for Flags field above */ |
b24aad44 BM |
378 | |
379 | #define ACPI_DMAR_INTR_REMAP (1) | |
380 | ||
381 | /* DMAR subtable header */ | |
382 | ||
383 | struct acpi_dmar_header { | |
384 | u16 type; | |
385 | u16 length; | |
386 | }; | |
387 | ||
388 | /* Values for subtable type in struct acpi_dmar_header */ | |
389 | ||
390 | enum acpi_dmar_type { | |
391 | ACPI_DMAR_TYPE_HARDWARE_UNIT = 0, | |
392 | ACPI_DMAR_TYPE_RESERVED_MEMORY = 1, | |
393 | ACPI_DMAR_TYPE_ATSR = 2, | |
6e2d5ebd BM |
394 | ACPI_DMAR_HARDWARE_AFFINITY = 3, |
395 | ACPI_DMAR_TYPE_RESERVED = 4 /* 4 and greater are reserved */ | |
b24aad44 BM |
396 | }; |
397 | ||
6e2d5ebd BM |
398 | /* DMAR Device Scope structure */ |
399 | ||
b24aad44 BM |
400 | struct acpi_dmar_device_scope { |
401 | u8 entry_type; | |
402 | u8 length; | |
403 | u16 reserved; | |
404 | u8 enumeration_id; | |
405 | u8 bus; | |
406 | }; | |
407 | ||
408 | /* Values for entry_type in struct acpi_dmar_device_scope */ | |
409 | ||
410 | enum acpi_dmar_scope_type { | |
411 | ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0, | |
412 | ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1, | |
413 | ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2, | |
414 | ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3, | |
415 | ACPI_DMAR_SCOPE_TYPE_HPET = 4, | |
416 | ACPI_DMAR_SCOPE_TYPE_RESERVED = 5 /* 5 and greater are reserved */ | |
417 | }; | |
418 | ||
419 | struct acpi_dmar_pci_path { | |
420 | u8 dev; | |
421 | u8 fn; | |
422 | }; | |
423 | ||
424 | /* | |
425 | * DMAR Sub-tables, correspond to Type in struct acpi_dmar_header | |
426 | */ | |
427 | ||
428 | /* 0: Hardware Unit Definition */ | |
429 | ||
430 | struct acpi_dmar_hardware_unit { | |
431 | struct acpi_dmar_header header; | |
432 | u8 flags; | |
433 | u8 reserved; | |
434 | u16 segment; | |
435 | u64 address; /* Register Base Address */ | |
436 | }; | |
437 | ||
6e2d5ebd | 438 | /* Masks for Flags field above */ |
b24aad44 BM |
439 | |
440 | #define ACPI_DMAR_INCLUDE_ALL (1) | |
441 | ||
442 | /* 1: Reserved Memory Defininition */ | |
443 | ||
444 | struct acpi_dmar_reserved_memory { | |
445 | struct acpi_dmar_header header; | |
446 | u16 reserved; | |
447 | u16 segment; | |
ba494bee BM |
448 | u64 base_address; /* 4K aligned base address */ |
449 | u64 end_address; /* 4K aligned limit address */ | |
b24aad44 BM |
450 | }; |
451 | ||
6e2d5ebd | 452 | /* Masks for Flags field above */ |
b24aad44 BM |
453 | |
454 | #define ACPI_DMAR_ALLOW_ALL (1) | |
455 | ||
456 | /* 2: Root Port ATS Capability Reporting Structure */ | |
457 | ||
458 | struct acpi_dmar_atsr { | |
459 | struct acpi_dmar_header header; | |
460 | u8 flags; | |
461 | u8 reserved; | |
462 | u16 segment; | |
463 | }; | |
464 | ||
6e2d5ebd | 465 | /* Masks for Flags field above */ |
b24aad44 BM |
466 | |
467 | #define ACPI_DMAR_ALL_PORTS (1) | |
468 | ||
6e2d5ebd BM |
469 | /* 3: Remapping Hardware Static Affinity Structure */ |
470 | ||
471 | struct acpi_dmar_rhsa { | |
472 | struct acpi_dmar_header header; | |
473 | u32 reserved; | |
474 | u64 base_address; | |
475 | u32 proximity_domain; | |
476 | }; | |
477 | ||
b24aad44 BM |
478 | /******************************************************************************* |
479 | * | |
480 | * HPET - High Precision Event Timer table | |
6e2d5ebd BM |
481 | * Version 1 |
482 | * | |
483 | * Conforms to "IA-PC HPET (High Precision Event Timers) Specification", | |
484 | * Version 1.0a, October 2004 | |
b24aad44 BM |
485 | * |
486 | ******************************************************************************/ | |
487 | ||
488 | struct acpi_table_hpet { | |
489 | struct acpi_table_header header; /* Common ACPI table header */ | |
490 | u32 id; /* Hardware ID of event timer block */ | |
491 | struct acpi_generic_address address; /* Address of event timer block */ | |
492 | u8 sequence; /* HPET sequence number */ | |
493 | u16 minimum_tick; /* Main counter min tick, periodic mode */ | |
494 | u8 flags; | |
495 | }; | |
496 | ||
6e2d5ebd | 497 | /* Masks for Flags field above */ |
b24aad44 | 498 | |
6e2d5ebd | 499 | #define ACPI_HPET_PAGE_PROTECT_MASK (3) |
b24aad44 | 500 | |
6e2d5ebd BM |
501 | /* Values for Page Protect flags */ |
502 | ||
503 | enum acpi_hpet_page_protect { | |
504 | ACPI_HPET_NO_PAGE_PROTECT = 0, | |
505 | ACPI_HPET_PAGE_PROTECT4 = 1, | |
506 | ACPI_HPET_PAGE_PROTECT64 = 2 | |
507 | }; | |
b24aad44 BM |
508 | |
509 | /******************************************************************************* | |
510 | * | |
511 | * IBFT - Boot Firmware Table | |
6e2d5ebd BM |
512 | * Version 1 |
513 | * | |
514 | * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b | |
515 | * Specification", Version 1.01, March 1, 2007 | |
516 | * | |
517 | * Note: It appears that this table is not intended to appear in the RSDT/XSDT. | |
518 | * Therefore, it is not currently supported by the disassembler. | |
b24aad44 BM |
519 | * |
520 | ******************************************************************************/ | |
521 | ||
522 | struct acpi_table_ibft { | |
523 | struct acpi_table_header header; /* Common ACPI table header */ | |
524 | u8 reserved[12]; | |
525 | }; | |
526 | ||
527 | /* IBFT common subtable header */ | |
528 | ||
529 | struct acpi_ibft_header { | |
530 | u8 type; | |
531 | u8 version; | |
532 | u16 length; | |
533 | u8 index; | |
534 | u8 flags; | |
535 | }; | |
536 | ||
537 | /* Values for Type field above */ | |
538 | ||
539 | enum acpi_ibft_type { | |
540 | ACPI_IBFT_TYPE_NOT_USED = 0, | |
541 | ACPI_IBFT_TYPE_CONTROL = 1, | |
542 | ACPI_IBFT_TYPE_INITIATOR = 2, | |
543 | ACPI_IBFT_TYPE_NIC = 3, | |
544 | ACPI_IBFT_TYPE_TARGET = 4, | |
545 | ACPI_IBFT_TYPE_EXTENSIONS = 5, | |
546 | ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */ | |
547 | }; | |
548 | ||
549 | /* IBFT subtables */ | |
550 | ||
551 | struct acpi_ibft_control { | |
552 | struct acpi_ibft_header header; | |
553 | u16 extensions; | |
554 | u16 initiator_offset; | |
555 | u16 nic0_offset; | |
556 | u16 target0_offset; | |
557 | u16 nic1_offset; | |
558 | u16 target1_offset; | |
559 | }; | |
560 | ||
561 | struct acpi_ibft_initiator { | |
562 | struct acpi_ibft_header header; | |
563 | u8 sns_server[16]; | |
564 | u8 slp_server[16]; | |
565 | u8 primary_server[16]; | |
566 | u8 secondary_server[16]; | |
567 | u16 name_length; | |
568 | u16 name_offset; | |
569 | }; | |
570 | ||
571 | struct acpi_ibft_nic { | |
572 | struct acpi_ibft_header header; | |
573 | u8 ip_address[16]; | |
574 | u8 subnet_mask_prefix; | |
575 | u8 origin; | |
576 | u8 gateway[16]; | |
577 | u8 primary_dns[16]; | |
578 | u8 secondary_dns[16]; | |
579 | u8 dhcp[16]; | |
580 | u16 vlan; | |
581 | u8 mac_address[6]; | |
582 | u16 pci_address; | |
583 | u16 name_length; | |
584 | u16 name_offset; | |
585 | }; | |
586 | ||
587 | struct acpi_ibft_target { | |
588 | struct acpi_ibft_header header; | |
589 | u8 target_ip_address[16]; | |
590 | u16 target_ip_socket; | |
591 | u8 target_boot_lun[8]; | |
592 | u8 chap_type; | |
593 | u8 nic_association; | |
594 | u16 target_name_length; | |
595 | u16 target_name_offset; | |
596 | u16 chap_name_length; | |
597 | u16 chap_name_offset; | |
598 | u16 chap_secret_length; | |
599 | u16 chap_secret_offset; | |
600 | u16 reverse_chap_name_length; | |
601 | u16 reverse_chap_name_offset; | |
602 | u16 reverse_chap_secret_length; | |
603 | u16 reverse_chap_secret_offset; | |
604 | }; | |
605 | ||
6e2d5ebd BM |
606 | /******************************************************************************* |
607 | * | |
608 | * IVRS - I/O Virtualization Reporting Structure | |
609 | * Version 1 | |
610 | * | |
611 | * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification", | |
612 | * Revision 1.26, February 2009. | |
613 | * | |
614 | ******************************************************************************/ | |
615 | ||
616 | struct acpi_table_ivrs { | |
617 | struct acpi_table_header header; /* Common ACPI table header */ | |
618 | u32 info; /* Common virtualization info */ | |
619 | u64 reserved; | |
620 | }; | |
621 | ||
622 | /* Values for Info field above */ | |
623 | ||
624 | #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */ | |
625 | #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */ | |
626 | #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */ | |
627 | ||
628 | /* IVRS subtable header */ | |
629 | ||
630 | struct acpi_ivrs_header { | |
631 | u8 type; /* Subtable type */ | |
632 | u8 flags; | |
633 | u16 length; /* Subtable length */ | |
634 | u16 device_id; /* ID of IOMMU */ | |
635 | }; | |
636 | ||
637 | /* Values for subtable Type above */ | |
638 | ||
639 | enum acpi_ivrs_type { | |
640 | ACPI_IVRS_TYPE_HARDWARE = 0x10, | |
641 | ACPI_IVRS_TYPE_MEMORY1 = 0x20, | |
642 | ACPI_IVRS_TYPE_MEMORY2 = 0x21, | |
643 | ACPI_IVRS_TYPE_MEMORY3 = 0x22 | |
644 | }; | |
645 | ||
646 | /* Masks for Flags field above for IVHD subtable */ | |
647 | ||
648 | #define ACPI_IVHD_TT_ENABLE (1) | |
649 | #define ACPI_IVHD_PASS_PW (1<<1) | |
650 | #define ACPI_IVHD_RES_PASS_PW (1<<2) | |
651 | #define ACPI_IVHD_ISOC (1<<3) | |
652 | #define ACPI_IVHD_IOTLB (1<<4) | |
653 | ||
654 | /* Masks for Flags field above for IVMD subtable */ | |
655 | ||
656 | #define ACPI_IVMD_UNITY (1) | |
657 | #define ACPI_IVMD_READ (1<<1) | |
658 | #define ACPI_IVMD_WRITE (1<<2) | |
659 | #define ACPI_IVMD_EXCLUSION_RANGE (1<<3) | |
660 | ||
661 | /* | |
662 | * IVRS subtables, correspond to Type in struct acpi_ivrs_header | |
663 | */ | |
664 | ||
665 | /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */ | |
666 | ||
667 | struct acpi_ivrs_hardware { | |
668 | struct acpi_ivrs_header header; | |
669 | u16 capability_offset; /* Offset for IOMMU control fields */ | |
670 | u64 base_address; /* IOMMU control registers */ | |
671 | u16 pci_segment_group; | |
672 | u16 info; /* MSI number and unit ID */ | |
673 | u32 reserved; | |
674 | }; | |
675 | ||
676 | /* Masks for Info field above */ | |
677 | ||
678 | #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */ | |
ba494bee | 679 | #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, unit_ID */ |
6e2d5ebd BM |
680 | |
681 | /* | |
682 | * Device Entries for IVHD subtable, appear after struct acpi_ivrs_hardware structure. | |
683 | * Upper two bits of the Type field are the (encoded) length of the structure. | |
684 | * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries | |
685 | * are reserved for future use but not defined. | |
686 | */ | |
687 | struct acpi_ivrs_de_header { | |
688 | u8 type; | |
689 | u16 id; | |
690 | u8 data_setting; | |
691 | }; | |
692 | ||
693 | /* Length of device entry is in the top two bits of Type field above */ | |
694 | ||
695 | #define ACPI_IVHD_ENTRY_LENGTH 0xC0 | |
696 | ||
697 | /* Values for device entry Type field above */ | |
698 | ||
699 | enum acpi_ivrs_device_entry_type { | |
700 | /* 4-byte device entries, all use struct acpi_ivrs_device4 */ | |
701 | ||
702 | ACPI_IVRS_TYPE_PAD4 = 0, | |
703 | ACPI_IVRS_TYPE_ALL = 1, | |
704 | ACPI_IVRS_TYPE_SELECT = 2, | |
705 | ACPI_IVRS_TYPE_START = 3, | |
706 | ACPI_IVRS_TYPE_END = 4, | |
707 | ||
708 | /* 8-byte device entries */ | |
709 | ||
710 | ACPI_IVRS_TYPE_PAD8 = 64, | |
711 | ACPI_IVRS_TYPE_NOT_USED = 65, | |
712 | ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses struct acpi_ivrs_device8a */ | |
713 | ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses struct acpi_ivrs_device8a */ | |
714 | ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses struct acpi_ivrs_device8b */ | |
715 | ACPI_IVRS_TYPE_EXT_START = 71, /* Uses struct acpi_ivrs_device8b */ | |
716 | ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses struct acpi_ivrs_device8c */ | |
717 | }; | |
718 | ||
719 | /* Values for Data field above */ | |
720 | ||
721 | #define ACPI_IVHD_INIT_PASS (1) | |
722 | #define ACPI_IVHD_EINT_PASS (1<<1) | |
723 | #define ACPI_IVHD_NMI_PASS (1<<2) | |
724 | #define ACPI_IVHD_SYSTEM_MGMT (3<<4) | |
725 | #define ACPI_IVHD_LINT0_PASS (1<<6) | |
726 | #define ACPI_IVHD_LINT1_PASS (1<<7) | |
727 | ||
728 | /* Types 0-4: 4-byte device entry */ | |
729 | ||
730 | struct acpi_ivrs_device4 { | |
731 | struct acpi_ivrs_de_header header; | |
732 | }; | |
733 | ||
734 | /* Types 66-67: 8-byte device entry */ | |
735 | ||
736 | struct acpi_ivrs_device8a { | |
737 | struct acpi_ivrs_de_header header; | |
738 | u8 reserved1; | |
739 | u16 used_id; | |
740 | u8 reserved2; | |
741 | }; | |
742 | ||
743 | /* Types 70-71: 8-byte device entry */ | |
744 | ||
745 | struct acpi_ivrs_device8b { | |
746 | struct acpi_ivrs_de_header header; | |
747 | u32 extended_data; | |
748 | }; | |
749 | ||
750 | /* Values for extended_data above */ | |
751 | ||
752 | #define ACPI_IVHD_ATS_DISABLED (1<<31) | |
753 | ||
754 | /* Type 72: 8-byte device entry */ | |
755 | ||
756 | struct acpi_ivrs_device8c { | |
757 | struct acpi_ivrs_de_header header; | |
758 | u8 handle; | |
759 | u16 used_id; | |
760 | u8 variety; | |
761 | }; | |
762 | ||
763 | /* Values for Variety field above */ | |
764 | ||
765 | #define ACPI_IVHD_IOAPIC 1 | |
766 | #define ACPI_IVHD_HPET 2 | |
767 | ||
768 | /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */ | |
769 | ||
770 | struct acpi_ivrs_memory { | |
771 | struct acpi_ivrs_header header; | |
772 | u16 aux_data; | |
773 | u64 reserved; | |
774 | u64 start_address; | |
775 | u64 memory_length; | |
776 | }; | |
777 | ||
b24aad44 BM |
778 | /******************************************************************************* |
779 | * | |
780 | * MCFG - PCI Memory Mapped Configuration table and sub-table | |
6e2d5ebd BM |
781 | * Version 1 |
782 | * | |
783 | * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005 | |
b24aad44 BM |
784 | * |
785 | ******************************************************************************/ | |
786 | ||
787 | struct acpi_table_mcfg { | |
788 | struct acpi_table_header header; /* Common ACPI table header */ | |
789 | u8 reserved[8]; | |
790 | }; | |
791 | ||
792 | /* Subtable */ | |
793 | ||
794 | struct acpi_mcfg_allocation { | |
795 | u64 address; /* Base address, processor-relative */ | |
796 | u16 pci_segment; /* PCI segment group number */ | |
797 | u8 start_bus_number; /* Starting PCI Bus number */ | |
798 | u8 end_bus_number; /* Final PCI Bus number */ | |
799 | u32 reserved; | |
800 | }; | |
801 | ||
0e264f0b BM |
802 | /******************************************************************************* |
803 | * | |
804 | * MCHI - Management Controller Host Interface Table | |
805 | * Version 1 | |
806 | * | |
807 | * Conforms to "Management Component Transport Protocol (MCTP) Host | |
808 | * Interface Specification", Revision 1.0.0a, October 13, 2009 | |
809 | * | |
810 | ******************************************************************************/ | |
811 | ||
812 | struct acpi_table_mchi { | |
813 | struct acpi_table_header header; /* Common ACPI table header */ | |
814 | u8 interface_type; | |
815 | u8 protocol; | |
816 | u64 protocol_data; | |
817 | u8 interrupt_type; | |
818 | u8 gpe; | |
819 | u8 pci_device_flag; | |
820 | u32 global_interrupt; | |
821 | struct acpi_generic_address control_register; | |
822 | u8 pci_segment; | |
823 | u8 pci_bus; | |
824 | u8 pci_device; | |
825 | u8 pci_function; | |
826 | }; | |
827 | ||
5cf4d733 BM |
828 | /******************************************************************************* |
829 | * | |
830 | * SLIC - Software Licensing Description Table | |
831 | * Version 1 | |
832 | * | |
833 | * Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems", | |
834 | * Copyright 2006 | |
835 | * | |
836 | ******************************************************************************/ | |
837 | ||
838 | /* Basic SLIC table is only the common ACPI header */ | |
839 | ||
840 | struct acpi_table_slic { | |
841 | struct acpi_table_header header; /* Common ACPI table header */ | |
842 | }; | |
843 | ||
844 | /* Common SLIC subtable header */ | |
845 | ||
846 | struct acpi_slic_header { | |
847 | u32 type; | |
848 | u32 length; | |
849 | }; | |
850 | ||
851 | /* Values for Type field above */ | |
852 | ||
853 | enum acpi_slic_type { | |
854 | ACPI_SLIC_TYPE_PUBLIC_KEY = 0, | |
855 | ACPI_SLIC_TYPE_WINDOWS_MARKER = 1, | |
856 | ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */ | |
857 | }; | |
858 | ||
859 | /* | |
860 | * SLIC Sub-tables, correspond to Type in struct acpi_slic_header | |
861 | */ | |
862 | ||
863 | /* 0: Public Key Structure */ | |
864 | ||
865 | struct acpi_slic_key { | |
866 | struct acpi_slic_header header; | |
867 | u8 key_type; | |
868 | u8 version; | |
869 | u16 reserved; | |
870 | u32 algorithm; | |
871 | char magic[4]; | |
872 | u32 bit_length; | |
873 | u32 exponent; | |
874 | u8 modulus[128]; | |
875 | }; | |
876 | ||
877 | /* 1: Windows Marker Structure */ | |
878 | ||
879 | struct acpi_slic_marker { | |
880 | struct acpi_slic_header header; | |
881 | u32 version; | |
882 | char oem_id[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */ | |
883 | char oem_table_id[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */ | |
884 | char windows_flag[8]; | |
885 | u32 slic_version; | |
886 | u8 reserved[16]; | |
887 | u8 signature[128]; | |
888 | }; | |
889 | ||
b24aad44 BM |
890 | /******************************************************************************* |
891 | * | |
892 | * SPCR - Serial Port Console Redirection table | |
6e2d5ebd BM |
893 | * Version 1 |
894 | * | |
895 | * Conforms to "Serial Port Console Redirection Table", | |
896 | * Version 1.00, January 11, 2002 | |
b24aad44 BM |
897 | * |
898 | ******************************************************************************/ | |
899 | ||
900 | struct acpi_table_spcr { | |
901 | struct acpi_table_header header; /* Common ACPI table header */ | |
902 | u8 interface_type; /* 0=full 16550, 1=subset of 16550 */ | |
903 | u8 reserved[3]; | |
904 | struct acpi_generic_address serial_port; | |
905 | u8 interrupt_type; | |
906 | u8 pc_interrupt; | |
907 | u32 interrupt; | |
908 | u8 baud_rate; | |
909 | u8 parity; | |
910 | u8 stop_bits; | |
911 | u8 flow_control; | |
912 | u8 terminal_type; | |
913 | u8 reserved1; | |
914 | u16 pci_device_id; | |
915 | u16 pci_vendor_id; | |
916 | u8 pci_bus; | |
917 | u8 pci_device; | |
918 | u8 pci_function; | |
919 | u32 pci_flags; | |
920 | u8 pci_segment; | |
921 | u32 reserved2; | |
922 | }; | |
923 | ||
6e2d5ebd BM |
924 | /* Masks for pci_flags field above */ |
925 | ||
926 | #define ACPI_SPCR_DO_NOT_DISABLE (1) | |
927 | ||
b24aad44 BM |
928 | /******************************************************************************* |
929 | * | |
930 | * SPMI - Server Platform Management Interface table | |
6e2d5ebd BM |
931 | * Version 5 |
932 | * | |
933 | * Conforms to "Intelligent Platform Management Interface Specification | |
934 | * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with | |
935 | * June 12, 2009 markup. | |
b24aad44 BM |
936 | * |
937 | ******************************************************************************/ | |
938 | ||
939 | struct acpi_table_spmi { | |
940 | struct acpi_table_header header; /* Common ACPI table header */ | |
b24aad44 | 941 | u8 interface_type; |
6e2d5ebd | 942 | u8 reserved; /* Must be 1 */ |
b24aad44 BM |
943 | u16 spec_revision; /* Version of IPMI */ |
944 | u8 interrupt_type; | |
945 | u8 gpe_number; /* GPE assigned */ | |
946 | u8 reserved1; | |
947 | u8 pci_device_flag; | |
948 | u32 interrupt; | |
949 | struct acpi_generic_address ipmi_register; | |
950 | u8 pci_segment; | |
951 | u8 pci_bus; | |
952 | u8 pci_device; | |
953 | u8 pci_function; | |
6e2d5ebd BM |
954 | u8 reserved2; |
955 | }; | |
956 | ||
957 | /* Values for interface_type above */ | |
958 | ||
959 | enum acpi_spmi_interface_types { | |
960 | ACPI_SPMI_NOT_USED = 0, | |
961 | ACPI_SPMI_KEYBOARD = 1, | |
962 | ACPI_SPMI_SMI = 2, | |
963 | ACPI_SPMI_BLOCK_TRANSFER = 3, | |
964 | ACPI_SPMI_SMBUS = 4, | |
965 | ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */ | |
b24aad44 BM |
966 | }; |
967 | ||
968 | /******************************************************************************* | |
969 | * | |
970 | * TCPA - Trusted Computing Platform Alliance table | |
6e2d5ebd BM |
971 | * Version 1 |
972 | * | |
973 | * Conforms to "TCG PC Specific Implementation Specification", | |
974 | * Version 1.1, August 18, 2003 | |
b24aad44 BM |
975 | * |
976 | ******************************************************************************/ | |
977 | ||
978 | struct acpi_table_tcpa { | |
979 | struct acpi_table_header header; /* Common ACPI table header */ | |
980 | u16 reserved; | |
981 | u32 max_log_length; /* Maximum length for the event log area */ | |
982 | u64 log_address; /* Address of the event log area */ | |
983 | }; | |
984 | ||
985 | /******************************************************************************* | |
986 | * | |
987 | * UEFI - UEFI Boot optimization Table | |
6e2d5ebd BM |
988 | * Version 1 |
989 | * | |
990 | * Conforms to "Unified Extensible Firmware Interface Specification", | |
991 | * Version 2.3, May 8, 2009 | |
b24aad44 BM |
992 | * |
993 | ******************************************************************************/ | |
994 | ||
995 | struct acpi_table_uefi { | |
996 | struct acpi_table_header header; /* Common ACPI table header */ | |
997 | u8 identifier[16]; /* UUID identifier */ | |
998 | u16 data_offset; /* Offset of remaining data in table */ | |
b24aad44 BM |
999 | }; |
1000 | ||
6e2d5ebd BM |
1001 | /******************************************************************************* |
1002 | * | |
1003 | * WAET - Windows ACPI Emulated devices Table | |
1004 | * Version 1 | |
1005 | * | |
1006 | * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009 | |
1007 | * | |
1008 | ******************************************************************************/ | |
1009 | ||
1010 | struct acpi_table_waet { | |
1011 | struct acpi_table_header header; /* Common ACPI table header */ | |
1012 | u32 flags; | |
1013 | }; | |
1014 | ||
1015 | /* Masks for Flags field above */ | |
1016 | ||
1017 | #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */ | |
1018 | #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */ | |
1019 | ||
b24aad44 BM |
1020 | /******************************************************************************* |
1021 | * | |
1022 | * WDAT - Watchdog Action Table | |
6e2d5ebd BM |
1023 | * Version 1 |
1024 | * | |
1025 | * Conforms to "Hardware Watchdog Timers Design Specification", | |
1026 | * Copyright 2006 Microsoft Corporation. | |
b24aad44 BM |
1027 | * |
1028 | ******************************************************************************/ | |
1029 | ||
1030 | struct acpi_table_wdat { | |
1031 | struct acpi_table_header header; /* Common ACPI table header */ | |
1032 | u32 header_length; /* Watchdog Header Length */ | |
1033 | u16 pci_segment; /* PCI Segment number */ | |
1034 | u8 pci_bus; /* PCI Bus number */ | |
1035 | u8 pci_device; /* PCI Device number */ | |
1036 | u8 pci_function; /* PCI Function number */ | |
1037 | u8 reserved[3]; | |
1038 | u32 timer_period; /* Period of one timer count (msec) */ | |
1039 | u32 max_count; /* Maximum counter value supported */ | |
1040 | u32 min_count; /* Minimum counter value */ | |
1041 | u8 flags; | |
1042 | u8 reserved2[3]; | |
1043 | u32 entries; /* Number of watchdog entries that follow */ | |
1044 | }; | |
1045 | ||
6e2d5ebd BM |
1046 | /* Masks for Flags field above */ |
1047 | ||
1048 | #define ACPI_WDAT_ENABLED (1) | |
1049 | #define ACPI_WDAT_STOPPED 0x80 | |
1050 | ||
b24aad44 BM |
1051 | /* WDAT Instruction Entries (actions) */ |
1052 | ||
1053 | struct acpi_wdat_entry { | |
6e2d5ebd BM |
1054 | u8 action; |
1055 | u8 instruction; | |
1056 | u16 reserved; | |
1057 | struct acpi_generic_address register_region; | |
1058 | u32 value; /* Value used with Read/Write register */ | |
1059 | u32 mask; /* Bitmask required for this register instruction */ | |
b24aad44 BM |
1060 | }; |
1061 | ||
1062 | /* Values for Action field above */ | |
1063 | ||
1064 | enum acpi_wdat_actions { | |
1065 | ACPI_WDAT_RESET = 1, | |
1066 | ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4, | |
1067 | ACPI_WDAT_GET_COUNTDOWN = 5, | |
1068 | ACPI_WDAT_SET_COUNTDOWN = 6, | |
1069 | ACPI_WDAT_GET_RUNNING_STATE = 8, | |
1070 | ACPI_WDAT_SET_RUNNING_STATE = 9, | |
1071 | ACPI_WDAT_GET_STOPPED_STATE = 10, | |
1072 | ACPI_WDAT_SET_STOPPED_STATE = 11, | |
1073 | ACPI_WDAT_GET_REBOOT = 16, | |
1074 | ACPI_WDAT_SET_REBOOT = 17, | |
1075 | ACPI_WDAT_GET_SHUTDOWN = 18, | |
1076 | ACPI_WDAT_SET_SHUTDOWN = 19, | |
1077 | ACPI_WDAT_GET_STATUS = 32, | |
1078 | ACPI_WDAT_SET_STATUS = 33, | |
1079 | ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */ | |
1080 | }; | |
1081 | ||
1082 | /* Values for Instruction field above */ | |
1083 | ||
1084 | enum acpi_wdat_instructions { | |
1085 | ACPI_WDAT_READ_VALUE = 0, | |
1086 | ACPI_WDAT_READ_COUNTDOWN = 1, | |
1087 | ACPI_WDAT_WRITE_VALUE = 2, | |
1088 | ACPI_WDAT_WRITE_COUNTDOWN = 3, | |
1089 | ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */ | |
1090 | ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */ | |
1091 | }; | |
1092 | ||
9d8b5e7b BM |
1093 | /******************************************************************************* |
1094 | * | |
1095 | * WDDT - Watchdog Descriptor Table | |
1096 | * Version 1 | |
1097 | * | |
1098 | * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)", | |
1099 | * Version 001, September 2002 | |
1100 | * | |
1101 | ******************************************************************************/ | |
1102 | ||
1103 | struct acpi_table_wddt { | |
1104 | struct acpi_table_header header; /* Common ACPI table header */ | |
1105 | u16 spec_version; | |
1106 | u16 table_version; | |
1107 | u16 pci_vendor_id; | |
1108 | struct acpi_generic_address address; | |
1109 | u16 max_count; /* Maximum counter value supported */ | |
1110 | u16 min_count; /* Minimum counter value supported */ | |
1111 | u16 period; | |
1112 | u16 status; | |
1113 | u16 capability; | |
1114 | }; | |
1115 | ||
1116 | /* Flags for Status field above */ | |
1117 | ||
1118 | #define ACPI_WDDT_AVAILABLE (1) | |
1119 | #define ACPI_WDDT_ACTIVE (1<<1) | |
1120 | #define ACPI_WDDT_TCO_OS_OWNED (1<<2) | |
1121 | #define ACPI_WDDT_USER_RESET (1<<11) | |
1122 | #define ACPI_WDDT_WDT_RESET (1<<12) | |
1123 | #define ACPI_WDDT_POWER_FAIL (1<<13) | |
1124 | #define ACPI_WDDT_UNKNOWN_RESET (1<<14) | |
1125 | ||
1126 | /* Flags for Capability field above */ | |
1127 | ||
1128 | #define ACPI_WDDT_AUTO_RESET (1) | |
1129 | #define ACPI_WDDT_ALERT_SUPPORT (1<<1) | |
1130 | ||
b24aad44 BM |
1131 | /******************************************************************************* |
1132 | * | |
1133 | * WDRT - Watchdog Resource Table | |
6e2d5ebd BM |
1134 | * Version 1 |
1135 | * | |
1136 | * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003", | |
1137 | * Version 1.01, August 28, 2006 | |
b24aad44 BM |
1138 | * |
1139 | ******************************************************************************/ | |
1140 | ||
1141 | struct acpi_table_wdrt { | |
1142 | struct acpi_table_header header; /* Common ACPI table header */ | |
6e2d5ebd BM |
1143 | struct acpi_generic_address control_register; |
1144 | struct acpi_generic_address count_register; | |
1145 | u16 pci_device_id; | |
1146 | u16 pci_vendor_id; | |
b24aad44 BM |
1147 | u8 pci_bus; /* PCI Bus number */ |
1148 | u8 pci_device; /* PCI Device number */ | |
1149 | u8 pci_function; /* PCI Function number */ | |
6e2d5ebd BM |
1150 | u8 pci_segment; /* PCI Segment number */ |
1151 | u16 max_count; /* Maximum counter value supported */ | |
1152 | u8 units; | |
b24aad44 BM |
1153 | }; |
1154 | ||
b24aad44 BM |
1155 | /* Reset to default packing */ |
1156 | ||
1157 | #pragma pack() | |
1158 | ||
1159 | #endif /* __ACTBL2_H__ */ |