actbl2.h revision 1.1.1.11 1 1.1 jruoho /******************************************************************************
2 1.1 jruoho *
3 1.1.1.3 jruoho * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec)
4 1.1 jruoho *
5 1.1 jruoho *****************************************************************************/
6 1.1 jruoho
7 1.1.1.2 jruoho /*
8 1.1.1.10 christos * Copyright (C) 2000 - 2017, Intel Corp.
9 1.1 jruoho * All rights reserved.
10 1.1 jruoho *
11 1.1.1.2 jruoho * Redistribution and use in source and binary forms, with or without
12 1.1.1.2 jruoho * modification, are permitted provided that the following conditions
13 1.1.1.2 jruoho * are met:
14 1.1.1.2 jruoho * 1. Redistributions of source code must retain the above copyright
15 1.1.1.2 jruoho * notice, this list of conditions, and the following disclaimer,
16 1.1.1.2 jruoho * without modification.
17 1.1.1.2 jruoho * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 1.1.1.2 jruoho * substantially similar to the "NO WARRANTY" disclaimer below
19 1.1.1.2 jruoho * ("Disclaimer") and any redistribution must be conditioned upon
20 1.1.1.2 jruoho * including a substantially similar Disclaimer requirement for further
21 1.1.1.2 jruoho * binary redistribution.
22 1.1.1.2 jruoho * 3. Neither the names of the above-listed copyright holders nor the names
23 1.1.1.2 jruoho * of any contributors may be used to endorse or promote products derived
24 1.1.1.2 jruoho * from this software without specific prior written permission.
25 1.1.1.2 jruoho *
26 1.1.1.2 jruoho * Alternatively, this software may be distributed under the terms of the
27 1.1.1.2 jruoho * GNU General Public License ("GPL") version 2 as published by the Free
28 1.1.1.2 jruoho * Software Foundation.
29 1.1.1.2 jruoho *
30 1.1.1.2 jruoho * NO WARRANTY
31 1.1.1.2 jruoho * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 1.1.1.2 jruoho * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 1.1.1.2 jruoho * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 1.1.1.2 jruoho * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 1.1.1.2 jruoho * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 1.1.1.2 jruoho * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 1.1.1.2 jruoho * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 1.1.1.2 jruoho * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 1.1.1.2 jruoho * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 1.1.1.2 jruoho * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 1.1.1.2 jruoho * POSSIBILITY OF SUCH DAMAGES.
42 1.1.1.2 jruoho */
43 1.1 jruoho
44 1.1 jruoho #ifndef __ACTBL2_H__
45 1.1 jruoho #define __ACTBL2_H__
46 1.1 jruoho
47 1.1 jruoho
48 1.1 jruoho /*******************************************************************************
49 1.1 jruoho *
50 1.1 jruoho * Additional ACPI Tables (2)
51 1.1 jruoho *
52 1.1 jruoho * These tables are not consumed directly by the ACPICA subsystem, but are
53 1.1 jruoho * included here to support device drivers and the AML disassembler.
54 1.1 jruoho *
55 1.1.1.7 christos * Generally, the tables in this file are defined by third-party specifications,
56 1.1.1.7 christos * and are not defined directly by the ACPI specification itself.
57 1.1 jruoho *
58 1.1 jruoho ******************************************************************************/
59 1.1 jruoho
60 1.1 jruoho
61 1.1 jruoho /*
62 1.1 jruoho * Values for description table header signatures for tables defined in this
63 1.1 jruoho * file. Useful because they make it more difficult to inadvertently type in
64 1.1 jruoho * the wrong signature.
65 1.1 jruoho */
66 1.1 jruoho #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
67 1.1 jruoho #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
68 1.1.1.4 christos #define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */
69 1.1.1.4 christos #define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */
70 1.1 jruoho #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
71 1.1 jruoho #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
72 1.1 jruoho #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
73 1.1 jruoho #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
74 1.1.1.7 christos #define ACPI_SIG_IORT "IORT" /* IO Remapping Table */
75 1.1 jruoho #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
76 1.1.1.5 christos #define ACPI_SIG_LPIT "LPIT" /* Low Power Idle Table */
77 1.1 jruoho #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
78 1.1 jruoho #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
79 1.1.1.6 christos #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
80 1.1.1.4 christos #define ACPI_SIG_MTMR "MTMR" /* MID Timer table */
81 1.1 jruoho #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */
82 1.1 jruoho #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */
83 1.1 jruoho #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */
84 1.1 jruoho #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */
85 1.1.1.7 christos #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */
86 1.1 jruoho #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */
87 1.1.1.4 christos #define ACPI_SIG_VRTC "VRTC" /* Virtual Real Time Clock Table */
88 1.1 jruoho #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */
89 1.1 jruoho #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */
90 1.1.1.2 jruoho #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */
91 1.1 jruoho #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */
92 1.1.1.11 christos #define ACPI_SIG_XXXX "XXXX" /* Intermediate AML header for ASL/ASL+ converter */
93 1.1 jruoho
94 1.1 jruoho #ifdef ACPI_UNDEFINED_TABLES
95 1.1 jruoho /*
96 1.1 jruoho * These tables have been seen in the field, but no definition has been found
97 1.1 jruoho */
98 1.1 jruoho #define ACPI_SIG_ATKG "ATKG"
99 1.1 jruoho #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
100 1.1 jruoho #define ACPI_SIG_IEIT "IEIT"
101 1.1 jruoho #endif
102 1.1 jruoho
103 1.1 jruoho /*
104 1.1 jruoho * All tables must be byte-packed to match the ACPI specification, since
105 1.1 jruoho * the tables are provided by the system BIOS.
106 1.1 jruoho */
107 1.1 jruoho #pragma pack(1)
108 1.1 jruoho
109 1.1 jruoho /*
110 1.1.1.4 christos * Note: C bitfields are not used for this reason:
111 1.1.1.4 christos *
112 1.1.1.4 christos * "Bitfields are great and easy to read, but unfortunately the C language
113 1.1.1.4 christos * does not specify the layout of bitfields in memory, which means they are
114 1.1.1.4 christos * essentially useless for dealing with packed data in on-disk formats or
115 1.1.1.4 christos * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
116 1.1.1.4 christos * this decision was a design error in C. Ritchie could have picked an order
117 1.1.1.4 christos * and stuck with it." Norman Ramsey.
118 1.1.1.4 christos * See http://stackoverflow.com/a/1053662/41661
119 1.1 jruoho */
120 1.1 jruoho
121 1.1 jruoho
122 1.1 jruoho /*******************************************************************************
123 1.1 jruoho *
124 1.1 jruoho * ASF - Alert Standard Format table (Signature "ASF!")
125 1.1 jruoho * Revision 0x10
126 1.1 jruoho *
127 1.1 jruoho * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
128 1.1 jruoho *
129 1.1 jruoho ******************************************************************************/
130 1.1 jruoho
131 1.1 jruoho typedef struct acpi_table_asf
132 1.1 jruoho {
133 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
134 1.1 jruoho
135 1.1 jruoho } ACPI_TABLE_ASF;
136 1.1 jruoho
137 1.1 jruoho
138 1.1 jruoho /* ASF subtable header */
139 1.1 jruoho
140 1.1 jruoho typedef struct acpi_asf_header
141 1.1 jruoho {
142 1.1 jruoho UINT8 Type;
143 1.1 jruoho UINT8 Reserved;
144 1.1 jruoho UINT16 Length;
145 1.1 jruoho
146 1.1 jruoho } ACPI_ASF_HEADER;
147 1.1 jruoho
148 1.1 jruoho
149 1.1 jruoho /* Values for Type field above */
150 1.1 jruoho
151 1.1 jruoho enum AcpiAsfType
152 1.1 jruoho {
153 1.1 jruoho ACPI_ASF_TYPE_INFO = 0,
154 1.1 jruoho ACPI_ASF_TYPE_ALERT = 1,
155 1.1 jruoho ACPI_ASF_TYPE_CONTROL = 2,
156 1.1 jruoho ACPI_ASF_TYPE_BOOT = 3,
157 1.1 jruoho ACPI_ASF_TYPE_ADDRESS = 4,
158 1.1 jruoho ACPI_ASF_TYPE_RESERVED = 5
159 1.1 jruoho };
160 1.1 jruoho
161 1.1 jruoho /*
162 1.1 jruoho * ASF subtables
163 1.1 jruoho */
164 1.1 jruoho
165 1.1 jruoho /* 0: ASF Information */
166 1.1 jruoho
167 1.1 jruoho typedef struct acpi_asf_info
168 1.1 jruoho {
169 1.1 jruoho ACPI_ASF_HEADER Header;
170 1.1 jruoho UINT8 MinResetValue;
171 1.1 jruoho UINT8 MinPollInterval;
172 1.1 jruoho UINT16 SystemId;
173 1.1 jruoho UINT32 MfgId;
174 1.1 jruoho UINT8 Flags;
175 1.1 jruoho UINT8 Reserved2[3];
176 1.1 jruoho
177 1.1 jruoho } ACPI_ASF_INFO;
178 1.1 jruoho
179 1.1 jruoho /* Masks for Flags field above */
180 1.1 jruoho
181 1.1 jruoho #define ACPI_ASF_SMBUS_PROTOCOLS (1)
182 1.1 jruoho
183 1.1 jruoho
184 1.1 jruoho /* 1: ASF Alerts */
185 1.1 jruoho
186 1.1 jruoho typedef struct acpi_asf_alert
187 1.1 jruoho {
188 1.1 jruoho ACPI_ASF_HEADER Header;
189 1.1 jruoho UINT8 AssertMask;
190 1.1 jruoho UINT8 DeassertMask;
191 1.1 jruoho UINT8 Alerts;
192 1.1 jruoho UINT8 DataLength;
193 1.1 jruoho
194 1.1 jruoho } ACPI_ASF_ALERT;
195 1.1 jruoho
196 1.1 jruoho typedef struct acpi_asf_alert_data
197 1.1 jruoho {
198 1.1 jruoho UINT8 Address;
199 1.1 jruoho UINT8 Command;
200 1.1 jruoho UINT8 Mask;
201 1.1 jruoho UINT8 Value;
202 1.1 jruoho UINT8 SensorType;
203 1.1 jruoho UINT8 Type;
204 1.1 jruoho UINT8 Offset;
205 1.1 jruoho UINT8 SourceType;
206 1.1 jruoho UINT8 Severity;
207 1.1 jruoho UINT8 SensorNumber;
208 1.1 jruoho UINT8 Entity;
209 1.1 jruoho UINT8 Instance;
210 1.1 jruoho
211 1.1 jruoho } ACPI_ASF_ALERT_DATA;
212 1.1 jruoho
213 1.1 jruoho
214 1.1 jruoho /* 2: ASF Remote Control */
215 1.1 jruoho
216 1.1 jruoho typedef struct acpi_asf_remote
217 1.1 jruoho {
218 1.1 jruoho ACPI_ASF_HEADER Header;
219 1.1 jruoho UINT8 Controls;
220 1.1 jruoho UINT8 DataLength;
221 1.1 jruoho UINT16 Reserved2;
222 1.1 jruoho
223 1.1 jruoho } ACPI_ASF_REMOTE;
224 1.1 jruoho
225 1.1 jruoho typedef struct acpi_asf_control_data
226 1.1 jruoho {
227 1.1 jruoho UINT8 Function;
228 1.1 jruoho UINT8 Address;
229 1.1 jruoho UINT8 Command;
230 1.1 jruoho UINT8 Value;
231 1.1 jruoho
232 1.1 jruoho } ACPI_ASF_CONTROL_DATA;
233 1.1 jruoho
234 1.1 jruoho
235 1.1 jruoho /* 3: ASF RMCP Boot Options */
236 1.1 jruoho
237 1.1 jruoho typedef struct acpi_asf_rmcp
238 1.1 jruoho {
239 1.1 jruoho ACPI_ASF_HEADER Header;
240 1.1 jruoho UINT8 Capabilities[7];
241 1.1 jruoho UINT8 CompletionCode;
242 1.1 jruoho UINT32 EnterpriseId;
243 1.1 jruoho UINT8 Command;
244 1.1 jruoho UINT16 Parameter;
245 1.1 jruoho UINT16 BootOptions;
246 1.1 jruoho UINT16 OemParameters;
247 1.1 jruoho
248 1.1 jruoho } ACPI_ASF_RMCP;
249 1.1 jruoho
250 1.1 jruoho
251 1.1 jruoho /* 4: ASF Address */
252 1.1 jruoho
253 1.1 jruoho typedef struct acpi_asf_address
254 1.1 jruoho {
255 1.1 jruoho ACPI_ASF_HEADER Header;
256 1.1 jruoho UINT8 EpromAddress;
257 1.1 jruoho UINT8 Devices;
258 1.1 jruoho
259 1.1 jruoho } ACPI_ASF_ADDRESS;
260 1.1 jruoho
261 1.1 jruoho
262 1.1 jruoho /*******************************************************************************
263 1.1 jruoho *
264 1.1 jruoho * BOOT - Simple Boot Flag Table
265 1.1 jruoho * Version 1
266 1.1 jruoho *
267 1.1 jruoho * Conforms to the "Simple Boot Flag Specification", Version 2.1
268 1.1 jruoho *
269 1.1 jruoho ******************************************************************************/
270 1.1 jruoho
271 1.1 jruoho typedef struct acpi_table_boot
272 1.1 jruoho {
273 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
274 1.1 jruoho UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
275 1.1 jruoho UINT8 Reserved[3];
276 1.1 jruoho
277 1.1 jruoho } ACPI_TABLE_BOOT;
278 1.1 jruoho
279 1.1 jruoho
280 1.1 jruoho /*******************************************************************************
281 1.1 jruoho *
282 1.1.1.4 christos * CSRT - Core System Resource Table
283 1.1.1.4 christos * Version 0
284 1.1.1.4 christos *
285 1.1.1.4 christos * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
286 1.1.1.4 christos *
287 1.1.1.4 christos ******************************************************************************/
288 1.1.1.4 christos
289 1.1.1.4 christos typedef struct acpi_table_csrt
290 1.1.1.4 christos {
291 1.1.1.4 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
292 1.1.1.4 christos
293 1.1.1.4 christos } ACPI_TABLE_CSRT;
294 1.1.1.4 christos
295 1.1.1.4 christos
296 1.1.1.4 christos /* Resource Group subtable */
297 1.1.1.4 christos
298 1.1.1.4 christos typedef struct acpi_csrt_group
299 1.1.1.4 christos {
300 1.1.1.4 christos UINT32 Length;
301 1.1.1.4 christos UINT32 VendorId;
302 1.1.1.4 christos UINT32 SubvendorId;
303 1.1.1.4 christos UINT16 DeviceId;
304 1.1.1.4 christos UINT16 SubdeviceId;
305 1.1.1.4 christos UINT16 Revision;
306 1.1.1.4 christos UINT16 Reserved;
307 1.1.1.4 christos UINT32 SharedInfoLength;
308 1.1.1.4 christos
309 1.1.1.4 christos /* Shared data immediately follows (Length = SharedInfoLength) */
310 1.1.1.4 christos
311 1.1.1.4 christos } ACPI_CSRT_GROUP;
312 1.1.1.4 christos
313 1.1.1.4 christos /* Shared Info subtable */
314 1.1.1.4 christos
315 1.1.1.4 christos typedef struct acpi_csrt_shared_info
316 1.1.1.4 christos {
317 1.1.1.4 christos UINT16 MajorVersion;
318 1.1.1.4 christos UINT16 MinorVersion;
319 1.1.1.4 christos UINT32 MmioBaseLow;
320 1.1.1.4 christos UINT32 MmioBaseHigh;
321 1.1.1.4 christos UINT32 GsiInterrupt;
322 1.1.1.4 christos UINT8 InterruptPolarity;
323 1.1.1.4 christos UINT8 InterruptMode;
324 1.1.1.4 christos UINT8 NumChannels;
325 1.1.1.4 christos UINT8 DmaAddressWidth;
326 1.1.1.4 christos UINT16 BaseRequestLine;
327 1.1.1.4 christos UINT16 NumHandshakeSignals;
328 1.1.1.4 christos UINT32 MaxBlockSize;
329 1.1.1.4 christos
330 1.1.1.4 christos /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
331 1.1.1.4 christos
332 1.1.1.4 christos } ACPI_CSRT_SHARED_INFO;
333 1.1.1.4 christos
334 1.1.1.4 christos /* Resource Descriptor subtable */
335 1.1.1.4 christos
336 1.1.1.4 christos typedef struct acpi_csrt_descriptor
337 1.1.1.4 christos {
338 1.1.1.4 christos UINT32 Length;
339 1.1.1.4 christos UINT16 Type;
340 1.1.1.4 christos UINT16 Subtype;
341 1.1.1.4 christos UINT32 Uid;
342 1.1.1.4 christos
343 1.1.1.4 christos /* Resource-specific information immediately follows */
344 1.1.1.4 christos
345 1.1.1.4 christos } ACPI_CSRT_DESCRIPTOR;
346 1.1.1.4 christos
347 1.1.1.4 christos
348 1.1.1.4 christos /* Resource Types */
349 1.1.1.4 christos
350 1.1.1.4 christos #define ACPI_CSRT_TYPE_INTERRUPT 0x0001
351 1.1.1.4 christos #define ACPI_CSRT_TYPE_TIMER 0x0002
352 1.1.1.4 christos #define ACPI_CSRT_TYPE_DMA 0x0003
353 1.1.1.4 christos
354 1.1.1.4 christos /* Resource Subtypes */
355 1.1.1.4 christos
356 1.1.1.4 christos #define ACPI_CSRT_XRUPT_LINE 0x0000
357 1.1.1.4 christos #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
358 1.1.1.4 christos #define ACPI_CSRT_TIMER 0x0000
359 1.1.1.4 christos #define ACPI_CSRT_DMA_CHANNEL 0x0000
360 1.1.1.4 christos #define ACPI_CSRT_DMA_CONTROLLER 0x0001
361 1.1.1.4 christos
362 1.1.1.4 christos
363 1.1.1.4 christos /*******************************************************************************
364 1.1.1.4 christos *
365 1.1.1.4 christos * DBG2 - Debug Port Table 2
366 1.1.1.4 christos * Version 0 (Both main table and subtables)
367 1.1.1.4 christos *
368 1.1.1.9 christos * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
369 1.1.1.4 christos *
370 1.1.1.4 christos ******************************************************************************/
371 1.1.1.4 christos
372 1.1.1.4 christos typedef struct acpi_table_dbg2
373 1.1.1.4 christos {
374 1.1.1.4 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
375 1.1.1.4 christos UINT32 InfoOffset;
376 1.1.1.4 christos UINT32 InfoCount;
377 1.1.1.4 christos
378 1.1.1.4 christos } ACPI_TABLE_DBG2;
379 1.1.1.4 christos
380 1.1.1.4 christos
381 1.1.1.4 christos typedef struct acpi_dbg2_header
382 1.1.1.4 christos {
383 1.1.1.4 christos UINT32 InfoOffset;
384 1.1.1.4 christos UINT32 InfoCount;
385 1.1.1.4 christos
386 1.1.1.4 christos } ACPI_DBG2_HEADER;
387 1.1.1.4 christos
388 1.1.1.4 christos
389 1.1.1.4 christos /* Debug Device Information Subtable */
390 1.1.1.4 christos
391 1.1.1.4 christos typedef struct acpi_dbg2_device
392 1.1.1.4 christos {
393 1.1.1.4 christos UINT8 Revision;
394 1.1.1.4 christos UINT16 Length;
395 1.1.1.4 christos UINT8 RegisterCount; /* Number of BaseAddress registers */
396 1.1.1.4 christos UINT16 NamepathLength;
397 1.1.1.4 christos UINT16 NamepathOffset;
398 1.1.1.4 christos UINT16 OemDataLength;
399 1.1.1.4 christos UINT16 OemDataOffset;
400 1.1.1.4 christos UINT16 PortType;
401 1.1.1.4 christos UINT16 PortSubtype;
402 1.1.1.4 christos UINT16 Reserved;
403 1.1.1.4 christos UINT16 BaseAddressOffset;
404 1.1.1.4 christos UINT16 AddressSizeOffset;
405 1.1.1.4 christos /*
406 1.1.1.4 christos * Data that follows:
407 1.1.1.4 christos * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
408 1.1.1.4 christos * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
409 1.1.1.4 christos * Namepath (required) - Null terminated string. Single dot if not supported.
410 1.1.1.4 christos * OemData (optional) - Length is OemDataLength.
411 1.1.1.4 christos */
412 1.1.1.4 christos } ACPI_DBG2_DEVICE;
413 1.1.1.4 christos
414 1.1.1.4 christos /* Types for PortType field above */
415 1.1.1.4 christos
416 1.1.1.4 christos #define ACPI_DBG2_SERIAL_PORT 0x8000
417 1.1.1.4 christos #define ACPI_DBG2_1394_PORT 0x8001
418 1.1.1.4 christos #define ACPI_DBG2_USB_PORT 0x8002
419 1.1.1.4 christos #define ACPI_DBG2_NET_PORT 0x8003
420 1.1.1.4 christos
421 1.1.1.4 christos /* Subtypes for PortSubtype field above */
422 1.1.1.4 christos
423 1.1.1.4 christos #define ACPI_DBG2_16550_COMPATIBLE 0x0000
424 1.1.1.4 christos #define ACPI_DBG2_16550_SUBSET 0x0001
425 1.1.1.9 christos #define ACPI_DBG2_ARM_PL011 0x0003
426 1.1.1.9 christos #define ACPI_DBG2_ARM_SBSA_32BIT 0x000D
427 1.1.1.9 christos #define ACPI_DBG2_ARM_SBSA_GENERIC 0x000E
428 1.1.1.9 christos #define ACPI_DBG2_ARM_DCC 0x000F
429 1.1.1.9 christos #define ACPI_DBG2_BCM2835 0x0010
430 1.1.1.4 christos
431 1.1.1.4 christos #define ACPI_DBG2_1394_STANDARD 0x0000
432 1.1.1.4 christos
433 1.1.1.4 christos #define ACPI_DBG2_USB_XHCI 0x0000
434 1.1.1.4 christos #define ACPI_DBG2_USB_EHCI 0x0001
435 1.1.1.4 christos
436 1.1.1.4 christos
437 1.1.1.4 christos /*******************************************************************************
438 1.1.1.4 christos *
439 1.1 jruoho * DBGP - Debug Port table
440 1.1 jruoho * Version 1
441 1.1 jruoho *
442 1.1 jruoho * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
443 1.1 jruoho *
444 1.1 jruoho ******************************************************************************/
445 1.1 jruoho
446 1.1 jruoho typedef struct acpi_table_dbgp
447 1.1 jruoho {
448 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
449 1.1 jruoho UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
450 1.1 jruoho UINT8 Reserved[3];
451 1.1 jruoho ACPI_GENERIC_ADDRESS DebugPort;
452 1.1 jruoho
453 1.1 jruoho } ACPI_TABLE_DBGP;
454 1.1 jruoho
455 1.1 jruoho
456 1.1 jruoho /*******************************************************************************
457 1.1 jruoho *
458 1.1 jruoho * DMAR - DMA Remapping table
459 1.1 jruoho * Version 1
460 1.1 jruoho *
461 1.1 jruoho * Conforms to "Intel Virtualization Technology for Directed I/O",
462 1.1.1.9 christos * Version 2.3, October 2014
463 1.1 jruoho *
464 1.1 jruoho ******************************************************************************/
465 1.1 jruoho
466 1.1 jruoho typedef struct acpi_table_dmar
467 1.1 jruoho {
468 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
469 1.1 jruoho UINT8 Width; /* Host Address Width */
470 1.1 jruoho UINT8 Flags;
471 1.1 jruoho UINT8 Reserved[10];
472 1.1 jruoho
473 1.1 jruoho } ACPI_TABLE_DMAR;
474 1.1 jruoho
475 1.1 jruoho /* Masks for Flags field above */
476 1.1 jruoho
477 1.1 jruoho #define ACPI_DMAR_INTR_REMAP (1)
478 1.1.1.9 christos #define ACPI_DMAR_X2APIC_OPT_OUT (1<<1)
479 1.1.1.9 christos #define ACPI_DMAR_X2APIC_MODE (1<<2)
480 1.1 jruoho
481 1.1 jruoho
482 1.1 jruoho /* DMAR subtable header */
483 1.1 jruoho
484 1.1 jruoho typedef struct acpi_dmar_header
485 1.1 jruoho {
486 1.1 jruoho UINT16 Type;
487 1.1 jruoho UINT16 Length;
488 1.1 jruoho
489 1.1 jruoho } ACPI_DMAR_HEADER;
490 1.1 jruoho
491 1.1 jruoho /* Values for subtable type in ACPI_DMAR_HEADER */
492 1.1 jruoho
493 1.1 jruoho enum AcpiDmarType
494 1.1 jruoho {
495 1.1 jruoho ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
496 1.1 jruoho ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
497 1.1.1.5 christos ACPI_DMAR_TYPE_ROOT_ATS = 2,
498 1.1.1.5 christos ACPI_DMAR_TYPE_HARDWARE_AFFINITY = 3,
499 1.1.1.5 christos ACPI_DMAR_TYPE_NAMESPACE = 4,
500 1.1.1.5 christos ACPI_DMAR_TYPE_RESERVED = 5 /* 5 and greater are reserved */
501 1.1 jruoho };
502 1.1 jruoho
503 1.1 jruoho
504 1.1 jruoho /* DMAR Device Scope structure */
505 1.1 jruoho
506 1.1 jruoho typedef struct acpi_dmar_device_scope
507 1.1 jruoho {
508 1.1 jruoho UINT8 EntryType;
509 1.1 jruoho UINT8 Length;
510 1.1 jruoho UINT16 Reserved;
511 1.1 jruoho UINT8 EnumerationId;
512 1.1 jruoho UINT8 Bus;
513 1.1 jruoho
514 1.1 jruoho } ACPI_DMAR_DEVICE_SCOPE;
515 1.1 jruoho
516 1.1.1.5 christos /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE - device types */
517 1.1 jruoho
518 1.1 jruoho enum AcpiDmarScopeType
519 1.1 jruoho {
520 1.1 jruoho ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
521 1.1 jruoho ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
522 1.1 jruoho ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
523 1.1 jruoho ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
524 1.1 jruoho ACPI_DMAR_SCOPE_TYPE_HPET = 4,
525 1.1.1.5 christos ACPI_DMAR_SCOPE_TYPE_NAMESPACE = 5,
526 1.1.1.5 christos ACPI_DMAR_SCOPE_TYPE_RESERVED = 6 /* 6 and greater are reserved */
527 1.1 jruoho };
528 1.1 jruoho
529 1.1 jruoho typedef struct acpi_dmar_pci_path
530 1.1 jruoho {
531 1.1 jruoho UINT8 Device;
532 1.1 jruoho UINT8 Function;
533 1.1 jruoho
534 1.1 jruoho } ACPI_DMAR_PCI_PATH;
535 1.1 jruoho
536 1.1 jruoho
537 1.1 jruoho /*
538 1.1.1.5 christos * DMAR Subtables, correspond to Type in ACPI_DMAR_HEADER
539 1.1 jruoho */
540 1.1 jruoho
541 1.1 jruoho /* 0: Hardware Unit Definition */
542 1.1 jruoho
543 1.1 jruoho typedef struct acpi_dmar_hardware_unit
544 1.1 jruoho {
545 1.1 jruoho ACPI_DMAR_HEADER Header;
546 1.1 jruoho UINT8 Flags;
547 1.1 jruoho UINT8 Reserved;
548 1.1 jruoho UINT16 Segment;
549 1.1 jruoho UINT64 Address; /* Register Base Address */
550 1.1 jruoho
551 1.1 jruoho } ACPI_DMAR_HARDWARE_UNIT;
552 1.1 jruoho
553 1.1 jruoho /* Masks for Flags field above */
554 1.1 jruoho
555 1.1 jruoho #define ACPI_DMAR_INCLUDE_ALL (1)
556 1.1 jruoho
557 1.1 jruoho
558 1.1 jruoho /* 1: Reserved Memory Defininition */
559 1.1 jruoho
560 1.1 jruoho typedef struct acpi_dmar_reserved_memory
561 1.1 jruoho {
562 1.1 jruoho ACPI_DMAR_HEADER Header;
563 1.1 jruoho UINT16 Reserved;
564 1.1 jruoho UINT16 Segment;
565 1.1 jruoho UINT64 BaseAddress; /* 4K aligned base address */
566 1.1 jruoho UINT64 EndAddress; /* 4K aligned limit address */
567 1.1 jruoho
568 1.1 jruoho } ACPI_DMAR_RESERVED_MEMORY;
569 1.1 jruoho
570 1.1 jruoho /* Masks for Flags field above */
571 1.1 jruoho
572 1.1 jruoho #define ACPI_DMAR_ALLOW_ALL (1)
573 1.1 jruoho
574 1.1 jruoho
575 1.1 jruoho /* 2: Root Port ATS Capability Reporting Structure */
576 1.1 jruoho
577 1.1 jruoho typedef struct acpi_dmar_atsr
578 1.1 jruoho {
579 1.1 jruoho ACPI_DMAR_HEADER Header;
580 1.1 jruoho UINT8 Flags;
581 1.1 jruoho UINT8 Reserved;
582 1.1 jruoho UINT16 Segment;
583 1.1 jruoho
584 1.1 jruoho } ACPI_DMAR_ATSR;
585 1.1 jruoho
586 1.1 jruoho /* Masks for Flags field above */
587 1.1 jruoho
588 1.1 jruoho #define ACPI_DMAR_ALL_PORTS (1)
589 1.1 jruoho
590 1.1 jruoho
591 1.1 jruoho /* 3: Remapping Hardware Static Affinity Structure */
592 1.1 jruoho
593 1.1 jruoho typedef struct acpi_dmar_rhsa
594 1.1 jruoho {
595 1.1 jruoho ACPI_DMAR_HEADER Header;
596 1.1 jruoho UINT32 Reserved;
597 1.1 jruoho UINT64 BaseAddress;
598 1.1 jruoho UINT32 ProximityDomain;
599 1.1 jruoho
600 1.1 jruoho } ACPI_DMAR_RHSA;
601 1.1 jruoho
602 1.1 jruoho
603 1.1.1.5 christos /* 4: ACPI Namespace Device Declaration Structure */
604 1.1.1.5 christos
605 1.1.1.5 christos typedef struct acpi_dmar_andd
606 1.1.1.5 christos {
607 1.1.1.5 christos ACPI_DMAR_HEADER Header;
608 1.1.1.5 christos UINT8 Reserved[3];
609 1.1.1.5 christos UINT8 DeviceNumber;
610 1.1.1.5 christos char DeviceName[1];
611 1.1.1.5 christos
612 1.1.1.5 christos } ACPI_DMAR_ANDD;
613 1.1.1.5 christos
614 1.1.1.5 christos
615 1.1 jruoho /*******************************************************************************
616 1.1 jruoho *
617 1.1 jruoho * HPET - High Precision Event Timer table
618 1.1 jruoho * Version 1
619 1.1 jruoho *
620 1.1 jruoho * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
621 1.1 jruoho * Version 1.0a, October 2004
622 1.1 jruoho *
623 1.1 jruoho ******************************************************************************/
624 1.1 jruoho
625 1.1 jruoho typedef struct acpi_table_hpet
626 1.1 jruoho {
627 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
628 1.1 jruoho UINT32 Id; /* Hardware ID of event timer block */
629 1.1 jruoho ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
630 1.1 jruoho UINT8 Sequence; /* HPET sequence number */
631 1.1 jruoho UINT16 MinimumTick; /* Main counter min tick, periodic mode */
632 1.1 jruoho UINT8 Flags;
633 1.1 jruoho
634 1.1 jruoho } ACPI_TABLE_HPET;
635 1.1 jruoho
636 1.1 jruoho /* Masks for Flags field above */
637 1.1 jruoho
638 1.1 jruoho #define ACPI_HPET_PAGE_PROTECT_MASK (3)
639 1.1 jruoho
640 1.1 jruoho /* Values for Page Protect flags */
641 1.1 jruoho
642 1.1 jruoho enum AcpiHpetPageProtect
643 1.1 jruoho {
644 1.1 jruoho ACPI_HPET_NO_PAGE_PROTECT = 0,
645 1.1 jruoho ACPI_HPET_PAGE_PROTECT4 = 1,
646 1.1 jruoho ACPI_HPET_PAGE_PROTECT64 = 2
647 1.1 jruoho };
648 1.1 jruoho
649 1.1 jruoho
650 1.1 jruoho /*******************************************************************************
651 1.1 jruoho *
652 1.1 jruoho * IBFT - Boot Firmware Table
653 1.1 jruoho * Version 1
654 1.1 jruoho *
655 1.1 jruoho * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
656 1.1 jruoho * Specification", Version 1.01, March 1, 2007
657 1.1 jruoho *
658 1.1 jruoho * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
659 1.1 jruoho * Therefore, it is not currently supported by the disassembler.
660 1.1 jruoho *
661 1.1 jruoho ******************************************************************************/
662 1.1 jruoho
663 1.1 jruoho typedef struct acpi_table_ibft
664 1.1 jruoho {
665 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
666 1.1 jruoho UINT8 Reserved[12];
667 1.1 jruoho
668 1.1 jruoho } ACPI_TABLE_IBFT;
669 1.1 jruoho
670 1.1 jruoho
671 1.1 jruoho /* IBFT common subtable header */
672 1.1 jruoho
673 1.1 jruoho typedef struct acpi_ibft_header
674 1.1 jruoho {
675 1.1 jruoho UINT8 Type;
676 1.1 jruoho UINT8 Version;
677 1.1 jruoho UINT16 Length;
678 1.1 jruoho UINT8 Index;
679 1.1 jruoho UINT8 Flags;
680 1.1 jruoho
681 1.1 jruoho } ACPI_IBFT_HEADER;
682 1.1 jruoho
683 1.1 jruoho /* Values for Type field above */
684 1.1 jruoho
685 1.1 jruoho enum AcpiIbftType
686 1.1 jruoho {
687 1.1 jruoho ACPI_IBFT_TYPE_NOT_USED = 0,
688 1.1 jruoho ACPI_IBFT_TYPE_CONTROL = 1,
689 1.1 jruoho ACPI_IBFT_TYPE_INITIATOR = 2,
690 1.1 jruoho ACPI_IBFT_TYPE_NIC = 3,
691 1.1 jruoho ACPI_IBFT_TYPE_TARGET = 4,
692 1.1 jruoho ACPI_IBFT_TYPE_EXTENSIONS = 5,
693 1.1 jruoho ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
694 1.1 jruoho };
695 1.1 jruoho
696 1.1 jruoho
697 1.1 jruoho /* IBFT subtables */
698 1.1 jruoho
699 1.1 jruoho typedef struct acpi_ibft_control
700 1.1 jruoho {
701 1.1 jruoho ACPI_IBFT_HEADER Header;
702 1.1 jruoho UINT16 Extensions;
703 1.1 jruoho UINT16 InitiatorOffset;
704 1.1 jruoho UINT16 Nic0Offset;
705 1.1 jruoho UINT16 Target0Offset;
706 1.1 jruoho UINT16 Nic1Offset;
707 1.1 jruoho UINT16 Target1Offset;
708 1.1 jruoho
709 1.1 jruoho } ACPI_IBFT_CONTROL;
710 1.1 jruoho
711 1.1 jruoho typedef struct acpi_ibft_initiator
712 1.1 jruoho {
713 1.1 jruoho ACPI_IBFT_HEADER Header;
714 1.1 jruoho UINT8 SnsServer[16];
715 1.1 jruoho UINT8 SlpServer[16];
716 1.1 jruoho UINT8 PrimaryServer[16];
717 1.1 jruoho UINT8 SecondaryServer[16];
718 1.1 jruoho UINT16 NameLength;
719 1.1 jruoho UINT16 NameOffset;
720 1.1 jruoho
721 1.1 jruoho } ACPI_IBFT_INITIATOR;
722 1.1 jruoho
723 1.1 jruoho typedef struct acpi_ibft_nic
724 1.1 jruoho {
725 1.1 jruoho ACPI_IBFT_HEADER Header;
726 1.1 jruoho UINT8 IpAddress[16];
727 1.1 jruoho UINT8 SubnetMaskPrefix;
728 1.1 jruoho UINT8 Origin;
729 1.1 jruoho UINT8 Gateway[16];
730 1.1 jruoho UINT8 PrimaryDns[16];
731 1.1 jruoho UINT8 SecondaryDns[16];
732 1.1 jruoho UINT8 Dhcp[16];
733 1.1 jruoho UINT16 Vlan;
734 1.1 jruoho UINT8 MacAddress[6];
735 1.1 jruoho UINT16 PciAddress;
736 1.1 jruoho UINT16 NameLength;
737 1.1 jruoho UINT16 NameOffset;
738 1.1 jruoho
739 1.1 jruoho } ACPI_IBFT_NIC;
740 1.1 jruoho
741 1.1 jruoho typedef struct acpi_ibft_target
742 1.1 jruoho {
743 1.1 jruoho ACPI_IBFT_HEADER Header;
744 1.1 jruoho UINT8 TargetIpAddress[16];
745 1.1 jruoho UINT16 TargetIpSocket;
746 1.1 jruoho UINT8 TargetBootLun[8];
747 1.1 jruoho UINT8 ChapType;
748 1.1 jruoho UINT8 NicAssociation;
749 1.1 jruoho UINT16 TargetNameLength;
750 1.1 jruoho UINT16 TargetNameOffset;
751 1.1 jruoho UINT16 ChapNameLength;
752 1.1 jruoho UINT16 ChapNameOffset;
753 1.1 jruoho UINT16 ChapSecretLength;
754 1.1 jruoho UINT16 ChapSecretOffset;
755 1.1 jruoho UINT16 ReverseChapNameLength;
756 1.1 jruoho UINT16 ReverseChapNameOffset;
757 1.1 jruoho UINT16 ReverseChapSecretLength;
758 1.1 jruoho UINT16 ReverseChapSecretOffset;
759 1.1 jruoho
760 1.1 jruoho } ACPI_IBFT_TARGET;
761 1.1 jruoho
762 1.1 jruoho
763 1.1 jruoho /*******************************************************************************
764 1.1 jruoho *
765 1.1.1.7 christos * IORT - IO Remapping Table
766 1.1.1.7 christos *
767 1.1.1.7 christos * Conforms to "IO Remapping Table System Software on ARM Platforms",
768 1.1.1.9 christos * Document number: ARM DEN 0049B, October 2015
769 1.1.1.7 christos *
770 1.1.1.7 christos ******************************************************************************/
771 1.1.1.7 christos
772 1.1.1.7 christos typedef struct acpi_table_iort
773 1.1.1.7 christos {
774 1.1.1.7 christos ACPI_TABLE_HEADER Header;
775 1.1.1.7 christos UINT32 NodeCount;
776 1.1.1.7 christos UINT32 NodeOffset;
777 1.1.1.7 christos UINT32 Reserved;
778 1.1.1.7 christos
779 1.1.1.7 christos } ACPI_TABLE_IORT;
780 1.1.1.7 christos
781 1.1.1.7 christos
782 1.1.1.7 christos /*
783 1.1.1.7 christos * IORT subtables
784 1.1.1.7 christos */
785 1.1.1.7 christos typedef struct acpi_iort_node
786 1.1.1.7 christos {
787 1.1.1.7 christos UINT8 Type;
788 1.1.1.7 christos UINT16 Length;
789 1.1.1.7 christos UINT8 Revision;
790 1.1.1.7 christos UINT32 Reserved;
791 1.1.1.7 christos UINT32 MappingCount;
792 1.1.1.7 christos UINT32 MappingOffset;
793 1.1.1.7 christos char NodeData[1];
794 1.1.1.7 christos
795 1.1.1.7 christos } ACPI_IORT_NODE;
796 1.1.1.7 christos
797 1.1.1.7 christos /* Values for subtable Type above */
798 1.1.1.7 christos
799 1.1.1.7 christos enum AcpiIortNodeType
800 1.1.1.7 christos {
801 1.1.1.7 christos ACPI_IORT_NODE_ITS_GROUP = 0x00,
802 1.1.1.7 christos ACPI_IORT_NODE_NAMED_COMPONENT = 0x01,
803 1.1.1.7 christos ACPI_IORT_NODE_PCI_ROOT_COMPLEX = 0x02,
804 1.1.1.9 christos ACPI_IORT_NODE_SMMU = 0x03,
805 1.1.1.9 christos ACPI_IORT_NODE_SMMU_V3 = 0x04
806 1.1.1.7 christos };
807 1.1.1.7 christos
808 1.1.1.7 christos
809 1.1.1.7 christos typedef struct acpi_iort_id_mapping
810 1.1.1.7 christos {
811 1.1.1.7 christos UINT32 InputBase; /* Lowest value in input range */
812 1.1.1.7 christos UINT32 IdCount; /* Number of IDs */
813 1.1.1.7 christos UINT32 OutputBase; /* Lowest value in output range */
814 1.1.1.7 christos UINT32 OutputReference; /* A reference to the output node */
815 1.1.1.7 christos UINT32 Flags;
816 1.1.1.7 christos
817 1.1.1.7 christos } ACPI_IORT_ID_MAPPING;
818 1.1.1.7 christos
819 1.1.1.7 christos /* Masks for Flags field above for IORT subtable */
820 1.1.1.7 christos
821 1.1.1.7 christos #define ACPI_IORT_ID_SINGLE_MAPPING (1)
822 1.1.1.7 christos
823 1.1.1.7 christos
824 1.1.1.7 christos typedef struct acpi_iort_memory_access
825 1.1.1.7 christos {
826 1.1.1.7 christos UINT32 CacheCoherency;
827 1.1.1.7 christos UINT8 Hints;
828 1.1.1.7 christos UINT16 Reserved;
829 1.1.1.7 christos UINT8 MemoryFlags;
830 1.1.1.7 christos
831 1.1.1.7 christos } ACPI_IORT_MEMORY_ACCESS;
832 1.1.1.7 christos
833 1.1.1.7 christos /* Values for CacheCoherency field above */
834 1.1.1.7 christos
835 1.1.1.7 christos #define ACPI_IORT_NODE_COHERENT 0x00000001 /* The device node is fully coherent */
836 1.1.1.7 christos #define ACPI_IORT_NODE_NOT_COHERENT 0x00000000 /* The device node is not coherent */
837 1.1.1.7 christos
838 1.1.1.7 christos /* Masks for Hints field above */
839 1.1.1.7 christos
840 1.1.1.7 christos #define ACPI_IORT_HT_TRANSIENT (1)
841 1.1.1.7 christos #define ACPI_IORT_HT_WRITE (1<<1)
842 1.1.1.7 christos #define ACPI_IORT_HT_READ (1<<2)
843 1.1.1.7 christos #define ACPI_IORT_HT_OVERRIDE (1<<3)
844 1.1.1.7 christos
845 1.1.1.7 christos /* Masks for MemoryFlags field above */
846 1.1.1.7 christos
847 1.1.1.7 christos #define ACPI_IORT_MF_COHERENCY (1)
848 1.1.1.7 christos #define ACPI_IORT_MF_ATTRIBUTES (1<<1)
849 1.1.1.7 christos
850 1.1.1.7 christos
851 1.1.1.7 christos /*
852 1.1.1.7 christos * IORT node specific subtables
853 1.1.1.7 christos */
854 1.1.1.7 christos typedef struct acpi_iort_its_group
855 1.1.1.7 christos {
856 1.1.1.7 christos UINT32 ItsCount;
857 1.1.1.7 christos UINT32 Identifiers[1]; /* GIC ITS identifier arrary */
858 1.1.1.7 christos
859 1.1.1.7 christos } ACPI_IORT_ITS_GROUP;
860 1.1.1.7 christos
861 1.1.1.7 christos
862 1.1.1.7 christos typedef struct acpi_iort_named_component
863 1.1.1.7 christos {
864 1.1.1.7 christos UINT32 NodeFlags;
865 1.1.1.7 christos UINT64 MemoryProperties; /* Memory access properties */
866 1.1.1.7 christos UINT8 MemoryAddressLimit; /* Memory address size limit */
867 1.1.1.7 christos char DeviceName[1]; /* Path of namespace object */
868 1.1.1.7 christos
869 1.1.1.7 christos } ACPI_IORT_NAMED_COMPONENT;
870 1.1.1.7 christos
871 1.1.1.7 christos
872 1.1.1.7 christos typedef struct acpi_iort_root_complex
873 1.1.1.7 christos {
874 1.1.1.7 christos UINT64 MemoryProperties; /* Memory access properties */
875 1.1.1.7 christos UINT32 AtsAttribute;
876 1.1.1.7 christos UINT32 PciSegmentNumber;
877 1.1.1.7 christos
878 1.1.1.7 christos } ACPI_IORT_ROOT_COMPLEX;
879 1.1.1.7 christos
880 1.1.1.7 christos /* Values for AtsAttribute field above */
881 1.1.1.7 christos
882 1.1.1.7 christos #define ACPI_IORT_ATS_SUPPORTED 0x00000001 /* The root complex supports ATS */
883 1.1.1.7 christos #define ACPI_IORT_ATS_UNSUPPORTED 0x00000000 /* The root complex doesn't support ATS */
884 1.1.1.7 christos
885 1.1.1.7 christos
886 1.1.1.7 christos typedef struct acpi_iort_smmu
887 1.1.1.7 christos {
888 1.1.1.7 christos UINT64 BaseAddress; /* SMMU base address */
889 1.1.1.7 christos UINT64 Span; /* Length of memory range */
890 1.1.1.7 christos UINT32 Model;
891 1.1.1.7 christos UINT32 Flags;
892 1.1.1.7 christos UINT32 GlobalInterruptOffset;
893 1.1.1.7 christos UINT32 ContextInterruptCount;
894 1.1.1.7 christos UINT32 ContextInterruptOffset;
895 1.1.1.7 christos UINT32 PmuInterruptCount;
896 1.1.1.7 christos UINT32 PmuInterruptOffset;
897 1.1.1.7 christos UINT64 Interrupts[1]; /* Interrupt array */
898 1.1.1.7 christos
899 1.1.1.7 christos } ACPI_IORT_SMMU;
900 1.1.1.7 christos
901 1.1.1.7 christos /* Values for Model field above */
902 1.1.1.7 christos
903 1.1.1.7 christos #define ACPI_IORT_SMMU_V1 0x00000000 /* Generic SMMUv1 */
904 1.1.1.7 christos #define ACPI_IORT_SMMU_V2 0x00000001 /* Generic SMMUv2 */
905 1.1.1.7 christos #define ACPI_IORT_SMMU_CORELINK_MMU400 0x00000002 /* ARM Corelink MMU-400 */
906 1.1.1.7 christos #define ACPI_IORT_SMMU_CORELINK_MMU500 0x00000003 /* ARM Corelink MMU-500 */
907 1.1.1.7 christos
908 1.1.1.7 christos /* Masks for Flags field above */
909 1.1.1.7 christos
910 1.1.1.7 christos #define ACPI_IORT_SMMU_DVM_SUPPORTED (1)
911 1.1.1.7 christos #define ACPI_IORT_SMMU_COHERENT_WALK (1<<1)
912 1.1.1.7 christos
913 1.1.1.11 christos /* Global interrupt format */
914 1.1.1.11 christos
915 1.1.1.11 christos typedef struct acpi_iort_smmu_gsi
916 1.1.1.11 christos {
917 1.1.1.11 christos UINT32 NSgIrpt;
918 1.1.1.11 christos UINT32 NSgIrptFlags;
919 1.1.1.11 christos UINT32 NSgCfgIrpt;
920 1.1.1.11 christos UINT32 NSgCfgIrptFlags;
921 1.1.1.11 christos } ACPI_IORT_SMMU_GSI;
922 1.1.1.11 christos
923 1.1.1.7 christos
924 1.1.1.9 christos typedef struct acpi_iort_smmu_v3
925 1.1.1.9 christos {
926 1.1.1.9 christos UINT64 BaseAddress; /* SMMUv3 base address */
927 1.1.1.9 christos UINT32 Flags;
928 1.1.1.9 christos UINT32 Reserved;
929 1.1.1.9 christos UINT64 VatosAddress;
930 1.1.1.9 christos UINT32 Model; /* O: generic SMMUv3 */
931 1.1.1.9 christos UINT32 EventGsiv;
932 1.1.1.9 christos UINT32 PriGsiv;
933 1.1.1.9 christos UINT32 GerrGsiv;
934 1.1.1.9 christos UINT32 SyncGsiv;
935 1.1.1.9 christos
936 1.1.1.9 christos } ACPI_IORT_SMMU_V3;
937 1.1.1.9 christos
938 1.1.1.9 christos /* Masks for Flags field above */
939 1.1.1.9 christos
940 1.1.1.9 christos #define ACPI_IORT_SMMU_V3_COHACC_OVERRIDE (1)
941 1.1.1.9 christos #define ACPI_IORT_SMMU_V3_HTTU_OVERRIDE (1<<1)
942 1.1.1.9 christos
943 1.1.1.9 christos
944 1.1.1.7 christos /*******************************************************************************
945 1.1.1.7 christos *
946 1.1 jruoho * IVRS - I/O Virtualization Reporting Structure
947 1.1 jruoho * Version 1
948 1.1 jruoho *
949 1.1 jruoho * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification",
950 1.1 jruoho * Revision 1.26, February 2009.
951 1.1 jruoho *
952 1.1 jruoho ******************************************************************************/
953 1.1 jruoho
954 1.1 jruoho typedef struct acpi_table_ivrs
955 1.1 jruoho {
956 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
957 1.1 jruoho UINT32 Info; /* Common virtualization info */
958 1.1 jruoho UINT64 Reserved;
959 1.1 jruoho
960 1.1 jruoho } ACPI_TABLE_IVRS;
961 1.1 jruoho
962 1.1 jruoho /* Values for Info field above */
963 1.1 jruoho
964 1.1 jruoho #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */
965 1.1 jruoho #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */
966 1.1 jruoho #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */
967 1.1 jruoho
968 1.1 jruoho
969 1.1 jruoho /* IVRS subtable header */
970 1.1 jruoho
971 1.1 jruoho typedef struct acpi_ivrs_header
972 1.1 jruoho {
973 1.1 jruoho UINT8 Type; /* Subtable type */
974 1.1 jruoho UINT8 Flags;
975 1.1 jruoho UINT16 Length; /* Subtable length */
976 1.1 jruoho UINT16 DeviceId; /* ID of IOMMU */
977 1.1 jruoho
978 1.1 jruoho } ACPI_IVRS_HEADER;
979 1.1 jruoho
980 1.1 jruoho /* Values for subtable Type above */
981 1.1 jruoho
982 1.1 jruoho enum AcpiIvrsType
983 1.1 jruoho {
984 1.1 jruoho ACPI_IVRS_TYPE_HARDWARE = 0x10,
985 1.1 jruoho ACPI_IVRS_TYPE_MEMORY1 = 0x20,
986 1.1 jruoho ACPI_IVRS_TYPE_MEMORY2 = 0x21,
987 1.1 jruoho ACPI_IVRS_TYPE_MEMORY3 = 0x22
988 1.1 jruoho };
989 1.1 jruoho
990 1.1 jruoho /* Masks for Flags field above for IVHD subtable */
991 1.1 jruoho
992 1.1 jruoho #define ACPI_IVHD_TT_ENABLE (1)
993 1.1 jruoho #define ACPI_IVHD_PASS_PW (1<<1)
994 1.1 jruoho #define ACPI_IVHD_RES_PASS_PW (1<<2)
995 1.1 jruoho #define ACPI_IVHD_ISOC (1<<3)
996 1.1 jruoho #define ACPI_IVHD_IOTLB (1<<4)
997 1.1 jruoho
998 1.1 jruoho /* Masks for Flags field above for IVMD subtable */
999 1.1 jruoho
1000 1.1 jruoho #define ACPI_IVMD_UNITY (1)
1001 1.1 jruoho #define ACPI_IVMD_READ (1<<1)
1002 1.1 jruoho #define ACPI_IVMD_WRITE (1<<2)
1003 1.1 jruoho #define ACPI_IVMD_EXCLUSION_RANGE (1<<3)
1004 1.1 jruoho
1005 1.1 jruoho
1006 1.1 jruoho /*
1007 1.1 jruoho * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER
1008 1.1 jruoho */
1009 1.1 jruoho
1010 1.1 jruoho /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */
1011 1.1 jruoho
1012 1.1 jruoho typedef struct acpi_ivrs_hardware
1013 1.1 jruoho {
1014 1.1 jruoho ACPI_IVRS_HEADER Header;
1015 1.1 jruoho UINT16 CapabilityOffset; /* Offset for IOMMU control fields */
1016 1.1 jruoho UINT64 BaseAddress; /* IOMMU control registers */
1017 1.1 jruoho UINT16 PciSegmentGroup;
1018 1.1 jruoho UINT16 Info; /* MSI number and unit ID */
1019 1.1 jruoho UINT32 Reserved;
1020 1.1 jruoho
1021 1.1 jruoho } ACPI_IVRS_HARDWARE;
1022 1.1 jruoho
1023 1.1 jruoho /* Masks for Info field above */
1024 1.1 jruoho
1025 1.1 jruoho #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
1026 1.1 jruoho #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */
1027 1.1 jruoho
1028 1.1 jruoho
1029 1.1 jruoho /*
1030 1.1 jruoho * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure.
1031 1.1 jruoho * Upper two bits of the Type field are the (encoded) length of the structure.
1032 1.1 jruoho * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries
1033 1.1 jruoho * are reserved for future use but not defined.
1034 1.1 jruoho */
1035 1.1 jruoho typedef struct acpi_ivrs_de_header
1036 1.1 jruoho {
1037 1.1 jruoho UINT8 Type;
1038 1.1 jruoho UINT16 Id;
1039 1.1 jruoho UINT8 DataSetting;
1040 1.1 jruoho
1041 1.1 jruoho } ACPI_IVRS_DE_HEADER;
1042 1.1 jruoho
1043 1.1 jruoho /* Length of device entry is in the top two bits of Type field above */
1044 1.1 jruoho
1045 1.1 jruoho #define ACPI_IVHD_ENTRY_LENGTH 0xC0
1046 1.1 jruoho
1047 1.1 jruoho /* Values for device entry Type field above */
1048 1.1 jruoho
1049 1.1 jruoho enum AcpiIvrsDeviceEntryType
1050 1.1 jruoho {
1051 1.1 jruoho /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */
1052 1.1 jruoho
1053 1.1 jruoho ACPI_IVRS_TYPE_PAD4 = 0,
1054 1.1 jruoho ACPI_IVRS_TYPE_ALL = 1,
1055 1.1 jruoho ACPI_IVRS_TYPE_SELECT = 2,
1056 1.1 jruoho ACPI_IVRS_TYPE_START = 3,
1057 1.1 jruoho ACPI_IVRS_TYPE_END = 4,
1058 1.1 jruoho
1059 1.1 jruoho /* 8-byte device entries */
1060 1.1 jruoho
1061 1.1 jruoho ACPI_IVRS_TYPE_PAD8 = 64,
1062 1.1 jruoho ACPI_IVRS_TYPE_NOT_USED = 65,
1063 1.1 jruoho ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */
1064 1.1 jruoho ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */
1065 1.1 jruoho ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */
1066 1.1 jruoho ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */
1067 1.1 jruoho ACPI_IVRS_TYPE_SPECIAL = 72 /* Uses ACPI_IVRS_DEVICE8C */
1068 1.1 jruoho };
1069 1.1 jruoho
1070 1.1 jruoho /* Values for Data field above */
1071 1.1 jruoho
1072 1.1 jruoho #define ACPI_IVHD_INIT_PASS (1)
1073 1.1 jruoho #define ACPI_IVHD_EINT_PASS (1<<1)
1074 1.1 jruoho #define ACPI_IVHD_NMI_PASS (1<<2)
1075 1.1 jruoho #define ACPI_IVHD_SYSTEM_MGMT (3<<4)
1076 1.1 jruoho #define ACPI_IVHD_LINT0_PASS (1<<6)
1077 1.1 jruoho #define ACPI_IVHD_LINT1_PASS (1<<7)
1078 1.1 jruoho
1079 1.1 jruoho
1080 1.1 jruoho /* Types 0-4: 4-byte device entry */
1081 1.1 jruoho
1082 1.1 jruoho typedef struct acpi_ivrs_device4
1083 1.1 jruoho {
1084 1.1 jruoho ACPI_IVRS_DE_HEADER Header;
1085 1.1 jruoho
1086 1.1 jruoho } ACPI_IVRS_DEVICE4;
1087 1.1 jruoho
1088 1.1 jruoho /* Types 66-67: 8-byte device entry */
1089 1.1 jruoho
1090 1.1 jruoho typedef struct acpi_ivrs_device8a
1091 1.1 jruoho {
1092 1.1 jruoho ACPI_IVRS_DE_HEADER Header;
1093 1.1 jruoho UINT8 Reserved1;
1094 1.1 jruoho UINT16 UsedId;
1095 1.1 jruoho UINT8 Reserved2;
1096 1.1 jruoho
1097 1.1 jruoho } ACPI_IVRS_DEVICE8A;
1098 1.1 jruoho
1099 1.1 jruoho /* Types 70-71: 8-byte device entry */
1100 1.1 jruoho
1101 1.1 jruoho typedef struct acpi_ivrs_device8b
1102 1.1 jruoho {
1103 1.1 jruoho ACPI_IVRS_DE_HEADER Header;
1104 1.1 jruoho UINT32 ExtendedData;
1105 1.1 jruoho
1106 1.1 jruoho } ACPI_IVRS_DEVICE8B;
1107 1.1 jruoho
1108 1.1 jruoho /* Values for ExtendedData above */
1109 1.1 jruoho
1110 1.1 jruoho #define ACPI_IVHD_ATS_DISABLED (1<<31)
1111 1.1 jruoho
1112 1.1 jruoho /* Type 72: 8-byte device entry */
1113 1.1 jruoho
1114 1.1 jruoho typedef struct acpi_ivrs_device8c
1115 1.1 jruoho {
1116 1.1 jruoho ACPI_IVRS_DE_HEADER Header;
1117 1.1 jruoho UINT8 Handle;
1118 1.1 jruoho UINT16 UsedId;
1119 1.1 jruoho UINT8 Variety;
1120 1.1 jruoho
1121 1.1 jruoho } ACPI_IVRS_DEVICE8C;
1122 1.1 jruoho
1123 1.1 jruoho /* Values for Variety field above */
1124 1.1 jruoho
1125 1.1 jruoho #define ACPI_IVHD_IOAPIC 1
1126 1.1 jruoho #define ACPI_IVHD_HPET 2
1127 1.1 jruoho
1128 1.1 jruoho
1129 1.1 jruoho /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */
1130 1.1 jruoho
1131 1.1 jruoho typedef struct acpi_ivrs_memory
1132 1.1 jruoho {
1133 1.1 jruoho ACPI_IVRS_HEADER Header;
1134 1.1 jruoho UINT16 AuxData;
1135 1.1 jruoho UINT64 Reserved;
1136 1.1 jruoho UINT64 StartAddress;
1137 1.1 jruoho UINT64 MemoryLength;
1138 1.1 jruoho
1139 1.1 jruoho } ACPI_IVRS_MEMORY;
1140 1.1 jruoho
1141 1.1 jruoho
1142 1.1 jruoho /*******************************************************************************
1143 1.1 jruoho *
1144 1.1.1.5 christos * LPIT - Low Power Idle Table
1145 1.1.1.5 christos *
1146 1.1.1.7 christos * Conforms to "ACPI Low Power Idle Table (LPIT)" July 2014.
1147 1.1.1.5 christos *
1148 1.1.1.5 christos ******************************************************************************/
1149 1.1.1.5 christos
1150 1.1.1.5 christos typedef struct acpi_table_lpit
1151 1.1.1.5 christos {
1152 1.1.1.5 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1153 1.1.1.5 christos
1154 1.1.1.5 christos } ACPI_TABLE_LPIT;
1155 1.1.1.5 christos
1156 1.1.1.5 christos
1157 1.1.1.5 christos /* LPIT subtable header */
1158 1.1.1.5 christos
1159 1.1.1.5 christos typedef struct acpi_lpit_header
1160 1.1.1.5 christos {
1161 1.1.1.5 christos UINT32 Type; /* Subtable type */
1162 1.1.1.5 christos UINT32 Length; /* Subtable length */
1163 1.1.1.5 christos UINT16 UniqueId;
1164 1.1.1.5 christos UINT16 Reserved;
1165 1.1.1.5 christos UINT32 Flags;
1166 1.1.1.5 christos
1167 1.1.1.5 christos } ACPI_LPIT_HEADER;
1168 1.1.1.5 christos
1169 1.1.1.5 christos /* Values for subtable Type above */
1170 1.1.1.5 christos
1171 1.1.1.5 christos enum AcpiLpitType
1172 1.1.1.5 christos {
1173 1.1.1.5 christos ACPI_LPIT_TYPE_NATIVE_CSTATE = 0x00,
1174 1.1.1.7 christos ACPI_LPIT_TYPE_RESERVED = 0x01 /* 1 and above are reserved */
1175 1.1.1.5 christos };
1176 1.1.1.5 christos
1177 1.1.1.5 christos /* Masks for Flags field above */
1178 1.1.1.5 christos
1179 1.1.1.5 christos #define ACPI_LPIT_STATE_DISABLED (1)
1180 1.1.1.5 christos #define ACPI_LPIT_NO_COUNTER (1<<1)
1181 1.1.1.5 christos
1182 1.1.1.5 christos /*
1183 1.1.1.5 christos * LPIT subtables, correspond to Type in ACPI_LPIT_HEADER
1184 1.1.1.5 christos */
1185 1.1.1.5 christos
1186 1.1.1.5 christos /* 0x00: Native C-state instruction based LPI structure */
1187 1.1.1.5 christos
1188 1.1.1.5 christos typedef struct acpi_lpit_native
1189 1.1.1.5 christos {
1190 1.1.1.5 christos ACPI_LPIT_HEADER Header;
1191 1.1.1.5 christos ACPI_GENERIC_ADDRESS EntryTrigger;
1192 1.1.1.5 christos UINT32 Residency;
1193 1.1.1.5 christos UINT32 Latency;
1194 1.1.1.5 christos ACPI_GENERIC_ADDRESS ResidencyCounter;
1195 1.1.1.5 christos UINT64 CounterFrequency;
1196 1.1.1.5 christos
1197 1.1.1.5 christos } ACPI_LPIT_NATIVE;
1198 1.1.1.5 christos
1199 1.1.1.5 christos
1200 1.1.1.5 christos /*******************************************************************************
1201 1.1.1.5 christos *
1202 1.1.1.5 christos * MCFG - PCI Memory Mapped Configuration table and subtable
1203 1.1 jruoho * Version 1
1204 1.1 jruoho *
1205 1.1 jruoho * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005
1206 1.1 jruoho *
1207 1.1 jruoho ******************************************************************************/
1208 1.1 jruoho
1209 1.1 jruoho typedef struct acpi_table_mcfg
1210 1.1 jruoho {
1211 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1212 1.1 jruoho UINT8 Reserved[8];
1213 1.1 jruoho
1214 1.1 jruoho } ACPI_TABLE_MCFG;
1215 1.1 jruoho
1216 1.1 jruoho
1217 1.1 jruoho /* Subtable */
1218 1.1 jruoho
1219 1.1 jruoho typedef struct acpi_mcfg_allocation
1220 1.1 jruoho {
1221 1.1 jruoho UINT64 Address; /* Base address, processor-relative */
1222 1.1 jruoho UINT16 PciSegment; /* PCI segment group number */
1223 1.1 jruoho UINT8 StartBusNumber; /* Starting PCI Bus number */
1224 1.1 jruoho UINT8 EndBusNumber; /* Final PCI Bus number */
1225 1.1 jruoho UINT32 Reserved;
1226 1.1 jruoho
1227 1.1 jruoho } ACPI_MCFG_ALLOCATION;
1228 1.1 jruoho
1229 1.1 jruoho
1230 1.1 jruoho /*******************************************************************************
1231 1.1 jruoho *
1232 1.1 jruoho * MCHI - Management Controller Host Interface Table
1233 1.1 jruoho * Version 1
1234 1.1 jruoho *
1235 1.1 jruoho * Conforms to "Management Component Transport Protocol (MCTP) Host
1236 1.1 jruoho * Interface Specification", Revision 1.0.0a, October 13, 2009
1237 1.1 jruoho *
1238 1.1 jruoho ******************************************************************************/
1239 1.1 jruoho
1240 1.1 jruoho typedef struct acpi_table_mchi
1241 1.1 jruoho {
1242 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1243 1.1 jruoho UINT8 InterfaceType;
1244 1.1 jruoho UINT8 Protocol;
1245 1.1 jruoho UINT64 ProtocolData;
1246 1.1 jruoho UINT8 InterruptType;
1247 1.1 jruoho UINT8 Gpe;
1248 1.1 jruoho UINT8 PciDeviceFlag;
1249 1.1 jruoho UINT32 GlobalInterrupt;
1250 1.1 jruoho ACPI_GENERIC_ADDRESS ControlRegister;
1251 1.1 jruoho UINT8 PciSegment;
1252 1.1 jruoho UINT8 PciBus;
1253 1.1 jruoho UINT8 PciDevice;
1254 1.1 jruoho UINT8 PciFunction;
1255 1.1 jruoho
1256 1.1 jruoho } ACPI_TABLE_MCHI;
1257 1.1 jruoho
1258 1.1 jruoho
1259 1.1 jruoho /*******************************************************************************
1260 1.1 jruoho *
1261 1.1.1.6 christos * MSDM - Microsoft Data Management table
1262 1.1.1.6 christos *
1263 1.1.1.6 christos * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
1264 1.1.1.6 christos * November 29, 2011. Copyright 2011 Microsoft
1265 1.1.1.6 christos *
1266 1.1.1.6 christos ******************************************************************************/
1267 1.1.1.6 christos
1268 1.1.1.6 christos /* Basic MSDM table is only the common ACPI header */
1269 1.1.1.6 christos
1270 1.1.1.6 christos typedef struct acpi_table_msdm
1271 1.1.1.6 christos {
1272 1.1.1.6 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1273 1.1.1.6 christos
1274 1.1.1.6 christos } ACPI_TABLE_MSDM;
1275 1.1.1.6 christos
1276 1.1.1.6 christos
1277 1.1.1.6 christos /*******************************************************************************
1278 1.1.1.6 christos *
1279 1.1.1.4 christos * MTMR - MID Timer Table
1280 1.1.1.4 christos * Version 1
1281 1.1.1.4 christos *
1282 1.1.1.4 christos * Conforms to "Simple Firmware Interface Specification",
1283 1.1.1.4 christos * Draft 0.8.2, Oct 19, 2010
1284 1.1.1.4 christos * NOTE: The ACPI MTMR is equivalent to the SFI MTMR table.
1285 1.1.1.4 christos *
1286 1.1.1.4 christos ******************************************************************************/
1287 1.1.1.4 christos
1288 1.1.1.4 christos typedef struct acpi_table_mtmr
1289 1.1.1.4 christos {
1290 1.1.1.4 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1291 1.1.1.4 christos
1292 1.1.1.4 christos } ACPI_TABLE_MTMR;
1293 1.1.1.4 christos
1294 1.1.1.4 christos /* MTMR entry */
1295 1.1.1.4 christos
1296 1.1.1.4 christos typedef struct acpi_mtmr_entry
1297 1.1.1.4 christos {
1298 1.1.1.4 christos ACPI_GENERIC_ADDRESS PhysicalAddress;
1299 1.1.1.4 christos UINT32 Frequency;
1300 1.1.1.4 christos UINT32 Irq;
1301 1.1.1.4 christos
1302 1.1.1.4 christos } ACPI_MTMR_ENTRY;
1303 1.1.1.4 christos
1304 1.1.1.4 christos
1305 1.1.1.4 christos /*******************************************************************************
1306 1.1.1.4 christos *
1307 1.1.1.3 jruoho * SLIC - Software Licensing Description Table
1308 1.1.1.3 jruoho *
1309 1.1.1.6 christos * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)",
1310 1.1.1.6 christos * November 29, 2011. Copyright 2011 Microsoft
1311 1.1.1.3 jruoho *
1312 1.1.1.3 jruoho ******************************************************************************/
1313 1.1.1.3 jruoho
1314 1.1.1.3 jruoho /* Basic SLIC table is only the common ACPI header */
1315 1.1.1.3 jruoho
1316 1.1.1.3 jruoho typedef struct acpi_table_slic
1317 1.1.1.3 jruoho {
1318 1.1.1.3 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1319 1.1.1.3 jruoho
1320 1.1.1.3 jruoho } ACPI_TABLE_SLIC;
1321 1.1.1.3 jruoho
1322 1.1.1.3 jruoho
1323 1.1.1.3 jruoho /*******************************************************************************
1324 1.1.1.3 jruoho *
1325 1.1 jruoho * SPCR - Serial Port Console Redirection table
1326 1.1.1.9 christos * Version 2
1327 1.1 jruoho *
1328 1.1 jruoho * Conforms to "Serial Port Console Redirection Table",
1329 1.1.1.9 christos * Version 1.03, August 10, 2015
1330 1.1 jruoho *
1331 1.1 jruoho ******************************************************************************/
1332 1.1 jruoho
1333 1.1 jruoho typedef struct acpi_table_spcr
1334 1.1 jruoho {
1335 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1336 1.1 jruoho UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */
1337 1.1 jruoho UINT8 Reserved[3];
1338 1.1 jruoho ACPI_GENERIC_ADDRESS SerialPort;
1339 1.1 jruoho UINT8 InterruptType;
1340 1.1 jruoho UINT8 PcInterrupt;
1341 1.1 jruoho UINT32 Interrupt;
1342 1.1 jruoho UINT8 BaudRate;
1343 1.1 jruoho UINT8 Parity;
1344 1.1 jruoho UINT8 StopBits;
1345 1.1 jruoho UINT8 FlowControl;
1346 1.1 jruoho UINT8 TerminalType;
1347 1.1 jruoho UINT8 Reserved1;
1348 1.1 jruoho UINT16 PciDeviceId;
1349 1.1 jruoho UINT16 PciVendorId;
1350 1.1 jruoho UINT8 PciBus;
1351 1.1 jruoho UINT8 PciDevice;
1352 1.1 jruoho UINT8 PciFunction;
1353 1.1 jruoho UINT32 PciFlags;
1354 1.1 jruoho UINT8 PciSegment;
1355 1.1 jruoho UINT32 Reserved2;
1356 1.1 jruoho
1357 1.1 jruoho } ACPI_TABLE_SPCR;
1358 1.1 jruoho
1359 1.1 jruoho /* Masks for PciFlags field above */
1360 1.1 jruoho
1361 1.1 jruoho #define ACPI_SPCR_DO_NOT_DISABLE (1)
1362 1.1 jruoho
1363 1.1.1.9 christos /* Values for Interface Type: See the definition of the DBG2 table */
1364 1.1.1.9 christos
1365 1.1 jruoho
1366 1.1 jruoho /*******************************************************************************
1367 1.1 jruoho *
1368 1.1 jruoho * SPMI - Server Platform Management Interface table
1369 1.1 jruoho * Version 5
1370 1.1 jruoho *
1371 1.1 jruoho * Conforms to "Intelligent Platform Management Interface Specification
1372 1.1 jruoho * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with
1373 1.1 jruoho * June 12, 2009 markup.
1374 1.1 jruoho *
1375 1.1 jruoho ******************************************************************************/
1376 1.1 jruoho
1377 1.1 jruoho typedef struct acpi_table_spmi
1378 1.1 jruoho {
1379 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1380 1.1 jruoho UINT8 InterfaceType;
1381 1.1 jruoho UINT8 Reserved; /* Must be 1 */
1382 1.1 jruoho UINT16 SpecRevision; /* Version of IPMI */
1383 1.1 jruoho UINT8 InterruptType;
1384 1.1 jruoho UINT8 GpeNumber; /* GPE assigned */
1385 1.1 jruoho UINT8 Reserved1;
1386 1.1 jruoho UINT8 PciDeviceFlag;
1387 1.1 jruoho UINT32 Interrupt;
1388 1.1 jruoho ACPI_GENERIC_ADDRESS IpmiRegister;
1389 1.1 jruoho UINT8 PciSegment;
1390 1.1 jruoho UINT8 PciBus;
1391 1.1 jruoho UINT8 PciDevice;
1392 1.1 jruoho UINT8 PciFunction;
1393 1.1 jruoho UINT8 Reserved2;
1394 1.1 jruoho
1395 1.1 jruoho } ACPI_TABLE_SPMI;
1396 1.1 jruoho
1397 1.1 jruoho /* Values for InterfaceType above */
1398 1.1 jruoho
1399 1.1 jruoho enum AcpiSpmiInterfaceTypes
1400 1.1 jruoho {
1401 1.1 jruoho ACPI_SPMI_NOT_USED = 0,
1402 1.1 jruoho ACPI_SPMI_KEYBOARD = 1,
1403 1.1 jruoho ACPI_SPMI_SMI = 2,
1404 1.1 jruoho ACPI_SPMI_BLOCK_TRANSFER = 3,
1405 1.1 jruoho ACPI_SPMI_SMBUS = 4,
1406 1.1 jruoho ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */
1407 1.1 jruoho };
1408 1.1 jruoho
1409 1.1 jruoho
1410 1.1 jruoho /*******************************************************************************
1411 1.1 jruoho *
1412 1.1 jruoho * TCPA - Trusted Computing Platform Alliance table
1413 1.1.1.7 christos * Version 2
1414 1.1.1.7 christos *
1415 1.1.1.7 christos * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
1416 1.1.1.7 christos * December 19, 2014
1417 1.1 jruoho *
1418 1.1.1.7 christos * NOTE: There are two versions of the table with the same signature --
1419 1.1.1.7 christos * the client version and the server version. The common PlatformClass
1420 1.1.1.7 christos * field is used to differentiate the two types of tables.
1421 1.1 jruoho *
1422 1.1 jruoho ******************************************************************************/
1423 1.1 jruoho
1424 1.1.1.7 christos typedef struct acpi_table_tcpa_hdr
1425 1.1 jruoho {
1426 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1427 1.1.1.7 christos UINT16 PlatformClass;
1428 1.1.1.7 christos
1429 1.1.1.7 christos } ACPI_TABLE_TCPA_HDR;
1430 1.1.1.7 christos
1431 1.1.1.7 christos /*
1432 1.1.1.7 christos * Values for PlatformClass above.
1433 1.1.1.7 christos * This is how the client and server subtables are differentiated
1434 1.1.1.7 christos */
1435 1.1.1.7 christos #define ACPI_TCPA_CLIENT_TABLE 0
1436 1.1.1.7 christos #define ACPI_TCPA_SERVER_TABLE 1
1437 1.1.1.7 christos
1438 1.1.1.7 christos
1439 1.1.1.7 christos typedef struct acpi_table_tcpa_client
1440 1.1.1.7 christos {
1441 1.1.1.7 christos UINT32 MinimumLogLength; /* Minimum length for the event log area */
1442 1.1.1.7 christos UINT64 LogAddress; /* Address of the event log area */
1443 1.1.1.7 christos
1444 1.1.1.7 christos } ACPI_TABLE_TCPA_CLIENT;
1445 1.1.1.7 christos
1446 1.1.1.7 christos typedef struct acpi_table_tcpa_server
1447 1.1.1.7 christos {
1448 1.1 jruoho UINT16 Reserved;
1449 1.1.1.7 christos UINT64 MinimumLogLength; /* Minimum length for the event log area */
1450 1.1 jruoho UINT64 LogAddress; /* Address of the event log area */
1451 1.1.1.7 christos UINT16 SpecRevision;
1452 1.1.1.7 christos UINT8 DeviceFlags;
1453 1.1.1.7 christos UINT8 InterruptFlags;
1454 1.1.1.7 christos UINT8 GpeNumber;
1455 1.1.1.7 christos UINT8 Reserved2[3];
1456 1.1.1.7 christos UINT32 GlobalInterrupt;
1457 1.1.1.7 christos ACPI_GENERIC_ADDRESS Address;
1458 1.1.1.7 christos UINT32 Reserved3;
1459 1.1.1.7 christos ACPI_GENERIC_ADDRESS ConfigAddress;
1460 1.1.1.7 christos UINT8 Group;
1461 1.1.1.7 christos UINT8 Bus; /* PCI Bus/Segment/Function numbers */
1462 1.1.1.7 christos UINT8 Device;
1463 1.1.1.7 christos UINT8 Function;
1464 1.1.1.7 christos
1465 1.1.1.7 christos } ACPI_TABLE_TCPA_SERVER;
1466 1.1.1.7 christos
1467 1.1.1.7 christos /* Values for DeviceFlags above */
1468 1.1.1.7 christos
1469 1.1.1.7 christos #define ACPI_TCPA_PCI_DEVICE (1)
1470 1.1.1.7 christos #define ACPI_TCPA_BUS_PNP (1<<1)
1471 1.1.1.7 christos #define ACPI_TCPA_ADDRESS_VALID (1<<2)
1472 1.1.1.7 christos
1473 1.1.1.7 christos /* Values for InterruptFlags above */
1474 1.1.1.7 christos
1475 1.1.1.7 christos #define ACPI_TCPA_INTERRUPT_MODE (1)
1476 1.1.1.7 christos #define ACPI_TCPA_INTERRUPT_POLARITY (1<<1)
1477 1.1.1.7 christos #define ACPI_TCPA_SCI_VIA_GPE (1<<2)
1478 1.1.1.7 christos #define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3)
1479 1.1.1.7 christos
1480 1.1.1.7 christos
1481 1.1.1.7 christos /*******************************************************************************
1482 1.1.1.7 christos *
1483 1.1.1.7 christos * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table
1484 1.1.1.7 christos * Version 4
1485 1.1.1.7 christos *
1486 1.1.1.7 christos * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0",
1487 1.1.1.7 christos * December 19, 2014
1488 1.1.1.7 christos *
1489 1.1.1.7 christos ******************************************************************************/
1490 1.1.1.7 christos
1491 1.1.1.7 christos typedef struct acpi_table_tpm2
1492 1.1.1.7 christos {
1493 1.1.1.7 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1494 1.1.1.7 christos UINT16 PlatformClass;
1495 1.1.1.7 christos UINT16 Reserved;
1496 1.1.1.7 christos UINT64 ControlAddress;
1497 1.1.1.7 christos UINT32 StartMethod;
1498 1.1.1.7 christos
1499 1.1.1.7 christos /* Platform-specific data follows */
1500 1.1.1.7 christos
1501 1.1.1.7 christos } ACPI_TABLE_TPM2;
1502 1.1.1.7 christos
1503 1.1.1.7 christos /* Values for StartMethod above */
1504 1.1 jruoho
1505 1.1.1.7 christos #define ACPI_TPM2_NOT_ALLOWED 0
1506 1.1.1.7 christos #define ACPI_TPM2_START_METHOD 2
1507 1.1.1.7 christos #define ACPI_TPM2_MEMORY_MAPPED 6
1508 1.1.1.7 christos #define ACPI_TPM2_COMMAND_BUFFER 7
1509 1.1.1.7 christos #define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8
1510 1.1 jruoho
1511 1.1 jruoho
1512 1.1 jruoho /*******************************************************************************
1513 1.1 jruoho *
1514 1.1 jruoho * UEFI - UEFI Boot optimization Table
1515 1.1 jruoho * Version 1
1516 1.1 jruoho *
1517 1.1 jruoho * Conforms to "Unified Extensible Firmware Interface Specification",
1518 1.1 jruoho * Version 2.3, May 8, 2009
1519 1.1 jruoho *
1520 1.1 jruoho ******************************************************************************/
1521 1.1 jruoho
1522 1.1 jruoho typedef struct acpi_table_uefi
1523 1.1 jruoho {
1524 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1525 1.1 jruoho UINT8 Identifier[16]; /* UUID identifier */
1526 1.1 jruoho UINT16 DataOffset; /* Offset of remaining data in table */
1527 1.1 jruoho
1528 1.1 jruoho } ACPI_TABLE_UEFI;
1529 1.1 jruoho
1530 1.1 jruoho
1531 1.1 jruoho /*******************************************************************************
1532 1.1 jruoho *
1533 1.1.1.4 christos * VRTC - Virtual Real Time Clock Table
1534 1.1.1.4 christos * Version 1
1535 1.1.1.4 christos *
1536 1.1.1.4 christos * Conforms to "Simple Firmware Interface Specification",
1537 1.1.1.4 christos * Draft 0.8.2, Oct 19, 2010
1538 1.1.1.4 christos * NOTE: The ACPI VRTC is equivalent to The SFI MRTC table.
1539 1.1.1.4 christos *
1540 1.1.1.4 christos ******************************************************************************/
1541 1.1.1.4 christos
1542 1.1.1.4 christos typedef struct acpi_table_vrtc
1543 1.1.1.4 christos {
1544 1.1.1.4 christos ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1545 1.1.1.4 christos
1546 1.1.1.4 christos } ACPI_TABLE_VRTC;
1547 1.1.1.4 christos
1548 1.1.1.4 christos /* VRTC entry */
1549 1.1.1.4 christos
1550 1.1.1.4 christos typedef struct acpi_vrtc_entry
1551 1.1.1.4 christos {
1552 1.1.1.4 christos ACPI_GENERIC_ADDRESS PhysicalAddress;
1553 1.1.1.4 christos UINT32 Irq;
1554 1.1.1.4 christos
1555 1.1.1.4 christos } ACPI_VRTC_ENTRY;
1556 1.1.1.4 christos
1557 1.1.1.4 christos
1558 1.1.1.4 christos /*******************************************************************************
1559 1.1.1.4 christos *
1560 1.1 jruoho * WAET - Windows ACPI Emulated devices Table
1561 1.1 jruoho * Version 1
1562 1.1 jruoho *
1563 1.1 jruoho * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009
1564 1.1 jruoho *
1565 1.1 jruoho ******************************************************************************/
1566 1.1 jruoho
1567 1.1 jruoho typedef struct acpi_table_waet
1568 1.1 jruoho {
1569 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1570 1.1 jruoho UINT32 Flags;
1571 1.1 jruoho
1572 1.1 jruoho } ACPI_TABLE_WAET;
1573 1.1 jruoho
1574 1.1 jruoho /* Masks for Flags field above */
1575 1.1 jruoho
1576 1.1 jruoho #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */
1577 1.1 jruoho #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */
1578 1.1 jruoho
1579 1.1 jruoho
1580 1.1 jruoho /*******************************************************************************
1581 1.1 jruoho *
1582 1.1 jruoho * WDAT - Watchdog Action Table
1583 1.1 jruoho * Version 1
1584 1.1 jruoho *
1585 1.1 jruoho * Conforms to "Hardware Watchdog Timers Design Specification",
1586 1.1 jruoho * Copyright 2006 Microsoft Corporation.
1587 1.1 jruoho *
1588 1.1 jruoho ******************************************************************************/
1589 1.1 jruoho
1590 1.1 jruoho typedef struct acpi_table_wdat
1591 1.1 jruoho {
1592 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1593 1.1 jruoho UINT32 HeaderLength; /* Watchdog Header Length */
1594 1.1 jruoho UINT16 PciSegment; /* PCI Segment number */
1595 1.1 jruoho UINT8 PciBus; /* PCI Bus number */
1596 1.1 jruoho UINT8 PciDevice; /* PCI Device number */
1597 1.1 jruoho UINT8 PciFunction; /* PCI Function number */
1598 1.1 jruoho UINT8 Reserved[3];
1599 1.1 jruoho UINT32 TimerPeriod; /* Period of one timer count (msec) */
1600 1.1 jruoho UINT32 MaxCount; /* Maximum counter value supported */
1601 1.1 jruoho UINT32 MinCount; /* Minimum counter value */
1602 1.1 jruoho UINT8 Flags;
1603 1.1 jruoho UINT8 Reserved2[3];
1604 1.1 jruoho UINT32 Entries; /* Number of watchdog entries that follow */
1605 1.1 jruoho
1606 1.1 jruoho } ACPI_TABLE_WDAT;
1607 1.1 jruoho
1608 1.1 jruoho /* Masks for Flags field above */
1609 1.1 jruoho
1610 1.1 jruoho #define ACPI_WDAT_ENABLED (1)
1611 1.1 jruoho #define ACPI_WDAT_STOPPED 0x80
1612 1.1 jruoho
1613 1.1 jruoho
1614 1.1 jruoho /* WDAT Instruction Entries (actions) */
1615 1.1 jruoho
1616 1.1 jruoho typedef struct acpi_wdat_entry
1617 1.1 jruoho {
1618 1.1 jruoho UINT8 Action;
1619 1.1 jruoho UINT8 Instruction;
1620 1.1 jruoho UINT16 Reserved;
1621 1.1 jruoho ACPI_GENERIC_ADDRESS RegisterRegion;
1622 1.1 jruoho UINT32 Value; /* Value used with Read/Write register */
1623 1.1 jruoho UINT32 Mask; /* Bitmask required for this register instruction */
1624 1.1 jruoho
1625 1.1 jruoho } ACPI_WDAT_ENTRY;
1626 1.1 jruoho
1627 1.1 jruoho /* Values for Action field above */
1628 1.1 jruoho
1629 1.1 jruoho enum AcpiWdatActions
1630 1.1 jruoho {
1631 1.1 jruoho ACPI_WDAT_RESET = 1,
1632 1.1 jruoho ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4,
1633 1.1 jruoho ACPI_WDAT_GET_COUNTDOWN = 5,
1634 1.1 jruoho ACPI_WDAT_SET_COUNTDOWN = 6,
1635 1.1 jruoho ACPI_WDAT_GET_RUNNING_STATE = 8,
1636 1.1 jruoho ACPI_WDAT_SET_RUNNING_STATE = 9,
1637 1.1 jruoho ACPI_WDAT_GET_STOPPED_STATE = 10,
1638 1.1 jruoho ACPI_WDAT_SET_STOPPED_STATE = 11,
1639 1.1 jruoho ACPI_WDAT_GET_REBOOT = 16,
1640 1.1 jruoho ACPI_WDAT_SET_REBOOT = 17,
1641 1.1 jruoho ACPI_WDAT_GET_SHUTDOWN = 18,
1642 1.1 jruoho ACPI_WDAT_SET_SHUTDOWN = 19,
1643 1.1 jruoho ACPI_WDAT_GET_STATUS = 32,
1644 1.1 jruoho ACPI_WDAT_SET_STATUS = 33,
1645 1.1 jruoho ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */
1646 1.1 jruoho };
1647 1.1 jruoho
1648 1.1 jruoho /* Values for Instruction field above */
1649 1.1 jruoho
1650 1.1 jruoho enum AcpiWdatInstructions
1651 1.1 jruoho {
1652 1.1 jruoho ACPI_WDAT_READ_VALUE = 0,
1653 1.1 jruoho ACPI_WDAT_READ_COUNTDOWN = 1,
1654 1.1 jruoho ACPI_WDAT_WRITE_VALUE = 2,
1655 1.1 jruoho ACPI_WDAT_WRITE_COUNTDOWN = 3,
1656 1.1 jruoho ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */
1657 1.1 jruoho ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */
1658 1.1 jruoho };
1659 1.1 jruoho
1660 1.1 jruoho
1661 1.1 jruoho /*******************************************************************************
1662 1.1 jruoho *
1663 1.1.1.2 jruoho * WDDT - Watchdog Descriptor Table
1664 1.1.1.2 jruoho * Version 1
1665 1.1.1.2 jruoho *
1666 1.1.1.2 jruoho * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
1667 1.1.1.2 jruoho * Version 001, September 2002
1668 1.1.1.2 jruoho *
1669 1.1.1.2 jruoho ******************************************************************************/
1670 1.1.1.2 jruoho
1671 1.1.1.2 jruoho typedef struct acpi_table_wddt
1672 1.1.1.2 jruoho {
1673 1.1.1.2 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1674 1.1.1.2 jruoho UINT16 SpecVersion;
1675 1.1.1.2 jruoho UINT16 TableVersion;
1676 1.1.1.2 jruoho UINT16 PciVendorId;
1677 1.1.1.2 jruoho ACPI_GENERIC_ADDRESS Address;
1678 1.1.1.2 jruoho UINT16 MaxCount; /* Maximum counter value supported */
1679 1.1.1.2 jruoho UINT16 MinCount; /* Minimum counter value supported */
1680 1.1.1.2 jruoho UINT16 Period;
1681 1.1.1.2 jruoho UINT16 Status;
1682 1.1.1.2 jruoho UINT16 Capability;
1683 1.1.1.2 jruoho
1684 1.1.1.2 jruoho } ACPI_TABLE_WDDT;
1685 1.1.1.2 jruoho
1686 1.1.1.2 jruoho /* Flags for Status field above */
1687 1.1.1.2 jruoho
1688 1.1.1.2 jruoho #define ACPI_WDDT_AVAILABLE (1)
1689 1.1.1.2 jruoho #define ACPI_WDDT_ACTIVE (1<<1)
1690 1.1.1.2 jruoho #define ACPI_WDDT_TCO_OS_OWNED (1<<2)
1691 1.1.1.2 jruoho #define ACPI_WDDT_USER_RESET (1<<11)
1692 1.1.1.2 jruoho #define ACPI_WDDT_WDT_RESET (1<<12)
1693 1.1.1.2 jruoho #define ACPI_WDDT_POWER_FAIL (1<<13)
1694 1.1.1.2 jruoho #define ACPI_WDDT_UNKNOWN_RESET (1<<14)
1695 1.1.1.2 jruoho
1696 1.1.1.2 jruoho /* Flags for Capability field above */
1697 1.1.1.2 jruoho
1698 1.1.1.2 jruoho #define ACPI_WDDT_AUTO_RESET (1)
1699 1.1.1.2 jruoho #define ACPI_WDDT_ALERT_SUPPORT (1<<1)
1700 1.1.1.2 jruoho
1701 1.1.1.2 jruoho
1702 1.1.1.2 jruoho /*******************************************************************************
1703 1.1.1.2 jruoho *
1704 1.1 jruoho * WDRT - Watchdog Resource Table
1705 1.1 jruoho * Version 1
1706 1.1 jruoho *
1707 1.1 jruoho * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003",
1708 1.1 jruoho * Version 1.01, August 28, 2006
1709 1.1 jruoho *
1710 1.1 jruoho ******************************************************************************/
1711 1.1 jruoho
1712 1.1 jruoho typedef struct acpi_table_wdrt
1713 1.1 jruoho {
1714 1.1 jruoho ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1715 1.1 jruoho ACPI_GENERIC_ADDRESS ControlRegister;
1716 1.1 jruoho ACPI_GENERIC_ADDRESS CountRegister;
1717 1.1 jruoho UINT16 PciDeviceId;
1718 1.1 jruoho UINT16 PciVendorId;
1719 1.1 jruoho UINT8 PciBus; /* PCI Bus number */
1720 1.1 jruoho UINT8 PciDevice; /* PCI Device number */
1721 1.1 jruoho UINT8 PciFunction; /* PCI Function number */
1722 1.1 jruoho UINT8 PciSegment; /* PCI Segment number */
1723 1.1 jruoho UINT16 MaxCount; /* Maximum counter value supported */
1724 1.1 jruoho UINT8 Units;
1725 1.1 jruoho
1726 1.1 jruoho } ACPI_TABLE_WDRT;
1727 1.1 jruoho
1728 1.1 jruoho
1729 1.1 jruoho /* Reset to default packing */
1730 1.1 jruoho
1731 1.1 jruoho #pragma pack()
1732 1.1 jruoho
1733 1.1 jruoho #endif /* __ACTBL2_H__ */
1734