~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/acpi/actbl1.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/acpi/actbl1.h (Version linux-6.11.5) and /include/acpi/actbl1.h (Version linux-4.16.18)


  1 /* SPDX-License-Identifier: BSD-3-Clause OR GP << 
  2 /*********************************************      1 /******************************************************************************
  3  *                                                  2  *
  4  * Name: actbl1.h - Additional ACPI table defi      3  * Name: actbl1.h - Additional ACPI table definitions
  5  *                                                  4  *
  6  * Copyright (C) 2000 - 2023, Intel Corp.      << 
  7  *                                             << 
  8  *********************************************      5  *****************************************************************************/
  9                                                     6 
                                                   >>   7 /*
                                                   >>   8  * Copyright (C) 2000 - 2018, Intel Corp.
                                                   >>   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 
 10 #ifndef __ACTBL1_H__                               44 #ifndef __ACTBL1_H__
 11 #define __ACTBL1_H__                               45 #define __ACTBL1_H__
 12                                                    46 
 13 /*********************************************     47 /*******************************************************************************
 14  *                                                 48  *
 15  * Additional ACPI Tables                      !!  49  * Additional ACPI Tables (1)
 16  *                                                 50  *
 17  * These tables are not consumed directly by t     51  * These tables are not consumed directly by the ACPICA subsystem, but are
 18  * included here to support device drivers and     52  * included here to support device drivers and the AML disassembler.
 19  *                                                 53  *
                                                   >>  54  * The tables in this file are fully defined within the ACPI specification.
                                                   >>  55  *
 20  *********************************************     56  ******************************************************************************/
 21                                                    57 
 22 /*                                                 58 /*
 23  * Values for description table header signatu     59  * Values for description table header signatures for tables defined in this
 24  * file. Useful because they make it more diff     60  * file. Useful because they make it more difficult to inadvertently type in
 25  * the wrong signature.                            61  * the wrong signature.
 26  */                                                62  */
 27 #define ACPI_SIG_AEST           "AEST"  /* Arm << 
 28 #define ACPI_SIG_ASF            "ASF!"  /* Ale << 
 29 #define ACPI_SIG_ASPT           "ASPT"  /* AMD << 
 30 #define ACPI_SIG_BERT           "BERT"  /* Boo     63 #define ACPI_SIG_BERT           "BERT"  /* Boot Error Record Table */
 31 #define ACPI_SIG_BGRT           "BGRT"  /* Boo << 
 32 #define ACPI_SIG_BOOT           "BOOT"  /* Sim << 
 33 #define ACPI_SIG_CEDT           "CEDT"  /* CXL << 
 34 #define ACPI_SIG_CPEP           "CPEP"  /* Cor     64 #define ACPI_SIG_CPEP           "CPEP"  /* Corrected Platform Error Polling table */
 35 #define ACPI_SIG_CSRT           "CSRT"  /* Cor << 
 36 #define ACPI_SIG_DBG2           "DBG2"  /* Deb << 
 37 #define ACPI_SIG_DBGP           "DBGP"  /* Deb << 
 38 #define ACPI_SIG_DMAR           "DMAR"  /* DMA << 
 39 #define ACPI_SIG_DRTM           "DRTM"  /* Dyn << 
 40 #define ACPI_SIG_ECDT           "ECDT"  /* Emb     65 #define ACPI_SIG_ECDT           "ECDT"  /* Embedded Controller Boot Resources Table */
 41 #define ACPI_SIG_EINJ           "EINJ"  /* Err     66 #define ACPI_SIG_EINJ           "EINJ"  /* Error Injection table */
 42 #define ACPI_SIG_ERST           "ERST"  /* Err     67 #define ACPI_SIG_ERST           "ERST"  /* Error Record Serialization Table */
 43 #define ACPI_SIG_FPDT           "FPDT"  /* Fir << 
 44 #define ACPI_SIG_GTDT           "GTDT"  /* Gen << 
 45 #define ACPI_SIG_HEST           "HEST"  /* Har << 
 46 #define ACPI_SIG_HMAT           "HMAT"  /* Het     68 #define ACPI_SIG_HMAT           "HMAT"  /* Heterogeneous Memory Attributes Table */
 47 #define ACPI_SIG_HPET           "HPET"  /* Hig !!  69 #define ACPI_SIG_HEST           "HEST"  /* Hardware Error Source Table */
 48 #define ACPI_SIG_IBFT           "IBFT"  /* iSC !!  70 #define ACPI_SIG_MADT           "APIC"  /* Multiple APIC Description Table */
 49 #define ACPI_SIG_MSCT           "MSCT"  /* Max     71 #define ACPI_SIG_MSCT           "MSCT"  /* Maximum System Characteristics Table */
 50                                                !!  72 #define ACPI_SIG_PDTT           "PDTT"  /* Platform Debug Trigger Table */
 51 #define ACPI_SIG_S3PT           "S3PT"  /* S3  !!  73 #define ACPI_SIG_PPTT           "PPTT"  /* Processor Properties Topology Table */
 52 #define ACPI_SIG_PCCS           "PCC"   /* PCC !!  74 #define ACPI_SIG_SBST           "SBST"  /* Smart Battery Specification Table */
 53                                                !!  75 #define ACPI_SIG_SDEV           "SDEV"  /* Secure Devices table */
 54 #define ACPI_SIG_NBFT           "NBFT"  /* NVM !!  76 #define ACPI_SIG_SLIT           "SLIT"  /* System Locality Distance Information Table */
 55                                                !!  77 #define ACPI_SIG_SRAT           "SRAT"  /* System Resource Affinity Table */
 56 /* Reserved table signatures */                !!  78 #define ACPI_SIG_NFIT           "NFIT"  /* NVDIMM Firmware Interface Table */
 57                                                << 
 58 #define ACPI_SIG_MATR           "MATR"  /* Mem << 
 59 #define ACPI_SIG_MSDM           "MSDM"  /* Mic << 
 60                                                << 
 61 /*                                             << 
 62  * These tables have been seen in the field, b << 
 63  */                                            << 
 64 #ifdef ACPI_UNDEFINED_TABLES                   << 
 65 #define ACPI_SIG_ATKG           "ATKG"         << 
 66 #define ACPI_SIG_GSCI           "GSCI"  /* GMC << 
 67 #define ACPI_SIG_IEIT           "IEIT"         << 
 68 #endif                                         << 
 69                                                    79 
 70 /*                                                 80 /*
 71  * All tables must be byte-packed to match the     81  * All tables must be byte-packed to match the ACPI specification, since
 72  * the tables are provided by the system BIOS.     82  * the tables are provided by the system BIOS.
 73  */                                                83  */
 74 #pragma pack(1)                                    84 #pragma pack(1)
 75                                                    85 
 76 /*                                                 86 /*
 77  * Note: C bitfields are not used for this rea     87  * Note: C bitfields are not used for this reason:
 78  *                                                 88  *
 79  * "Bitfields are great and easy to read, but      89  * "Bitfields are great and easy to read, but unfortunately the C language
 80  * does not specify the layout of bitfields in     90  * does not specify the layout of bitfields in memory, which means they are
 81  * essentially useless for dealing with packed     91  * essentially useless for dealing with packed data in on-disk formats or
 82  * binary wire protocols." (Or ACPI tables and     92  * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
 83  * this decision was a design error in C. Ritc     93  * this decision was a design error in C. Ritchie could have picked an order
 84  * and stuck with it." Norman Ramsey.              94  * and stuck with it." Norman Ramsey.
 85  * See http://stackoverflow.com/a/1053662/4166     95  * See http://stackoverflow.com/a/1053662/41661
 86  */                                                96  */
 87                                                    97 
 88 /*********************************************     98 /*******************************************************************************
 89  *                                                 99  *
 90  * Common subtable headers                        100  * Common subtable headers
 91  *                                                101  *
 92  *********************************************    102  ******************************************************************************/
 93                                                   103 
 94 /* Generic subtable header (used in MADT, SRAT    104 /* Generic subtable header (used in MADT, SRAT, etc.) */
 95                                                   105 
 96 struct acpi_subtable_header {                     106 struct acpi_subtable_header {
 97         u8 type;                                  107         u8 type;
 98         u8 length;                                108         u8 length;
 99 };                                                109 };
100                                                   110 
101 /* Subtable header for WHEA tables (EINJ, ERST    111 /* Subtable header for WHEA tables (EINJ, ERST, WDAT) */
102                                                   112 
103 struct acpi_whea_header {                         113 struct acpi_whea_header {
104         u8 action;                                114         u8 action;
105         u8 instruction;                           115         u8 instruction;
106         u8 flags;                                 116         u8 flags;
107         u8 reserved;                              117         u8 reserved;
108         struct acpi_generic_address register_r    118         struct acpi_generic_address register_region;
109         u64 value;              /* Value used     119         u64 value;              /* Value used with Read/Write register */
110         u64 mask;               /* Bitmask req    120         u64 mask;               /* Bitmask required for this register instruction */
111 };                                                121 };
112                                                   122 
113 /* https://docs.microsoft.com/en-us/windows-ha << 
114 #define ASPT_REVISION_ID 0x01                  << 
115 struct acpi_table_aspt {                       << 
116         struct acpi_table_header header;       << 
117         u32 num_entries;                       << 
118 };                                             << 
119                                                << 
120 struct acpi_aspt_header {                      << 
121         u16 type;                              << 
122         u16 length;                            << 
123 };                                             << 
124                                                << 
125 enum acpi_aspt_type {                          << 
126         ACPI_ASPT_TYPE_GLOBAL_REGS = 0,        << 
127         ACPI_ASPT_TYPE_SEV_MBOX_REGS = 1,      << 
128         ACPI_ASPT_TYPE_ACPI_MBOX_REGS = 2,     << 
129 };                                             << 
130                                                << 
131 /* 0: ASPT Global Registers */                 << 
132 struct acpi_aspt_global_regs {                 << 
133         struct acpi_aspt_header header;        << 
134         u32 reserved;                          << 
135         u64 feature_reg_addr;                  << 
136         u64 irq_en_reg_addr;                   << 
137         u64 irq_st_reg_addr;                   << 
138 };                                             << 
139                                                << 
140 /* 1: ASPT SEV Mailbox Registers */            << 
141 struct acpi_aspt_sev_mbox_regs {               << 
142         struct acpi_aspt_header header;        << 
143         u8 mbox_irq_id;                        << 
144         u8 reserved[3];                        << 
145         u64 cmd_resp_reg_addr;                 << 
146         u64 cmd_buf_lo_reg_addr;               << 
147         u64 cmd_buf_hi_reg_addr;               << 
148 };                                             << 
149                                                << 
150 /* 2: ASPT ACPI Mailbox Registers */           << 
151 struct acpi_aspt_acpi_mbox_regs {              << 
152         struct acpi_aspt_header header;        << 
153         u32 reserved1;                         << 
154         u64 cmd_resp_reg_addr;                 << 
155         u64 reserved2[2];                      << 
156 };                                             << 
157                                                << 
158 /********************************************* << 
159  *                                             << 
160  * ASF - Alert Standard Format table (Signatur << 
161  *       Revision 0x10                         << 
162  *                                             << 
163  * Conforms to the Alert Standard Format Speci << 
164  *                                             << 
165  ********************************************* << 
166                                                << 
167 struct acpi_table_asf {                        << 
168         struct acpi_table_header header;       << 
169 };                                             << 
170                                                << 
171 /* ASF subtable header */                      << 
172                                                << 
173 struct acpi_asf_header {                       << 
174         u8 type;                               << 
175         u8 reserved;                           << 
176         u16 length;                            << 
177 };                                             << 
178                                                << 
179 /* Values for Type field above */              << 
180                                                << 
181 enum acpi_asf_type {                           << 
182         ACPI_ASF_TYPE_INFO = 0,                << 
183         ACPI_ASF_TYPE_ALERT = 1,               << 
184         ACPI_ASF_TYPE_CONTROL = 2,             << 
185         ACPI_ASF_TYPE_BOOT = 3,                << 
186         ACPI_ASF_TYPE_ADDRESS = 4,             << 
187         ACPI_ASF_TYPE_RESERVED = 5             << 
188 };                                             << 
189                                                << 
190 /*                                             << 
191  * ASF subtables                               << 
192  */                                            << 
193                                                << 
194 /* 0: ASF Information */                       << 
195                                                << 
196 struct acpi_asf_info {                         << 
197         struct acpi_asf_header header;         << 
198         u8 min_reset_value;                    << 
199         u8 min_poll_interval;                  << 
200         u16 system_id;                         << 
201         u32 mfg_id;                            << 
202         u8 flags;                              << 
203         u8 reserved2[3];                       << 
204 };                                             << 
205                                                << 
206 /* Masks for Flags field above */              << 
207                                                << 
208 #define ACPI_ASF_SMBUS_PROTOCOLS    (1)        << 
209                                                << 
210 /* 1: ASF Alerts */                            << 
211                                                << 
212 struct acpi_asf_alert {                        << 
213         struct acpi_asf_header header;         << 
214         u8 assert_mask;                        << 
215         u8 deassert_mask;                      << 
216         u8 alerts;                             << 
217         u8 data_length;                        << 
218 };                                             << 
219                                                << 
220 struct acpi_asf_alert_data {                   << 
221         u8 address;                            << 
222         u8 command;                            << 
223         u8 mask;                               << 
224         u8 value;                              << 
225         u8 sensor_type;                        << 
226         u8 type;                               << 
227         u8 offset;                             << 
228         u8 source_type;                        << 
229         u8 severity;                           << 
230         u8 sensor_number;                      << 
231         u8 entity;                             << 
232         u8 instance;                           << 
233 };                                             << 
234                                                << 
235 /* 2: ASF Remote Control */                    << 
236                                                << 
237 struct acpi_asf_remote {                       << 
238         struct acpi_asf_header header;         << 
239         u8 controls;                           << 
240         u8 data_length;                        << 
241         u16 reserved2;                         << 
242 };                                             << 
243                                                << 
244 struct acpi_asf_control_data {                 << 
245         u8 function;                           << 
246         u8 address;                            << 
247         u8 command;                            << 
248         u8 value;                              << 
249 };                                             << 
250                                                << 
251 /* 3: ASF RMCP Boot Options */                 << 
252                                                << 
253 struct acpi_asf_rmcp {                         << 
254         struct acpi_asf_header header;         << 
255         u8 capabilities[7];                    << 
256         u8 completion_code;                    << 
257         u32 enterprise_id;                     << 
258         u8 command;                            << 
259         u16 parameter;                         << 
260         u16 boot_options;                      << 
261         u16 oem_parameters;                    << 
262 };                                             << 
263                                                << 
264 /* 4: ASF Address */                           << 
265                                                << 
266 struct acpi_asf_address {                      << 
267         struct acpi_asf_header header;         << 
268         u8 eprom_address;                      << 
269         u8 devices;                            << 
270 };                                             << 
271                                                << 
272 /*********************************************    123 /*******************************************************************************
273  *                                                124  *
274  * BERT - Boot Error Record Table (ACPI 4.0)      125  * BERT - Boot Error Record Table (ACPI 4.0)
275  *        Version 1                               126  *        Version 1
276  *                                                127  *
277  *********************************************    128  ******************************************************************************/
278                                                   129 
279 struct acpi_table_bert {                          130 struct acpi_table_bert {
280         struct acpi_table_header header;          131         struct acpi_table_header header;        /* Common ACPI table header */
281         u32 region_length;      /* Length of t    132         u32 region_length;      /* Length of the boot error region */
282         u64 address;            /* Physical ad    133         u64 address;            /* Physical address of the error region */
283 };                                                134 };
284                                                   135 
285 /* Boot Error Region (not a subtable, pointed     136 /* Boot Error Region (not a subtable, pointed to by Address field above) */
286                                                   137 
287 struct acpi_bert_region {                         138 struct acpi_bert_region {
288         u32 block_status;       /* Type of err    139         u32 block_status;       /* Type of error information */
289         u32 raw_data_offset;    /* Offset to r    140         u32 raw_data_offset;    /* Offset to raw error data */
290         u32 raw_data_length;    /* Length of r    141         u32 raw_data_length;    /* Length of raw error data */
291         u32 data_length;        /* Length of g    142         u32 data_length;        /* Length of generic error data */
292         u32 error_severity;     /* Severity co    143         u32 error_severity;     /* Severity code */
293 };                                                144 };
294                                                   145 
295 /* Values for block_status flags above */         146 /* Values for block_status flags above */
296                                                   147 
297 #define ACPI_BERT_UNCORRECTABLE             (1    148 #define ACPI_BERT_UNCORRECTABLE             (1)
298 #define ACPI_BERT_CORRECTABLE               (1    149 #define ACPI_BERT_CORRECTABLE               (1<<1)
299 #define ACPI_BERT_MULTIPLE_UNCORRECTABLE    (1    150 #define ACPI_BERT_MULTIPLE_UNCORRECTABLE    (1<<2)
300 #define ACPI_BERT_MULTIPLE_CORRECTABLE      (1    151 #define ACPI_BERT_MULTIPLE_CORRECTABLE      (1<<3)
301 #define ACPI_BERT_ERROR_ENTRY_COUNT         (0    152 #define ACPI_BERT_ERROR_ENTRY_COUNT         (0xFF<<4)   /* 8 bits, error count */
302                                                   153 
303 /* Values for error_severity above */             154 /* Values for error_severity above */
304                                                   155 
305 enum acpi_bert_error_severity {                   156 enum acpi_bert_error_severity {
306         ACPI_BERT_ERROR_CORRECTABLE = 0,          157         ACPI_BERT_ERROR_CORRECTABLE = 0,
307         ACPI_BERT_ERROR_FATAL = 1,                158         ACPI_BERT_ERROR_FATAL = 1,
308         ACPI_BERT_ERROR_CORRECTED = 2,            159         ACPI_BERT_ERROR_CORRECTED = 2,
309         ACPI_BERT_ERROR_NONE = 3,                 160         ACPI_BERT_ERROR_NONE = 3,
310         ACPI_BERT_ERROR_RESERVED = 4    /* 4 a    161         ACPI_BERT_ERROR_RESERVED = 4    /* 4 and greater are reserved */
311 };                                                162 };
312                                                   163 
313 /*                                                164 /*
314  * Note: The generic error data that follows t    165  * Note: The generic error data that follows the error_severity field above
315  * uses the struct acpi_hest_generic_data defi    166  * uses the struct acpi_hest_generic_data defined under the HEST table below
316  */                                               167  */
317                                                   168 
318 /*********************************************    169 /*******************************************************************************
319  *                                                170  *
320  * BGRT - Boot Graphics Resource Table (ACPI 5 << 
321  *        Version 1                            << 
322  *                                             << 
323  ********************************************* << 
324                                                << 
325 struct acpi_table_bgrt {                       << 
326         struct acpi_table_header header;       << 
327         u16 version;                           << 
328         u8 status;                             << 
329         u8 image_type;                         << 
330         u64 image_address;                     << 
331         u32 image_offset_x;                    << 
332         u32 image_offset_y;                    << 
333 };                                             << 
334                                                << 
335 /* Flags for Status field above */             << 
336                                                << 
337 #define ACPI_BGRT_DISPLAYED                 (1 << 
338 #define ACPI_BGRT_ORIENTATION_OFFSET        (3 << 
339                                                << 
340 /********************************************* << 
341  *                                             << 
342  * BOOT - Simple Boot Flag Table               << 
343  *        Version 1                            << 
344  *                                             << 
345  * Conforms to the "Simple Boot Flag Specifica << 
346  *                                             << 
347  ********************************************* << 
348                                                << 
349 struct acpi_table_boot {                       << 
350         struct acpi_table_header header;       << 
351         u8 cmos_index;          /* Index in CM << 
352         u8 reserved[3];                        << 
353 };                                             << 
354                                                << 
355 /********************************************* << 
356  *                                             << 
357  * CDAT - Coherent Device Attribute Table      << 
358  *        Version 1                            << 
359  *                                             << 
360  * Conforms to the "Coherent Device Attribute  << 
361  " (Revision 1.01, October 2020.)              << 
362  *                                             << 
363  ********************************************* << 
364                                                << 
365 struct acpi_table_cdat {                       << 
366         u32 length;             /* Length of t << 
367         u8 revision;            /* ACPI Specif << 
368         u8 checksum;            /* To make sum << 
369         u8 reserved[6];                        << 
370         u32 sequence;           /* Used to det << 
371 };                                             << 
372                                                << 
373 /* CDAT common subtable header */              << 
374                                                << 
375 struct acpi_cdat_header {                      << 
376         u8 type;                               << 
377         u8 reserved;                           << 
378         u16 length;                            << 
379 };                                             << 
380                                                << 
381 /* Values for Type field above */              << 
382                                                << 
383 enum acpi_cdat_type {                          << 
384         ACPI_CDAT_TYPE_DSMAS = 0,              << 
385         ACPI_CDAT_TYPE_DSLBIS = 1,             << 
386         ACPI_CDAT_TYPE_DSMSCIS = 2,            << 
387         ACPI_CDAT_TYPE_DSIS = 3,               << 
388         ACPI_CDAT_TYPE_DSEMTS = 4,             << 
389         ACPI_CDAT_TYPE_SSLBIS = 5,             << 
390         ACPI_CDAT_TYPE_RESERVED = 6     /* 6 t << 
391 };                                             << 
392                                                << 
393 /* Subtable 0: Device Scoped Memory Affinity S << 
394                                                << 
395 struct acpi_cdat_dsmas {                       << 
396         u8 dsmad_handle;                       << 
397         u8 flags;                              << 
398         u16 reserved;                          << 
399         u64 dpa_base_address;                  << 
400         u64 dpa_length;                        << 
401 };                                             << 
402                                                << 
403 /* Flags for subtable above */                 << 
404                                                << 
405 #define ACPI_CDAT_DSMAS_NON_VOLATILE        (1 << 
406                                                << 
407 /* Subtable 1: Device scoped Latency and Bandw << 
408                                                << 
409 struct acpi_cdat_dslbis {                      << 
410         u8 handle;                             << 
411         u8 flags;               /* If Handle m << 
412                                  * Flags field << 
413         u8 data_type;                          << 
414         u8 reserved;                           << 
415         u64 entry_base_unit;                   << 
416         u16 entry[3];                          << 
417         u16 reserved2;                         << 
418 };                                             << 
419                                                << 
420 /* Subtable 2: Device Scoped Memory Side Cache << 
421                                                << 
422 struct acpi_cdat_dsmscis {                     << 
423         u8 dsmas_handle;                       << 
424         u8 reserved[3];                        << 
425         u64 side_cache_size;                   << 
426         u32 cache_attributes;                  << 
427 };                                             << 
428                                                << 
429 /* Subtable 3: Device Scoped Initiator Structu << 
430                                                << 
431 struct acpi_cdat_dsis {                        << 
432         u8 flags;                              << 
433         u8 handle;                             << 
434         u16 reserved;                          << 
435 };                                             << 
436                                                << 
437 /* Flags for above subtable */                 << 
438                                                << 
439 #define ACPI_CDAT_DSIS_MEM_ATTACHED         (1 << 
440                                                << 
441 /* Subtable 4: Device Scoped EFI Memory Type S << 
442                                                << 
443 struct acpi_cdat_dsemts {                      << 
444         u8 dsmas_handle;                       << 
445         u8 memory_type;                        << 
446         u16 reserved;                          << 
447         u64 dpa_offset;                        << 
448         u64 range_length;                      << 
449 };                                             << 
450                                                << 
451 /* Subtable 5: Switch Scoped Latency and Bandw << 
452                                                << 
453 struct acpi_cdat_sslbis {                      << 
454         u8 data_type;                          << 
455         u8 reserved[3];                        << 
456         u64 entry_base_unit;                   << 
457 };                                             << 
458                                                << 
459 /* Sub-subtable for above, sslbe_entries field << 
460                                                << 
461 struct acpi_cdat_sslbe {                       << 
462         u16 portx_id;                          << 
463         u16 porty_id;                          << 
464         u16 latency_or_bandwidth;              << 
465         u16 reserved;                          << 
466 };                                             << 
467                                                << 
468 #define ACPI_CDAT_SSLBIS_US_PORT        0x0100 << 
469 #define ACPI_CDAT_SSLBIS_ANY_PORT       0xffff << 
470                                                << 
471 /********************************************* << 
472  *                                             << 
473  * CEDT - CXL Early Discovery Table            << 
474  *        Version 1                            << 
475  *                                             << 
476  * Conforms to the "CXL Early Discovery Table" << 
477  *                                             << 
478  ********************************************* << 
479                                                << 
480 struct acpi_table_cedt {                       << 
481         struct acpi_table_header header;       << 
482 };                                             << 
483                                                << 
484 /* CEDT subtable header (Performance Record St << 
485                                                << 
486 struct acpi_cedt_header {                      << 
487         u8 type;                               << 
488         u8 reserved;                           << 
489         u16 length;                            << 
490 };                                             << 
491                                                << 
492 /* Values for Type field above */              << 
493                                                << 
494 enum acpi_cedt_type {                          << 
495         ACPI_CEDT_TYPE_CHBS = 0,               << 
496         ACPI_CEDT_TYPE_CFMWS = 1,              << 
497         ACPI_CEDT_TYPE_CXIMS = 2,              << 
498         ACPI_CEDT_TYPE_RDPAS = 3,              << 
499         ACPI_CEDT_TYPE_RESERVED = 4,           << 
500 };                                             << 
501                                                << 
502 /* Values for version field above */           << 
503                                                << 
504 #define ACPI_CEDT_CHBS_VERSION_CXL11    (0)    << 
505 #define ACPI_CEDT_CHBS_VERSION_CXL20    (1)    << 
506                                                << 
507 /* Values for length field above */            << 
508                                                << 
509 #define ACPI_CEDT_CHBS_LENGTH_CXL11     (0x200 << 
510 #define ACPI_CEDT_CHBS_LENGTH_CXL20     (0x100 << 
511                                                << 
512 /*                                             << 
513  * CEDT subtables                              << 
514  */                                            << 
515                                                << 
516 /* 0: CXL Host Bridge Structure */             << 
517                                                << 
518 struct acpi_cedt_chbs {                        << 
519         struct acpi_cedt_header header;        << 
520         u32 uid;                               << 
521         u32 cxl_version;                       << 
522         u32 reserved;                          << 
523         u64 base;                              << 
524         u64 length;                            << 
525 };                                             << 
526                                                << 
527 /* 1: CXL Fixed Memory Window Structure */     << 
528                                                << 
529 struct acpi_cedt_cfmws {                       << 
530         struct acpi_cedt_header header;        << 
531         u32 reserved1;                         << 
532         u64 base_hpa;                          << 
533         u64 window_size;                       << 
534         u8 interleave_ways;                    << 
535         u8 interleave_arithmetic;              << 
536         u16 reserved2;                         << 
537         u32 granularity;                       << 
538         u16 restrictions;                      << 
539         u16 qtg_id;                            << 
540         u32 interleave_targets[];              << 
541 };                                             << 
542                                                << 
543 struct acpi_cedt_cfmws_target_element {        << 
544         u32 interleave_target;                 << 
545 };                                             << 
546                                                << 
547 /* Values for Interleave Arithmetic field abov << 
548                                                << 
549 #define ACPI_CEDT_CFMWS_ARITHMETIC_MODULO   (0 << 
550 #define ACPI_CEDT_CFMWS_ARITHMETIC_XOR      (1 << 
551                                                << 
552 /* Values for Restrictions field above */      << 
553                                                << 
554 #define ACPI_CEDT_CFMWS_RESTRICT_TYPE2      (1 << 
555 #define ACPI_CEDT_CFMWS_RESTRICT_TYPE3      (1 << 
556 #define ACPI_CEDT_CFMWS_RESTRICT_VOLATILE   (1 << 
557 #define ACPI_CEDT_CFMWS_RESTRICT_PMEM       (1 << 
558 #define ACPI_CEDT_CFMWS_RESTRICT_FIXED      (1 << 
559                                                << 
560 /* 2: CXL XOR Interleave Math Structure */     << 
561                                                << 
562 struct acpi_cedt_cxims {                       << 
563         struct acpi_cedt_header header;        << 
564         u16 reserved1;                         << 
565         u8 hbig;                               << 
566         u8 nr_xormaps;                         << 
567         u64 xormap_list[];                     << 
568 };                                             << 
569                                                << 
570 /* 3: CXL RCEC Downstream Port Association Str << 
571                                                << 
572 struct acpi_cedt_rdpas {                       << 
573         struct acpi_cedt_header header;        << 
574         u16 segment;                           << 
575         u16 bdf;                               << 
576         u8 protocol;                           << 
577         u64 address;                           << 
578 };                                             << 
579                                                << 
580 /* Masks for bdf field above */                << 
581 #define ACPI_CEDT_RDPAS_BUS_MASK            0x << 
582 #define ACPI_CEDT_RDPAS_DEVICE_MASK         0x << 
583 #define ACPI_CEDT_RDPAS_FUNCTION_MASK       0x << 
584                                                << 
585 #define ACPI_CEDT_RDPAS_PROTOCOL_IO        (0) << 
586 #define ACPI_CEDT_RDPAS_PROTOCOL_CACHEMEM  (1) << 
587                                                << 
588 /********************************************* << 
589  *                                             << 
590  * CPEP - Corrected Platform Error Polling tab    171  * CPEP - Corrected Platform Error Polling table (ACPI 4.0)
591  *        Version 1                               172  *        Version 1
592  *                                                173  *
593  *********************************************    174  ******************************************************************************/
594                                                   175 
595 struct acpi_table_cpep {                          176 struct acpi_table_cpep {
596         struct acpi_table_header header;          177         struct acpi_table_header header;        /* Common ACPI table header */
597         u64 reserved;                             178         u64 reserved;
598 };                                                179 };
599                                                   180 
600 /* Subtable */                                    181 /* Subtable */
601                                                   182 
602 struct acpi_cpep_polling {                        183 struct acpi_cpep_polling {
603         struct acpi_subtable_header header;       184         struct acpi_subtable_header header;
604         u8 id;                  /* Processor I    185         u8 id;                  /* Processor ID */
605         u8 eid;                 /* Processor E    186         u8 eid;                 /* Processor EID */
606         u32 interval;           /* Polling int    187         u32 interval;           /* Polling interval (msec) */
607 };                                                188 };
608                                                   189 
609 /*********************************************    190 /*******************************************************************************
610  *                                                191  *
611  * CSRT - Core System Resource Table           << 
612  *        Version 0                            << 
613  *                                             << 
614  * Conforms to the "Core System Resource Table << 
615  *                                             << 
616  ********************************************* << 
617                                                << 
618 struct acpi_table_csrt {                       << 
619         struct acpi_table_header header;       << 
620 };                                             << 
621                                                << 
622 /* Resource Group subtable */                  << 
623                                                << 
624 struct acpi_csrt_group {                       << 
625         u32 length;                            << 
626         u32 vendor_id;                         << 
627         u32 subvendor_id;                      << 
628         u16 device_id;                         << 
629         u16 subdevice_id;                      << 
630         u16 revision;                          << 
631         u16 reserved;                          << 
632         u32 shared_info_length;                << 
633                                                << 
634         /* Shared data immediately follows (Le << 
635 };                                             << 
636                                                << 
637 /* Shared Info subtable */                     << 
638                                                << 
639 struct acpi_csrt_shared_info {                 << 
640         u16 major_version;                     << 
641         u16 minor_version;                     << 
642         u32 mmio_base_low;                     << 
643         u32 mmio_base_high;                    << 
644         u32 gsi_interrupt;                     << 
645         u8 interrupt_polarity;                 << 
646         u8 interrupt_mode;                     << 
647         u8 num_channels;                       << 
648         u8 dma_address_width;                  << 
649         u16 base_request_line;                 << 
650         u16 num_handshake_signals;             << 
651         u32 max_block_size;                    << 
652                                                << 
653         /* Resource descriptors immediately fo << 
654 };                                             << 
655                                                << 
656 /* Resource Descriptor subtable */             << 
657                                                << 
658 struct acpi_csrt_descriptor {                  << 
659         u32 length;                            << 
660         u16 type;                              << 
661         u16 subtype;                           << 
662         u32 uid;                               << 
663                                                << 
664         /* Resource-specific information immed << 
665 };                                             << 
666                                                << 
667 /* Resource Types */                           << 
668                                                << 
669 #define ACPI_CSRT_TYPE_INTERRUPT    0x0001     << 
670 #define ACPI_CSRT_TYPE_TIMER        0x0002     << 
671 #define ACPI_CSRT_TYPE_DMA          0x0003     << 
672                                                << 
673 /* Resource Subtypes */                        << 
674                                                << 
675 #define ACPI_CSRT_XRUPT_LINE        0x0000     << 
676 #define ACPI_CSRT_XRUPT_CONTROLLER  0x0001     << 
677 #define ACPI_CSRT_TIMER             0x0000     << 
678 #define ACPI_CSRT_DMA_CHANNEL       0x0000     << 
679 #define ACPI_CSRT_DMA_CONTROLLER    0x0001     << 
680                                                << 
681 /********************************************* << 
682  *                                             << 
683  * DBG2 - Debug Port Table 2                   << 
684  *        Version 0 (Both main table and subta << 
685  *                                             << 
686  * Conforms to "Microsoft Debug Port Table 2 ( << 
687  *                                             << 
688  ********************************************* << 
689                                                << 
690 struct acpi_table_dbg2 {                       << 
691         struct acpi_table_header header;       << 
692         u32 info_offset;                       << 
693         u32 info_count;                        << 
694 };                                             << 
695                                                << 
696 struct acpi_dbg2_header {                      << 
697         u32 info_offset;                       << 
698         u32 info_count;                        << 
699 };                                             << 
700                                                << 
701 /* Debug Device Information Subtable */        << 
702                                                << 
703 struct acpi_dbg2_device {                      << 
704         u8 revision;                           << 
705         u16 length;                            << 
706         u8 register_count;      /* Number of b << 
707         u16 namepath_length;                   << 
708         u16 namepath_offset;                   << 
709         u16 oem_data_length;                   << 
710         u16 oem_data_offset;                   << 
711         u16 port_type;                         << 
712         u16 port_subtype;                      << 
713         u16 reserved;                          << 
714         u16 base_address_offset;               << 
715         u16 address_size_offset;               << 
716         /*                                     << 
717          * Data that follows:                  << 
718          *    base_address (required) - Each i << 
719          *    address_size (required) - Array  << 
720          *    Namepath    (required) - Null te << 
721          *    oem_data    (optional) - Length  << 
722          */                                    << 
723 };                                             << 
724                                                << 
725 /* Types for port_type field above */          << 
726                                                << 
727 #define ACPI_DBG2_SERIAL_PORT       0x8000     << 
728 #define ACPI_DBG2_1394_PORT         0x8001     << 
729 #define ACPI_DBG2_USB_PORT          0x8002     << 
730 #define ACPI_DBG2_NET_PORT          0x8003     << 
731                                                << 
732 /* Subtypes for port_subtype field above */    << 
733                                                << 
734 #define ACPI_DBG2_16550_COMPATIBLE  0x0000     << 
735 #define ACPI_DBG2_16550_SUBSET      0x0001     << 
736 #define ACPI_DBG2_MAX311XE_SPI      0x0002     << 
737 #define ACPI_DBG2_ARM_PL011         0x0003     << 
738 #define ACPI_DBG2_MSM8X60           0x0004     << 
739 #define ACPI_DBG2_16550_NVIDIA      0x0005     << 
740 #define ACPI_DBG2_TI_OMAP           0x0006     << 
741 #define ACPI_DBG2_APM88XXXX         0x0008     << 
742 #define ACPI_DBG2_MSM8974           0x0009     << 
743 #define ACPI_DBG2_SAM5250           0x000A     << 
744 #define ACPI_DBG2_INTEL_USIF        0x000B     << 
745 #define ACPI_DBG2_IMX6              0x000C     << 
746 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D     << 
747 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E     << 
748 #define ACPI_DBG2_ARM_DCC           0x000F     << 
749 #define ACPI_DBG2_BCM2835           0x0010     << 
750 #define ACPI_DBG2_SDM845_1_8432MHZ  0x0011     << 
751 #define ACPI_DBG2_16550_WITH_GAS    0x0012     << 
752 #define ACPI_DBG2_SDM845_7_372MHZ   0x0013     << 
753 #define ACPI_DBG2_INTEL_LPSS        0x0014     << 
754                                                << 
755 #define ACPI_DBG2_1394_STANDARD     0x0000     << 
756                                                << 
757 #define ACPI_DBG2_USB_XHCI          0x0000     << 
758 #define ACPI_DBG2_USB_EHCI          0x0001     << 
759                                                << 
760 /********************************************* << 
761  *                                             << 
762  * DBGP - Debug Port table                     << 
763  *        Version 1                            << 
764  *                                             << 
765  * Conforms to the "Debug Port Specification", << 
766  *                                             << 
767  ********************************************* << 
768                                                << 
769 struct acpi_table_dbgp {                       << 
770         struct acpi_table_header header;       << 
771         u8 type;                /* 0=full 1655 << 
772         u8 reserved[3];                        << 
773         struct acpi_generic_address debug_port << 
774 };                                             << 
775                                                << 
776 /********************************************* << 
777  *                                             << 
778  * DMAR - DMA Remapping table                  << 
779  *        Version 1                            << 
780  *                                             << 
781  * Conforms to "Intel Virtualization Technolog << 
782  * Version 2.3, October 2014                   << 
783  *                                             << 
784  ********************************************* << 
785                                                << 
786 struct acpi_table_dmar {                       << 
787         struct acpi_table_header header;       << 
788         u8 width;               /* Host Addres << 
789         u8 flags;                              << 
790         u8 reserved[10];                       << 
791 };                                             << 
792                                                << 
793 /* Masks for Flags field above */              << 
794                                                << 
795 #define ACPI_DMAR_INTR_REMAP        (1)        << 
796 #define ACPI_DMAR_X2APIC_OPT_OUT    (1<<1)     << 
797 #define ACPI_DMAR_X2APIC_MODE       (1<<2)     << 
798                                                << 
799 /* DMAR subtable header */                     << 
800                                                << 
801 struct acpi_dmar_header {                      << 
802         u16 type;                              << 
803         u16 length;                            << 
804 };                                             << 
805                                                << 
806 /* Values for subtable type in struct acpi_dma << 
807                                                << 
808 enum acpi_dmar_type {                          << 
809         ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,      << 
810         ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,    << 
811         ACPI_DMAR_TYPE_ROOT_ATS = 2,           << 
812         ACPI_DMAR_TYPE_HARDWARE_AFFINITY = 3,  << 
813         ACPI_DMAR_TYPE_NAMESPACE = 4,          << 
814         ACPI_DMAR_TYPE_SATC = 5,               << 
815         ACPI_DMAR_TYPE_RESERVED = 6     /* 6 a << 
816 };                                             << 
817                                                << 
818 /* DMAR Device Scope structure */              << 
819                                                << 
820 struct acpi_dmar_device_scope {                << 
821         u8 entry_type;                         << 
822         u8 length;                             << 
823         u16 reserved;                          << 
824         u8 enumeration_id;                     << 
825         u8 bus;                                << 
826 };                                             << 
827                                                << 
828 /* Values for entry_type in struct acpi_dmar_d << 
829                                                << 
830 enum acpi_dmar_scope_type {                    << 
831         ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,     << 
832         ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,     << 
833         ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,       << 
834         ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,       << 
835         ACPI_DMAR_SCOPE_TYPE_HPET = 4,         << 
836         ACPI_DMAR_SCOPE_TYPE_NAMESPACE = 5,    << 
837         ACPI_DMAR_SCOPE_TYPE_RESERVED = 6      << 
838 };                                             << 
839                                                << 
840 struct acpi_dmar_pci_path {                    << 
841         u8 device;                             << 
842         u8 function;                           << 
843 };                                             << 
844                                                << 
845 /*                                             << 
846  * DMAR Subtables, correspond to Type in struc << 
847  */                                            << 
848                                                << 
849 /* 0: Hardware Unit Definition */              << 
850                                                << 
851 struct acpi_dmar_hardware_unit {               << 
852         struct acpi_dmar_header header;        << 
853         u8 flags;                              << 
854         u8 size;                /* Size of the << 
855         u16 segment;                           << 
856         u64 address;            /* Register Ba << 
857 };                                             << 
858                                                << 
859 /* Masks for Flags field above */              << 
860                                                << 
861 #define ACPI_DMAR_INCLUDE_ALL       (1)        << 
862                                                << 
863 /* 1: Reserved Memory Definition */            << 
864                                                << 
865 struct acpi_dmar_reserved_memory {             << 
866         struct acpi_dmar_header header;        << 
867         u16 reserved;                          << 
868         u16 segment;                           << 
869         u64 base_address;       /* 4K aligned  << 
870         u64 end_address;        /* 4K aligned  << 
871 };                                             << 
872                                                << 
873 /* Masks for Flags field above */              << 
874                                                << 
875 #define ACPI_DMAR_ALLOW_ALL         (1)        << 
876                                                << 
877 /* 2: Root Port ATS Capability Reporting Struc << 
878                                                << 
879 struct acpi_dmar_atsr {                        << 
880         struct acpi_dmar_header header;        << 
881         u8 flags;                              << 
882         u8 reserved;                           << 
883         u16 segment;                           << 
884 };                                             << 
885                                                << 
886 /* Masks for Flags field above */              << 
887                                                << 
888 #define ACPI_DMAR_ALL_PORTS         (1)        << 
889                                                << 
890 /* 3: Remapping Hardware Static Affinity Struc << 
891                                                << 
892 struct acpi_dmar_rhsa {                        << 
893         struct acpi_dmar_header header;        << 
894         u32 reserved;                          << 
895         u64 base_address;                      << 
896         u32 proximity_domain;                  << 
897 };                                             << 
898                                                << 
899 /* 4: ACPI Namespace Device Declaration Struct << 
900                                                << 
901 struct acpi_dmar_andd {                        << 
902         struct acpi_dmar_header header;        << 
903         u8 reserved[3];                        << 
904         u8 device_number;                      << 
905         union {                                << 
906                 char __pad;                    << 
907                  ACPI_FLEX_ARRAY(char, device_ << 
908         };                                     << 
909 };                                             << 
910                                                << 
911 /* 5: SOC Integrated Address Translation Cache << 
912                                                << 
913 struct acpi_dmar_satc {                        << 
914         struct acpi_dmar_header header;        << 
915         u8 flags;                              << 
916         u8 reserved;                           << 
917         u16 segment;                           << 
918 };                                             << 
919 /********************************************* << 
920  *                                             << 
921  * DRTM - Dynamic Root of Trust for Measuremen << 
922  * Conforms to "TCG D-RTM Architecture" June 1 << 
923  * Table version 1                             << 
924  *                                             << 
925  ********************************************* << 
926                                                << 
927 struct acpi_table_drtm {                       << 
928         struct acpi_table_header header;       << 
929         u64 entry_base_address;                << 
930         u64 entry_length;                      << 
931         u32 entry_address32;                   << 
932         u64 entry_address64;                   << 
933         u64 exit_address;                      << 
934         u64 log_area_address;                  << 
935         u32 log_area_length;                   << 
936         u64 arch_dependent_address;            << 
937         u32 flags;                             << 
938 };                                             << 
939                                                << 
940 /* Flag Definitions for above */               << 
941                                                << 
942 #define ACPI_DRTM_ACCESS_ALLOWED            (1 << 
943 #define ACPI_DRTM_ENABLE_GAP_CODE           (1 << 
944 #define ACPI_DRTM_INCOMPLETE_MEASUREMENTS   (1 << 
945 #define ACPI_DRTM_AUTHORITY_ORDER           (1 << 
946                                                << 
947 /* 1) Validated Tables List (64-bit addresses) << 
948                                                << 
949 struct acpi_drtm_vtable_list {                 << 
950         u32 validated_table_count;             << 
951         u64 validated_tables[];                << 
952 };                                             << 
953                                                << 
954 /* 2) Resources List (of Resource Descriptors) << 
955                                                << 
956 /* Resource Descriptor */                      << 
957                                                << 
958 struct acpi_drtm_resource {                    << 
959         u8 size[7];                            << 
960         u8 type;                               << 
961         u64 address;                           << 
962 };                                             << 
963                                                << 
964 struct acpi_drtm_resource_list {               << 
965         u32 resource_count;                    << 
966         struct acpi_drtm_resource resources[]; << 
967 };                                             << 
968                                                << 
969 /* 3) Platform-specific Identifiers List */    << 
970                                                << 
971 struct acpi_drtm_dps_id {                      << 
972         u32 dps_id_length;                     << 
973         u8 dps_id[16];                         << 
974 };                                             << 
975                                                << 
976 /********************************************* << 
977  *                                             << 
978  * ECDT - Embedded Controller Boot Resources T    192  * ECDT - Embedded Controller Boot Resources Table
979  *        Version 1                               193  *        Version 1
980  *                                                194  *
981  *********************************************    195  ******************************************************************************/
982                                                   196 
983 struct acpi_table_ecdt {                          197 struct acpi_table_ecdt {
984         struct acpi_table_header header;          198         struct acpi_table_header header;        /* Common ACPI table header */
985         struct acpi_generic_address control;      199         struct acpi_generic_address control;    /* Address of EC command/status register */
986         struct acpi_generic_address data;         200         struct acpi_generic_address data;       /* Address of EC data register */
987         u32 uid;                /* Unique ID -    201         u32 uid;                /* Unique ID - must be same as the EC _UID method */
988         u8 gpe;                 /* The GPE for    202         u8 gpe;                 /* The GPE for the EC */
989         u8 id[];                /* Full namepa !! 203         u8 id[1];               /* Full namepath of the EC in the ACPI namespace */
990 };                                                204 };
991                                                   205 
992 /*********************************************    206 /*******************************************************************************
993  *                                                207  *
994  * EINJ - Error Injection Table (ACPI 4.0)        208  * EINJ - Error Injection Table (ACPI 4.0)
995  *        Version 1                               209  *        Version 1
996  *                                                210  *
997  *********************************************    211  ******************************************************************************/
998                                                   212 
999 struct acpi_table_einj {                          213 struct acpi_table_einj {
1000         struct acpi_table_header header;         214         struct acpi_table_header header;        /* Common ACPI table header */
1001         u32 header_length;                       215         u32 header_length;
1002         u8 flags;                                216         u8 flags;
1003         u8 reserved[3];                          217         u8 reserved[3];
1004         u32 entries;                             218         u32 entries;
1005 };                                               219 };
1006                                                  220 
1007 /* EINJ Injection Instruction Entries (action    221 /* EINJ Injection Instruction Entries (actions) */
1008                                                  222 
1009 struct acpi_einj_entry {                         223 struct acpi_einj_entry {
1010         struct acpi_whea_header whea_header;     224         struct acpi_whea_header whea_header;    /* Common header for WHEA tables */
1011 };                                               225 };
1012                                                  226 
1013 /* Masks for Flags field above */                227 /* Masks for Flags field above */
1014                                                  228 
1015 #define ACPI_EINJ_PRESERVE          (1)          229 #define ACPI_EINJ_PRESERVE          (1)
1016                                                  230 
1017 /* Values for Action field above */              231 /* Values for Action field above */
1018                                                  232 
1019 enum acpi_einj_actions {                         233 enum acpi_einj_actions {
1020         ACPI_EINJ_BEGIN_OPERATION = 0,           234         ACPI_EINJ_BEGIN_OPERATION = 0,
1021         ACPI_EINJ_GET_TRIGGER_TABLE = 1,         235         ACPI_EINJ_GET_TRIGGER_TABLE = 1,
1022         ACPI_EINJ_SET_ERROR_TYPE = 2,            236         ACPI_EINJ_SET_ERROR_TYPE = 2,
1023         ACPI_EINJ_GET_ERROR_TYPE = 3,            237         ACPI_EINJ_GET_ERROR_TYPE = 3,
1024         ACPI_EINJ_END_OPERATION = 4,             238         ACPI_EINJ_END_OPERATION = 4,
1025         ACPI_EINJ_EXECUTE_OPERATION = 5,         239         ACPI_EINJ_EXECUTE_OPERATION = 5,
1026         ACPI_EINJ_CHECK_BUSY_STATUS = 6,         240         ACPI_EINJ_CHECK_BUSY_STATUS = 6,
1027         ACPI_EINJ_GET_COMMAND_STATUS = 7,        241         ACPI_EINJ_GET_COMMAND_STATUS = 7,
1028         ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS    242         ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 8,
1029         ACPI_EINJ_GET_EXECUTE_TIMINGS = 9,       243         ACPI_EINJ_GET_EXECUTE_TIMINGS = 9,
1030         ACPI_EINJ_ACTION_RESERVED = 10, /* 10    244         ACPI_EINJ_ACTION_RESERVED = 10, /* 10 and greater are reserved */
1031         ACPI_EINJ_TRIGGER_ERROR = 0xFF  /* Ex    245         ACPI_EINJ_TRIGGER_ERROR = 0xFF  /* Except for this value */
1032 };                                               246 };
1033                                                  247 
1034 /* Values for Instruction field above */         248 /* Values for Instruction field above */
1035                                                  249 
1036 enum acpi_einj_instructions {                    250 enum acpi_einj_instructions {
1037         ACPI_EINJ_READ_REGISTER = 0,             251         ACPI_EINJ_READ_REGISTER = 0,
1038         ACPI_EINJ_READ_REGISTER_VALUE = 1,       252         ACPI_EINJ_READ_REGISTER_VALUE = 1,
1039         ACPI_EINJ_WRITE_REGISTER = 2,            253         ACPI_EINJ_WRITE_REGISTER = 2,
1040         ACPI_EINJ_WRITE_REGISTER_VALUE = 3,      254         ACPI_EINJ_WRITE_REGISTER_VALUE = 3,
1041         ACPI_EINJ_NOOP = 4,                      255         ACPI_EINJ_NOOP = 4,
1042         ACPI_EINJ_FLUSH_CACHELINE = 5,           256         ACPI_EINJ_FLUSH_CACHELINE = 5,
1043         ACPI_EINJ_INSTRUCTION_RESERVED = 6       257         ACPI_EINJ_INSTRUCTION_RESERVED = 6      /* 6 and greater are reserved */
1044 };                                               258 };
1045                                                  259 
1046 struct acpi_einj_error_type_with_addr {          260 struct acpi_einj_error_type_with_addr {
1047         u32 error_type;                          261         u32 error_type;
1048         u32 vendor_struct_offset;                262         u32 vendor_struct_offset;
1049         u32 flags;                               263         u32 flags;
1050         u32 apic_id;                             264         u32 apic_id;
1051         u64 address;                             265         u64 address;
1052         u64 range;                               266         u64 range;
1053         u32 pcie_id;                             267         u32 pcie_id;
1054 };                                               268 };
1055                                                  269 
1056 struct acpi_einj_vendor {                        270 struct acpi_einj_vendor {
1057         u32 length;                              271         u32 length;
1058         u32 pcie_id;                             272         u32 pcie_id;
1059         u16 vendor_id;                           273         u16 vendor_id;
1060         u16 device_id;                           274         u16 device_id;
1061         u8 revision_id;                          275         u8 revision_id;
1062         u8 reserved[3];                          276         u8 reserved[3];
1063 };                                               277 };
1064                                                  278 
1065 /* EINJ Trigger Error Action Table */            279 /* EINJ Trigger Error Action Table */
1066                                                  280 
1067 struct acpi_einj_trigger {                       281 struct acpi_einj_trigger {
1068         u32 header_size;                         282         u32 header_size;
1069         u32 revision;                            283         u32 revision;
1070         u32 table_size;                          284         u32 table_size;
1071         u32 entry_count;                         285         u32 entry_count;
1072 };                                               286 };
1073                                                  287 
1074 /* Command status return values */               288 /* Command status return values */
1075                                                  289 
1076 enum acpi_einj_command_status {                  290 enum acpi_einj_command_status {
1077         ACPI_EINJ_SUCCESS = 0,                   291         ACPI_EINJ_SUCCESS = 0,
1078         ACPI_EINJ_FAILURE = 1,                   292         ACPI_EINJ_FAILURE = 1,
1079         ACPI_EINJ_INVALID_ACCESS = 2,            293         ACPI_EINJ_INVALID_ACCESS = 2,
1080         ACPI_EINJ_STATUS_RESERVED = 3   /* 3     294         ACPI_EINJ_STATUS_RESERVED = 3   /* 3 and greater are reserved */
1081 };                                               295 };
1082                                                  296 
1083 /* Error types returned from ACPI_EINJ_GET_ER    297 /* Error types returned from ACPI_EINJ_GET_ERROR_TYPE (bitfield) */
1084                                                  298 
1085 #define ACPI_EINJ_PROCESSOR_CORRECTABLE     (    299 #define ACPI_EINJ_PROCESSOR_CORRECTABLE     (1)
1086 #define ACPI_EINJ_PROCESSOR_UNCORRECTABLE   (    300 #define ACPI_EINJ_PROCESSOR_UNCORRECTABLE   (1<<1)
1087 #define ACPI_EINJ_PROCESSOR_FATAL           (    301 #define ACPI_EINJ_PROCESSOR_FATAL           (1<<2)
1088 #define ACPI_EINJ_MEMORY_CORRECTABLE        (    302 #define ACPI_EINJ_MEMORY_CORRECTABLE        (1<<3)
1089 #define ACPI_EINJ_MEMORY_UNCORRECTABLE      (    303 #define ACPI_EINJ_MEMORY_UNCORRECTABLE      (1<<4)
1090 #define ACPI_EINJ_MEMORY_FATAL              (    304 #define ACPI_EINJ_MEMORY_FATAL              (1<<5)
1091 #define ACPI_EINJ_PCIX_CORRECTABLE          (    305 #define ACPI_EINJ_PCIX_CORRECTABLE          (1<<6)
1092 #define ACPI_EINJ_PCIX_UNCORRECTABLE        (    306 #define ACPI_EINJ_PCIX_UNCORRECTABLE        (1<<7)
1093 #define ACPI_EINJ_PCIX_FATAL                (    307 #define ACPI_EINJ_PCIX_FATAL                (1<<8)
1094 #define ACPI_EINJ_PLATFORM_CORRECTABLE      (    308 #define ACPI_EINJ_PLATFORM_CORRECTABLE      (1<<9)
1095 #define ACPI_EINJ_PLATFORM_UNCORRECTABLE    (    309 #define ACPI_EINJ_PLATFORM_UNCORRECTABLE    (1<<10)
1096 #define ACPI_EINJ_PLATFORM_FATAL            (    310 #define ACPI_EINJ_PLATFORM_FATAL            (1<<11)
1097 #define ACPI_EINJ_CXL_CACHE_CORRECTABLE     ( << 
1098 #define ACPI_EINJ_CXL_CACHE_UNCORRECTABLE   ( << 
1099 #define ACPI_EINJ_CXL_CACHE_FATAL           ( << 
1100 #define ACPI_EINJ_CXL_MEM_CORRECTABLE       ( << 
1101 #define ACPI_EINJ_CXL_MEM_UNCORRECTABLE     ( << 
1102 #define ACPI_EINJ_CXL_MEM_FATAL             ( << 
1103 #define ACPI_EINJ_VENDOR_DEFINED            (    311 #define ACPI_EINJ_VENDOR_DEFINED            (1<<31)
1104                                                  312 
1105 /********************************************    313 /*******************************************************************************
1106  *                                               314  *
1107  * ERST - Error Record Serialization Table (A    315  * ERST - Error Record Serialization Table (ACPI 4.0)
1108  *        Version 1                              316  *        Version 1
1109  *                                               317  *
1110  ********************************************    318  ******************************************************************************/
1111                                                  319 
1112 struct acpi_table_erst {                         320 struct acpi_table_erst {
1113         struct acpi_table_header header;         321         struct acpi_table_header header;        /* Common ACPI table header */
1114         u32 header_length;                       322         u32 header_length;
1115         u32 reserved;                            323         u32 reserved;
1116         u32 entries;                             324         u32 entries;
1117 };                                               325 };
1118                                                  326 
1119 /* ERST Serialization Entries (actions) */       327 /* ERST Serialization Entries (actions) */
1120                                                  328 
1121 struct acpi_erst_entry {                         329 struct acpi_erst_entry {
1122         struct acpi_whea_header whea_header;     330         struct acpi_whea_header whea_header;    /* Common header for WHEA tables */
1123 };                                               331 };
1124                                                  332 
1125 /* Masks for Flags field above */                333 /* Masks for Flags field above */
1126                                                  334 
1127 #define ACPI_ERST_PRESERVE          (1)          335 #define ACPI_ERST_PRESERVE          (1)
1128                                                  336 
1129 /* Values for Action field above */              337 /* Values for Action field above */
1130                                                  338 
1131 enum acpi_erst_actions {                         339 enum acpi_erst_actions {
1132         ACPI_ERST_BEGIN_WRITE = 0,               340         ACPI_ERST_BEGIN_WRITE = 0,
1133         ACPI_ERST_BEGIN_READ = 1,                341         ACPI_ERST_BEGIN_READ = 1,
1134         ACPI_ERST_BEGIN_CLEAR = 2,               342         ACPI_ERST_BEGIN_CLEAR = 2,
1135         ACPI_ERST_END = 3,                       343         ACPI_ERST_END = 3,
1136         ACPI_ERST_SET_RECORD_OFFSET = 4,         344         ACPI_ERST_SET_RECORD_OFFSET = 4,
1137         ACPI_ERST_EXECUTE_OPERATION = 5,         345         ACPI_ERST_EXECUTE_OPERATION = 5,
1138         ACPI_ERST_CHECK_BUSY_STATUS = 6,         346         ACPI_ERST_CHECK_BUSY_STATUS = 6,
1139         ACPI_ERST_GET_COMMAND_STATUS = 7,        347         ACPI_ERST_GET_COMMAND_STATUS = 7,
1140         ACPI_ERST_GET_RECORD_ID = 8,             348         ACPI_ERST_GET_RECORD_ID = 8,
1141         ACPI_ERST_SET_RECORD_ID = 9,             349         ACPI_ERST_SET_RECORD_ID = 9,
1142         ACPI_ERST_GET_RECORD_COUNT = 10,         350         ACPI_ERST_GET_RECORD_COUNT = 10,
1143         ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,       351         ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,
1144         ACPI_ERST_NOT_USED = 12,                 352         ACPI_ERST_NOT_USED = 12,
1145         ACPI_ERST_GET_ERROR_RANGE = 13,          353         ACPI_ERST_GET_ERROR_RANGE = 13,
1146         ACPI_ERST_GET_ERROR_LENGTH = 14,         354         ACPI_ERST_GET_ERROR_LENGTH = 14,
1147         ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,     355         ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,
1148         ACPI_ERST_EXECUTE_TIMINGS = 16,          356         ACPI_ERST_EXECUTE_TIMINGS = 16,
1149         ACPI_ERST_ACTION_RESERVED = 17  /* 17    357         ACPI_ERST_ACTION_RESERVED = 17  /* 17 and greater are reserved */
1150 };                                               358 };
1151                                                  359 
1152 /* Values for Instruction field above */         360 /* Values for Instruction field above */
1153                                                  361 
1154 enum acpi_erst_instructions {                    362 enum acpi_erst_instructions {
1155         ACPI_ERST_READ_REGISTER = 0,             363         ACPI_ERST_READ_REGISTER = 0,
1156         ACPI_ERST_READ_REGISTER_VALUE = 1,       364         ACPI_ERST_READ_REGISTER_VALUE = 1,
1157         ACPI_ERST_WRITE_REGISTER = 2,            365         ACPI_ERST_WRITE_REGISTER = 2,
1158         ACPI_ERST_WRITE_REGISTER_VALUE = 3,      366         ACPI_ERST_WRITE_REGISTER_VALUE = 3,
1159         ACPI_ERST_NOOP = 4,                      367         ACPI_ERST_NOOP = 4,
1160         ACPI_ERST_LOAD_VAR1 = 5,                 368         ACPI_ERST_LOAD_VAR1 = 5,
1161         ACPI_ERST_LOAD_VAR2 = 6,                 369         ACPI_ERST_LOAD_VAR2 = 6,
1162         ACPI_ERST_STORE_VAR1 = 7,                370         ACPI_ERST_STORE_VAR1 = 7,
1163         ACPI_ERST_ADD = 8,                       371         ACPI_ERST_ADD = 8,
1164         ACPI_ERST_SUBTRACT = 9,                  372         ACPI_ERST_SUBTRACT = 9,
1165         ACPI_ERST_ADD_VALUE = 10,                373         ACPI_ERST_ADD_VALUE = 10,
1166         ACPI_ERST_SUBTRACT_VALUE = 11,           374         ACPI_ERST_SUBTRACT_VALUE = 11,
1167         ACPI_ERST_STALL = 12,                    375         ACPI_ERST_STALL = 12,
1168         ACPI_ERST_STALL_WHILE_TRUE = 13,         376         ACPI_ERST_STALL_WHILE_TRUE = 13,
1169         ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,        377         ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,
1170         ACPI_ERST_GOTO = 15,                     378         ACPI_ERST_GOTO = 15,
1171         ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,     379         ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,
1172         ACPI_ERST_SET_DST_ADDRESS_BASE = 17,     380         ACPI_ERST_SET_DST_ADDRESS_BASE = 17,
1173         ACPI_ERST_MOVE_DATA = 18,                381         ACPI_ERST_MOVE_DATA = 18,
1174         ACPI_ERST_INSTRUCTION_RESERVED = 19      382         ACPI_ERST_INSTRUCTION_RESERVED = 19     /* 19 and greater are reserved */
1175 };                                               383 };
1176                                                  384 
1177 /* Command status return values */               385 /* Command status return values */
1178                                                  386 
1179 enum acpi_erst_command_status {                  387 enum acpi_erst_command_status {
1180         ACPI_ERST_SUCCESS = 0,                !! 388         ACPI_ERST_SUCESS = 0,
1181         ACPI_ERST_NO_SPACE = 1,                  389         ACPI_ERST_NO_SPACE = 1,
1182         ACPI_ERST_NOT_AVAILABLE = 2,             390         ACPI_ERST_NOT_AVAILABLE = 2,
1183         ACPI_ERST_FAILURE = 3,                   391         ACPI_ERST_FAILURE = 3,
1184         ACPI_ERST_RECORD_EMPTY = 4,              392         ACPI_ERST_RECORD_EMPTY = 4,
1185         ACPI_ERST_NOT_FOUND = 5,                 393         ACPI_ERST_NOT_FOUND = 5,
1186         ACPI_ERST_STATUS_RESERVED = 6   /* 6     394         ACPI_ERST_STATUS_RESERVED = 6   /* 6 and greater are reserved */
1187 };                                               395 };
1188                                                  396 
1189 /* Error Record Serialization Information */     397 /* Error Record Serialization Information */
1190                                                  398 
1191 struct acpi_erst_info {                          399 struct acpi_erst_info {
1192         u16 signature;          /* Should be     400         u16 signature;          /* Should be "ER" */
1193         u8 data[48];                             401         u8 data[48];
1194 };                                               402 };
1195                                                  403 
1196 /********************************************    404 /*******************************************************************************
1197  *                                               405  *
1198  * FPDT - Firmware Performance Data Table (AC << 
1199  *        Version 1                           << 
1200  *                                            << 
1201  ******************************************** << 
1202                                               << 
1203 struct acpi_table_fpdt {                      << 
1204         struct acpi_table_header header;      << 
1205 };                                            << 
1206                                               << 
1207 /* FPDT subtable header (Performance Record S << 
1208                                               << 
1209 struct acpi_fpdt_header {                     << 
1210         u16 type;                             << 
1211         u8 length;                            << 
1212         u8 revision;                          << 
1213 };                                            << 
1214                                               << 
1215 /* Values for Type field above */             << 
1216                                               << 
1217 enum acpi_fpdt_type {                         << 
1218         ACPI_FPDT_TYPE_BOOT = 0,              << 
1219         ACPI_FPDT_TYPE_S3PERF = 1             << 
1220 };                                            << 
1221                                               << 
1222 /*                                            << 
1223  * FPDT subtables                             << 
1224  */                                           << 
1225                                               << 
1226 /* 0: Firmware Basic Boot Performance Record  << 
1227                                               << 
1228 struct acpi_fpdt_boot_pointer {               << 
1229         struct acpi_fpdt_header header;       << 
1230         u8 reserved[4];                       << 
1231         u64 address;                          << 
1232 };                                            << 
1233                                               << 
1234 /* 1: S3 Performance Table Pointer Record */  << 
1235                                               << 
1236 struct acpi_fpdt_s3pt_pointer {               << 
1237         struct acpi_fpdt_header header;       << 
1238         u8 reserved[4];                       << 
1239         u64 address;                          << 
1240 };                                            << 
1241                                               << 
1242 /*                                            << 
1243  * S3PT - S3 Performance Table. This table is << 
1244  * S3 Pointer Record above.                   << 
1245  */                                           << 
1246 struct acpi_table_s3pt {                      << 
1247         u8 signature[4];        /* "S3PT" */  << 
1248         u32 length;                           << 
1249 };                                            << 
1250                                               << 
1251 /*                                            << 
1252  * S3PT Subtables (Not part of the actual FPD << 
1253  */                                           << 
1254                                               << 
1255 /* Values for Type field in S3PT header */    << 
1256                                               << 
1257 enum acpi_s3pt_type {                         << 
1258         ACPI_S3PT_TYPE_RESUME = 0,            << 
1259         ACPI_S3PT_TYPE_SUSPEND = 1,           << 
1260         ACPI_FPDT_BOOT_PERFORMANCE = 2        << 
1261 };                                            << 
1262                                               << 
1263 struct acpi_s3pt_resume {                     << 
1264         struct acpi_fpdt_header header;       << 
1265         u32 resume_count;                     << 
1266         u64 full_resume;                      << 
1267         u64 average_resume;                   << 
1268 };                                            << 
1269                                               << 
1270 struct acpi_s3pt_suspend {                    << 
1271         struct acpi_fpdt_header header;       << 
1272         u64 suspend_start;                    << 
1273         u64 suspend_end;                      << 
1274 };                                            << 
1275                                               << 
1276 /*                                            << 
1277  * FPDT Boot Performance Record (Not part of  << 
1278  */                                           << 
1279 struct acpi_fpdt_boot {                       << 
1280         struct acpi_fpdt_header header;       << 
1281         u8 reserved[4];                       << 
1282         u64 reset_end;                        << 
1283         u64 load_start;                       << 
1284         u64 startup_start;                    << 
1285         u64 exit_services_entry;              << 
1286         u64 exit_services_exit;               << 
1287 };                                            << 
1288                                               << 
1289 /******************************************** << 
1290  *                                            << 
1291  * GTDT - Generic Timer Description Table (AC << 
1292  *        Version 2                           << 
1293  *                                            << 
1294  ******************************************** << 
1295                                               << 
1296 struct acpi_table_gtdt {                      << 
1297         struct acpi_table_header header;      << 
1298         u64 counter_block_addresss;           << 
1299         u32 reserved;                         << 
1300         u32 secure_el1_interrupt;             << 
1301         u32 secure_el1_flags;                 << 
1302         u32 non_secure_el1_interrupt;         << 
1303         u32 non_secure_el1_flags;             << 
1304         u32 virtual_timer_interrupt;          << 
1305         u32 virtual_timer_flags;              << 
1306         u32 non_secure_el2_interrupt;         << 
1307         u32 non_secure_el2_flags;             << 
1308         u64 counter_read_block_address;       << 
1309         u32 platform_timer_count;             << 
1310         u32 platform_timer_offset;            << 
1311 };                                            << 
1312                                               << 
1313 /* Flag Definitions: Timer Block Physical Tim << 
1314                                               << 
1315 #define ACPI_GTDT_INTERRUPT_MODE        (1)   << 
1316 #define ACPI_GTDT_INTERRUPT_POLARITY    (1<<1 << 
1317 #define ACPI_GTDT_ALWAYS_ON             (1<<2 << 
1318                                               << 
1319 struct acpi_gtdt_el2 {                        << 
1320         u32 virtual_el2_timer_gsiv;           << 
1321         u32 virtual_el2_timer_flags;          << 
1322 };                                            << 
1323                                               << 
1324 /* Common GTDT subtable header */             << 
1325                                               << 
1326 struct acpi_gtdt_header {                     << 
1327         u8 type;                              << 
1328         u16 length;                           << 
1329 };                                            << 
1330                                               << 
1331 /* Values for GTDT subtable type above */     << 
1332                                               << 
1333 enum acpi_gtdt_type {                         << 
1334         ACPI_GTDT_TYPE_TIMER_BLOCK = 0,       << 
1335         ACPI_GTDT_TYPE_WATCHDOG = 1,          << 
1336         ACPI_GTDT_TYPE_RESERVED = 2     /* 2  << 
1337 };                                            << 
1338                                               << 
1339 /* GTDT Subtables, correspond to Type in stru << 
1340                                               << 
1341 /* 0: Generic Timer Block */                  << 
1342                                               << 
1343 struct acpi_gtdt_timer_block {                << 
1344         struct acpi_gtdt_header header;       << 
1345         u8 reserved;                          << 
1346         u64 block_address;                    << 
1347         u32 timer_count;                      << 
1348         u32 timer_offset;                     << 
1349 };                                            << 
1350                                               << 
1351 /* Timer Sub-Structure, one per timer */      << 
1352                                               << 
1353 struct acpi_gtdt_timer_entry {                << 
1354         u8 frame_number;                      << 
1355         u8 reserved[3];                       << 
1356         u64 base_address;                     << 
1357         u64 el0_base_address;                 << 
1358         u32 timer_interrupt;                  << 
1359         u32 timer_flags;                      << 
1360         u32 virtual_timer_interrupt;          << 
1361         u32 virtual_timer_flags;              << 
1362         u32 common_flags;                     << 
1363 };                                            << 
1364                                               << 
1365 /* Flag Definitions: timer_flags and virtual_ << 
1366                                               << 
1367 #define ACPI_GTDT_GT_IRQ_MODE               ( << 
1368 #define ACPI_GTDT_GT_IRQ_POLARITY           ( << 
1369                                               << 
1370 /* Flag Definitions: common_flags above */    << 
1371                                               << 
1372 #define ACPI_GTDT_GT_IS_SECURE_TIMER        ( << 
1373 #define ACPI_GTDT_GT_ALWAYS_ON              ( << 
1374                                               << 
1375 /* 1: SBSA Generic Watchdog Structure */      << 
1376                                               << 
1377 struct acpi_gtdt_watchdog {                   << 
1378         struct acpi_gtdt_header header;       << 
1379         u8 reserved;                          << 
1380         u64 refresh_frame_address;            << 
1381         u64 control_frame_address;            << 
1382         u32 timer_interrupt;                  << 
1383         u32 timer_flags;                      << 
1384 };                                            << 
1385                                               << 
1386 /* Flag Definitions: timer_flags above */     << 
1387                                               << 
1388 #define ACPI_GTDT_WATCHDOG_IRQ_MODE         ( << 
1389 #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY     ( << 
1390 #define ACPI_GTDT_WATCHDOG_SECURE           ( << 
1391                                               << 
1392 /******************************************** << 
1393  *                                            << 
1394  * HEST - Hardware Error Source Table (ACPI 4    406  * HEST - Hardware Error Source Table (ACPI 4.0)
1395  *        Version 1                              407  *        Version 1
1396  *                                               408  *
1397  ********************************************    409  ******************************************************************************/
1398                                                  410 
1399 struct acpi_table_hest {                         411 struct acpi_table_hest {
1400         struct acpi_table_header header;         412         struct acpi_table_header header;        /* Common ACPI table header */
1401         u32 error_source_count;                  413         u32 error_source_count;
1402 };                                               414 };
1403                                                  415 
1404 /* HEST subtable header */                       416 /* HEST subtable header */
1405                                                  417 
1406 struct acpi_hest_header {                        418 struct acpi_hest_header {
1407         u16 type;                                419         u16 type;
1408         u16 source_id;                           420         u16 source_id;
1409 };                                               421 };
1410                                                  422 
1411 /* Values for Type field above for subtables     423 /* Values for Type field above for subtables */
1412                                                  424 
1413 enum acpi_hest_types {                           425 enum acpi_hest_types {
1414         ACPI_HEST_TYPE_IA32_CHECK = 0,           426         ACPI_HEST_TYPE_IA32_CHECK = 0,
1415         ACPI_HEST_TYPE_IA32_CORRECTED_CHECK =    427         ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1,
1416         ACPI_HEST_TYPE_IA32_NMI = 2,             428         ACPI_HEST_TYPE_IA32_NMI = 2,
1417         ACPI_HEST_TYPE_NOT_USED3 = 3,            429         ACPI_HEST_TYPE_NOT_USED3 = 3,
1418         ACPI_HEST_TYPE_NOT_USED4 = 4,            430         ACPI_HEST_TYPE_NOT_USED4 = 4,
1419         ACPI_HEST_TYPE_NOT_USED5 = 5,            431         ACPI_HEST_TYPE_NOT_USED5 = 5,
1420         ACPI_HEST_TYPE_AER_ROOT_PORT = 6,        432         ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
1421         ACPI_HEST_TYPE_AER_ENDPOINT = 7,         433         ACPI_HEST_TYPE_AER_ENDPOINT = 7,
1422         ACPI_HEST_TYPE_AER_BRIDGE = 8,           434         ACPI_HEST_TYPE_AER_BRIDGE = 8,
1423         ACPI_HEST_TYPE_GENERIC_ERROR = 9,        435         ACPI_HEST_TYPE_GENERIC_ERROR = 9,
1424         ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10,    436         ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10,
1425         ACPI_HEST_TYPE_IA32_DEFERRED_CHECK =     437         ACPI_HEST_TYPE_IA32_DEFERRED_CHECK = 11,
1426         ACPI_HEST_TYPE_RESERVED = 12    /* 12    438         ACPI_HEST_TYPE_RESERVED = 12    /* 12 and greater are reserved */
1427 };                                               439 };
1428                                                  440 
1429 /*                                               441 /*
1430  * HEST substructures contained in subtables     442  * HEST substructures contained in subtables
1431  */                                              443  */
1432                                                  444 
1433 /*                                               445 /*
1434  * IA32 Error Bank(s) - Follows the struct ac    446  * IA32 Error Bank(s) - Follows the struct acpi_hest_ia_machine_check and
1435  * struct acpi_hest_ia_corrected structures.     447  * struct acpi_hest_ia_corrected structures.
1436  */                                              448  */
1437 struct acpi_hest_ia_error_bank {                 449 struct acpi_hest_ia_error_bank {
1438         u8 bank_number;                          450         u8 bank_number;
1439         u8 clear_status_on_init;                 451         u8 clear_status_on_init;
1440         u8 status_format;                        452         u8 status_format;
1441         u8 reserved;                             453         u8 reserved;
1442         u32 control_register;                    454         u32 control_register;
1443         u64 control_data;                        455         u64 control_data;
1444         u32 status_register;                     456         u32 status_register;
1445         u32 address_register;                    457         u32 address_register;
1446         u32 misc_register;                       458         u32 misc_register;
1447 };                                               459 };
1448                                                  460 
1449 /* Common HEST sub-structure for PCI/AER stru    461 /* Common HEST sub-structure for PCI/AER structures below (6,7,8) */
1450                                                  462 
1451 struct acpi_hest_aer_common {                    463 struct acpi_hest_aer_common {
1452         u16 reserved1;                           464         u16 reserved1;
1453         u8 flags;                                465         u8 flags;
1454         u8 enabled;                              466         u8 enabled;
1455         u32 records_to_preallocate;              467         u32 records_to_preallocate;
1456         u32 max_sections_per_record;             468         u32 max_sections_per_record;
1457         u32 bus;                /* Bus and Se    469         u32 bus;                /* Bus and Segment numbers */
1458         u16 device;                              470         u16 device;
1459         u16 function;                            471         u16 function;
1460         u16 device_control;                      472         u16 device_control;
1461         u16 reserved2;                           473         u16 reserved2;
1462         u32 uncorrectable_mask;                  474         u32 uncorrectable_mask;
1463         u32 uncorrectable_severity;              475         u32 uncorrectable_severity;
1464         u32 correctable_mask;                    476         u32 correctable_mask;
1465         u32 advanced_capabilities;               477         u32 advanced_capabilities;
1466 };                                               478 };
1467                                                  479 
1468 /* Masks for HEST Flags fields */                480 /* Masks for HEST Flags fields */
1469                                                  481 
1470 #define ACPI_HEST_FIRMWARE_FIRST        (1)      482 #define ACPI_HEST_FIRMWARE_FIRST        (1)
1471 #define ACPI_HEST_GLOBAL                (1<<1    483 #define ACPI_HEST_GLOBAL                (1<<1)
1472 #define ACPI_HEST_GHES_ASSIST           (1<<2    484 #define ACPI_HEST_GHES_ASSIST           (1<<2)
1473                                                  485 
1474 /*                                               486 /*
1475  * Macros to access the bus/segment numbers i    487  * Macros to access the bus/segment numbers in Bus field above:
1476  *  Bus number is encoded in bits 7:0            488  *  Bus number is encoded in bits 7:0
1477  *  Segment number is encoded in bits 23:8       489  *  Segment number is encoded in bits 23:8
1478  */                                              490  */
1479 #define ACPI_HEST_BUS(bus)              ((bus    491 #define ACPI_HEST_BUS(bus)              ((bus) & 0xFF)
1480 #define ACPI_HEST_SEGMENT(bus)          (((bu    492 #define ACPI_HEST_SEGMENT(bus)          (((bus) >> 8) & 0xFFFF)
1481                                                  493 
1482 /* Hardware Error Notification */                494 /* Hardware Error Notification */
1483                                                  495 
1484 struct acpi_hest_notify {                        496 struct acpi_hest_notify {
1485         u8 type;                                 497         u8 type;
1486         u8 length;                               498         u8 length;
1487         u16 config_write_enable;                 499         u16 config_write_enable;
1488         u32 poll_interval;                       500         u32 poll_interval;
1489         u32 vector;                              501         u32 vector;
1490         u32 polling_threshold_value;             502         u32 polling_threshold_value;
1491         u32 polling_threshold_window;            503         u32 polling_threshold_window;
1492         u32 error_threshold_value;               504         u32 error_threshold_value;
1493         u32 error_threshold_window;              505         u32 error_threshold_window;
1494 };                                               506 };
1495                                                  507 
1496 /* Values for Notify Type field above */         508 /* Values for Notify Type field above */
1497                                                  509 
1498 enum acpi_hest_notify_types {                    510 enum acpi_hest_notify_types {
1499         ACPI_HEST_NOTIFY_POLLED = 0,             511         ACPI_HEST_NOTIFY_POLLED = 0,
1500         ACPI_HEST_NOTIFY_EXTERNAL = 1,           512         ACPI_HEST_NOTIFY_EXTERNAL = 1,
1501         ACPI_HEST_NOTIFY_LOCAL = 2,              513         ACPI_HEST_NOTIFY_LOCAL = 2,
1502         ACPI_HEST_NOTIFY_SCI = 3,                514         ACPI_HEST_NOTIFY_SCI = 3,
1503         ACPI_HEST_NOTIFY_NMI = 4,                515         ACPI_HEST_NOTIFY_NMI = 4,
1504         ACPI_HEST_NOTIFY_CMCI = 5,      /* AC    516         ACPI_HEST_NOTIFY_CMCI = 5,      /* ACPI 5.0 */
1505         ACPI_HEST_NOTIFY_MCE = 6,       /* AC    517         ACPI_HEST_NOTIFY_MCE = 6,       /* ACPI 5.0 */
1506         ACPI_HEST_NOTIFY_GPIO = 7,      /* AC    518         ACPI_HEST_NOTIFY_GPIO = 7,      /* ACPI 6.0 */
1507         ACPI_HEST_NOTIFY_SEA = 8,       /* AC    519         ACPI_HEST_NOTIFY_SEA = 8,       /* ACPI 6.1 */
1508         ACPI_HEST_NOTIFY_SEI = 9,       /* AC    520         ACPI_HEST_NOTIFY_SEI = 9,       /* ACPI 6.1 */
1509         ACPI_HEST_NOTIFY_GSIV = 10,     /* AC    521         ACPI_HEST_NOTIFY_GSIV = 10,     /* ACPI 6.1 */
1510         ACPI_HEST_NOTIFY_SOFTWARE_DELEGATED =    522         ACPI_HEST_NOTIFY_SOFTWARE_DELEGATED = 11,       /* ACPI 6.2 */
1511         ACPI_HEST_NOTIFY_RESERVED = 12  /* 12    523         ACPI_HEST_NOTIFY_RESERVED = 12  /* 12 and greater are reserved */
1512 };                                               524 };
1513                                                  525 
1514 /* Values for config_write_enable bitfield ab    526 /* Values for config_write_enable bitfield above */
1515                                                  527 
1516 #define ACPI_HEST_TYPE                  (1)      528 #define ACPI_HEST_TYPE                  (1)
1517 #define ACPI_HEST_POLL_INTERVAL         (1<<1    529 #define ACPI_HEST_POLL_INTERVAL         (1<<1)
1518 #define ACPI_HEST_POLL_THRESHOLD_VALUE  (1<<2    530 #define ACPI_HEST_POLL_THRESHOLD_VALUE  (1<<2)
1519 #define ACPI_HEST_POLL_THRESHOLD_WINDOW (1<<3    531 #define ACPI_HEST_POLL_THRESHOLD_WINDOW (1<<3)
1520 #define ACPI_HEST_ERR_THRESHOLD_VALUE   (1<<4    532 #define ACPI_HEST_ERR_THRESHOLD_VALUE   (1<<4)
1521 #define ACPI_HEST_ERR_THRESHOLD_WINDOW  (1<<5    533 #define ACPI_HEST_ERR_THRESHOLD_WINDOW  (1<<5)
1522                                                  534 
1523 /*                                               535 /*
1524  * HEST subtables                                536  * HEST subtables
1525  */                                              537  */
1526                                                  538 
1527 /* 0: IA32 Machine Check Exception */            539 /* 0: IA32 Machine Check Exception */
1528                                                  540 
1529 struct acpi_hest_ia_machine_check {              541 struct acpi_hest_ia_machine_check {
1530         struct acpi_hest_header header;          542         struct acpi_hest_header header;
1531         u16 reserved1;                           543         u16 reserved1;
1532         u8 flags;               /* See flags     544         u8 flags;               /* See flags ACPI_HEST_GLOBAL, etc. above */
1533         u8 enabled;                              545         u8 enabled;
1534         u32 records_to_preallocate;              546         u32 records_to_preallocate;
1535         u32 max_sections_per_record;             547         u32 max_sections_per_record;
1536         u64 global_capability_data;              548         u64 global_capability_data;
1537         u64 global_control_data;                 549         u64 global_control_data;
1538         u8 num_hardware_banks;                   550         u8 num_hardware_banks;
1539         u8 reserved3[7];                         551         u8 reserved3[7];
1540 };                                               552 };
1541                                                  553 
1542 /* 1: IA32 Corrected Machine Check */            554 /* 1: IA32 Corrected Machine Check */
1543                                                  555 
1544 struct acpi_hest_ia_corrected {                  556 struct acpi_hest_ia_corrected {
1545         struct acpi_hest_header header;          557         struct acpi_hest_header header;
1546         u16 reserved1;                           558         u16 reserved1;
1547         u8 flags;               /* See flags     559         u8 flags;               /* See flags ACPI_HEST_GLOBAL, etc. above */
1548         u8 enabled;                              560         u8 enabled;
1549         u32 records_to_preallocate;              561         u32 records_to_preallocate;
1550         u32 max_sections_per_record;             562         u32 max_sections_per_record;
1551         struct acpi_hest_notify notify;          563         struct acpi_hest_notify notify;
1552         u8 num_hardware_banks;                   564         u8 num_hardware_banks;
1553         u8 reserved2[3];                         565         u8 reserved2[3];
1554 };                                               566 };
1555                                                  567 
1556 /* 2: IA32 Non-Maskable Interrupt */             568 /* 2: IA32 Non-Maskable Interrupt */
1557                                                  569 
1558 struct acpi_hest_ia_nmi {                        570 struct acpi_hest_ia_nmi {
1559         struct acpi_hest_header header;          571         struct acpi_hest_header header;
1560         u32 reserved;                            572         u32 reserved;
1561         u32 records_to_preallocate;              573         u32 records_to_preallocate;
1562         u32 max_sections_per_record;             574         u32 max_sections_per_record;
1563         u32 max_raw_data_length;                 575         u32 max_raw_data_length;
1564 };                                               576 };
1565                                                  577 
1566 /* 3,4,5: Not used */                            578 /* 3,4,5: Not used */
1567                                                  579 
1568 /* 6: PCI Express Root Port AER */               580 /* 6: PCI Express Root Port AER */
1569                                                  581 
1570 struct acpi_hest_aer_root {                      582 struct acpi_hest_aer_root {
1571         struct acpi_hest_header header;          583         struct acpi_hest_header header;
1572         struct acpi_hest_aer_common aer;         584         struct acpi_hest_aer_common aer;
1573         u32 root_error_command;                  585         u32 root_error_command;
1574 };                                               586 };
1575                                                  587 
1576 /* 7: PCI Express AER (AER Endpoint) */          588 /* 7: PCI Express AER (AER Endpoint) */
1577                                                  589 
1578 struct acpi_hest_aer {                           590 struct acpi_hest_aer {
1579         struct acpi_hest_header header;          591         struct acpi_hest_header header;
1580         struct acpi_hest_aer_common aer;         592         struct acpi_hest_aer_common aer;
1581 };                                               593 };
1582                                                  594 
1583 /* 8: PCI Express/PCI-X Bridge AER */            595 /* 8: PCI Express/PCI-X Bridge AER */
1584                                                  596 
1585 struct acpi_hest_aer_bridge {                    597 struct acpi_hest_aer_bridge {
1586         struct acpi_hest_header header;          598         struct acpi_hest_header header;
1587         struct acpi_hest_aer_common aer;         599         struct acpi_hest_aer_common aer;
1588         u32 uncorrectable_mask2;                 600         u32 uncorrectable_mask2;
1589         u32 uncorrectable_severity2;             601         u32 uncorrectable_severity2;
1590         u32 advanced_capabilities2;              602         u32 advanced_capabilities2;
1591 };                                               603 };
1592                                                  604 
1593 /* 9: Generic Hardware Error Source */           605 /* 9: Generic Hardware Error Source */
1594                                                  606 
1595 struct acpi_hest_generic {                       607 struct acpi_hest_generic {
1596         struct acpi_hest_header header;          608         struct acpi_hest_header header;
1597         u16 related_source_id;                   609         u16 related_source_id;
1598         u8 reserved;                             610         u8 reserved;
1599         u8 enabled;                              611         u8 enabled;
1600         u32 records_to_preallocate;              612         u32 records_to_preallocate;
1601         u32 max_sections_per_record;             613         u32 max_sections_per_record;
1602         u32 max_raw_data_length;                 614         u32 max_raw_data_length;
1603         struct acpi_generic_address error_sta    615         struct acpi_generic_address error_status_address;
1604         struct acpi_hest_notify notify;          616         struct acpi_hest_notify notify;
1605         u32 error_block_length;                  617         u32 error_block_length;
1606 };                                               618 };
1607                                                  619 
1608 /* 10: Generic Hardware Error Source, version    620 /* 10: Generic Hardware Error Source, version 2 */
1609                                                  621 
1610 struct acpi_hest_generic_v2 {                    622 struct acpi_hest_generic_v2 {
1611         struct acpi_hest_header header;          623         struct acpi_hest_header header;
1612         u16 related_source_id;                   624         u16 related_source_id;
1613         u8 reserved;                             625         u8 reserved;
1614         u8 enabled;                              626         u8 enabled;
1615         u32 records_to_preallocate;              627         u32 records_to_preallocate;
1616         u32 max_sections_per_record;             628         u32 max_sections_per_record;
1617         u32 max_raw_data_length;                 629         u32 max_raw_data_length;
1618         struct acpi_generic_address error_sta    630         struct acpi_generic_address error_status_address;
1619         struct acpi_hest_notify notify;          631         struct acpi_hest_notify notify;
1620         u32 error_block_length;                  632         u32 error_block_length;
1621         struct acpi_generic_address read_ack_    633         struct acpi_generic_address read_ack_register;
1622         u64 read_ack_preserve;                   634         u64 read_ack_preserve;
1623         u64 read_ack_write;                      635         u64 read_ack_write;
1624 };                                               636 };
1625                                                  637 
1626 /* Generic Error Status block */                 638 /* Generic Error Status block */
1627                                                  639 
1628 struct acpi_hest_generic_status {                640 struct acpi_hest_generic_status {
1629         u32 block_status;                        641         u32 block_status;
1630         u32 raw_data_offset;                     642         u32 raw_data_offset;
1631         u32 raw_data_length;                     643         u32 raw_data_length;
1632         u32 data_length;                         644         u32 data_length;
1633         u32 error_severity;                      645         u32 error_severity;
1634 };                                               646 };
1635                                                  647 
1636 /* Values for block_status flags above */        648 /* Values for block_status flags above */
1637                                                  649 
1638 #define ACPI_HEST_UNCORRECTABLE             (    650 #define ACPI_HEST_UNCORRECTABLE             (1)
1639 #define ACPI_HEST_CORRECTABLE               (    651 #define ACPI_HEST_CORRECTABLE               (1<<1)
1640 #define ACPI_HEST_MULTIPLE_UNCORRECTABLE    (    652 #define ACPI_HEST_MULTIPLE_UNCORRECTABLE    (1<<2)
1641 #define ACPI_HEST_MULTIPLE_CORRECTABLE      (    653 #define ACPI_HEST_MULTIPLE_CORRECTABLE      (1<<3)
1642 #define ACPI_HEST_ERROR_ENTRY_COUNT         (    654 #define ACPI_HEST_ERROR_ENTRY_COUNT         (0xFF<<4)   /* 8 bits, error count */
1643                                                  655 
1644 /* Generic Error Data entry */                   656 /* Generic Error Data entry */
1645                                                  657 
1646 struct acpi_hest_generic_data {                  658 struct acpi_hest_generic_data {
1647         u8 section_type[16];                     659         u8 section_type[16];
1648         u32 error_severity;                      660         u32 error_severity;
1649         u16 revision;                            661         u16 revision;
1650         u8 validation_bits;                      662         u8 validation_bits;
1651         u8 flags;                                663         u8 flags;
1652         u32 error_data_length;                   664         u32 error_data_length;
1653         u8 fru_id[16];                           665         u8 fru_id[16];
1654         u8 fru_text[20];                         666         u8 fru_text[20];
1655 };                                               667 };
1656                                                  668 
1657 /* Extension for revision 0x0300 */              669 /* Extension for revision 0x0300 */
1658                                                  670 
1659 struct acpi_hest_generic_data_v300 {             671 struct acpi_hest_generic_data_v300 {
1660         u8 section_type[16];                     672         u8 section_type[16];
1661         u32 error_severity;                      673         u32 error_severity;
1662         u16 revision;                            674         u16 revision;
1663         u8 validation_bits;                      675         u8 validation_bits;
1664         u8 flags;                                676         u8 flags;
1665         u32 error_data_length;                   677         u32 error_data_length;
1666         u8 fru_id[16];                           678         u8 fru_id[16];
1667         u8 fru_text[20];                         679         u8 fru_text[20];
1668         u64 time_stamp;                          680         u64 time_stamp;
1669 };                                               681 };
1670                                                  682 
1671 /* Values for error_severity above */            683 /* Values for error_severity above */
1672                                                  684 
1673 #define ACPI_HEST_GEN_ERROR_RECOVERABLE     0    685 #define ACPI_HEST_GEN_ERROR_RECOVERABLE     0
1674 #define ACPI_HEST_GEN_ERROR_FATAL           1    686 #define ACPI_HEST_GEN_ERROR_FATAL           1
1675 #define ACPI_HEST_GEN_ERROR_CORRECTED       2    687 #define ACPI_HEST_GEN_ERROR_CORRECTED       2
1676 #define ACPI_HEST_GEN_ERROR_NONE            3    688 #define ACPI_HEST_GEN_ERROR_NONE            3
1677                                                  689 
1678 /* Flags for validation_bits above */            690 /* Flags for validation_bits above */
1679                                                  691 
1680 #define ACPI_HEST_GEN_VALID_FRU_ID          (    692 #define ACPI_HEST_GEN_VALID_FRU_ID          (1)
1681 #define ACPI_HEST_GEN_VALID_FRU_STRING      (    693 #define ACPI_HEST_GEN_VALID_FRU_STRING      (1<<1)
1682 #define ACPI_HEST_GEN_VALID_TIMESTAMP       (    694 #define ACPI_HEST_GEN_VALID_TIMESTAMP       (1<<2)
1683                                                  695 
1684 /* 11: IA32 Deferred Machine Check Exception     696 /* 11: IA32 Deferred Machine Check Exception (ACPI 6.2) */
1685                                                  697 
1686 struct acpi_hest_ia_deferred_check {             698 struct acpi_hest_ia_deferred_check {
1687         struct acpi_hest_header header;          699         struct acpi_hest_header header;
1688         u16 reserved1;                           700         u16 reserved1;
1689         u8 flags;               /* See flags     701         u8 flags;               /* See flags ACPI_HEST_GLOBAL, etc. above */
1690         u8 enabled;                              702         u8 enabled;
1691         u32 records_to_preallocate;              703         u32 records_to_preallocate;
1692         u32 max_sections_per_record;             704         u32 max_sections_per_record;
1693         struct acpi_hest_notify notify;          705         struct acpi_hest_notify notify;
1694         u8 num_hardware_banks;                   706         u8 num_hardware_banks;
1695         u8 reserved2[3];                         707         u8 reserved2[3];
1696 };                                               708 };
1697                                                  709 
1698 /********************************************    710 /*******************************************************************************
1699  *                                               711  *
1700  * HMAT - Heterogeneous Memory Attributes Tab    712  * HMAT - Heterogeneous Memory Attributes Table (ACPI 6.2)
1701  *        Version 1                              713  *        Version 1
1702  *                                               714  *
1703  ********************************************    715  ******************************************************************************/
1704                                                  716 
1705 struct acpi_table_hmat {                         717 struct acpi_table_hmat {
1706         struct acpi_table_header header;         718         struct acpi_table_header header;        /* Common ACPI table header */
1707         u32 reserved;                            719         u32 reserved;
1708 };                                               720 };
1709                                                  721 
1710 /* Values for HMAT structure types */            722 /* Values for HMAT structure types */
1711                                                  723 
1712 enum acpi_hmat_type {                            724 enum acpi_hmat_type {
1713         ACPI_HMAT_TYPE_PROXIMITY = 0,   /* Me !! 725         ACPI_HMAT_TYPE_ADDRESS_RANGE = 0,       /* Memory subystem address range */
1714         ACPI_HMAT_TYPE_LOCALITY = 1,    /* Sy    726         ACPI_HMAT_TYPE_LOCALITY = 1,    /* System locality latency and bandwidth information */
1715         ACPI_HMAT_TYPE_CACHE = 2,       /* Me    727         ACPI_HMAT_TYPE_CACHE = 2,       /* Memory side cache information */
1716         ACPI_HMAT_TYPE_RESERVED = 3     /* 3     728         ACPI_HMAT_TYPE_RESERVED = 3     /* 3 and greater are reserved */
1717 };                                               729 };
1718                                                  730 
1719 struct acpi_hmat_structure {                     731 struct acpi_hmat_structure {
1720         u16 type;                                732         u16 type;
1721         u16 reserved;                            733         u16 reserved;
1722         u32 length;                              734         u32 length;
1723 };                                               735 };
1724                                                  736 
1725 /*                                               737 /*
1726  * HMAT Structures, correspond to Type in str    738  * HMAT Structures, correspond to Type in struct acpi_hmat_structure
1727  */                                              739  */
1728                                                  740 
1729 /* 0: Memory proximity domain attributes */   !! 741 /* 0: Memory subystem address range */
1730                                                  742 
1731 struct acpi_hmat_proximity_domain {           !! 743 struct acpi_hmat_address_range {
1732         struct acpi_hmat_structure header;       744         struct acpi_hmat_structure header;
1733         u16 flags;                               745         u16 flags;
1734         u16 reserved1;                           746         u16 reserved1;
1735         u32 processor_PD;       /* Processor     747         u32 processor_PD;       /* Processor proximity domain */
1736         u32 memory_PD;          /* Memory pro    748         u32 memory_PD;          /* Memory proximity domain */
1737         u32 reserved2;                           749         u32 reserved2;
1738         u64 reserved3;                        !! 750         u64 physical_address_base;      /* Physical address range base */
1739         u64 reserved4;                        !! 751         u64 physical_address_length;    /* Physical address range length */
1740 };                                               752 };
1741                                                  753 
1742 /* Masks for Flags field above */                754 /* Masks for Flags field above */
1743                                                  755 
1744 #define ACPI_HMAT_PROCESSOR_PD_VALID    (1)      756 #define ACPI_HMAT_PROCESSOR_PD_VALID    (1)     /* 1: processor_PD field is valid */
1745 #define ACPI_HMAT_MEMORY_PD_VALID       (1<<1    757 #define ACPI_HMAT_MEMORY_PD_VALID       (1<<1)  /* 1: memory_PD field is valid */
1746 #define ACPI_HMAT_RESERVATION_HINT      (1<<2    758 #define ACPI_HMAT_RESERVATION_HINT      (1<<2)  /* 1: Reservation hint */
1747                                                  759 
1748 /* 1: System locality latency and bandwidth i    760 /* 1: System locality latency and bandwidth information */
1749                                                  761 
1750 struct acpi_hmat_locality {                      762 struct acpi_hmat_locality {
1751         struct acpi_hmat_structure header;       763         struct acpi_hmat_structure header;
1752         u8 flags;                                764         u8 flags;
1753         u8 data_type;                            765         u8 data_type;
1754         u8 min_transfer_size;                 !! 766         u16 reserved1;
1755         u8 reserved1;                         << 
1756         u32 number_of_initiator_Pds;             767         u32 number_of_initiator_Pds;
1757         u32 number_of_target_Pds;                768         u32 number_of_target_Pds;
1758         u32 reserved2;                           769         u32 reserved2;
1759         u64 entry_base_unit;                     770         u64 entry_base_unit;
1760 };                                               771 };
1761                                                  772 
1762 /* Masks for Flags field above */                773 /* Masks for Flags field above */
1763                                                  774 
1764 #define ACPI_HMAT_MEMORY_HIERARCHY  (0x0F)    !! 775 #define ACPI_HMAT_MEMORY_HIERARCHY  (0x0F)
1765                                                  776 
1766 /* Values for Memory Hierarchy flags */       !! 777 /* Values for Memory Hierarchy flag */
1767                                                  778 
1768 #define ACPI_HMAT_MEMORY            0            779 #define ACPI_HMAT_MEMORY            0
1769 #define ACPI_HMAT_LAST_LEVEL_CACHE  1            780 #define ACPI_HMAT_LAST_LEVEL_CACHE  1
1770 #define ACPI_HMAT_1ST_LEVEL_CACHE   2            781 #define ACPI_HMAT_1ST_LEVEL_CACHE   2
1771 #define ACPI_HMAT_2ND_LEVEL_CACHE   3            782 #define ACPI_HMAT_2ND_LEVEL_CACHE   3
1772 #define ACPI_HMAT_3RD_LEVEL_CACHE   4            783 #define ACPI_HMAT_3RD_LEVEL_CACHE   4
1773 #define ACPI_HMAT_MINIMUM_XFER_SIZE 0x10      << 
1774 #define ACPI_HMAT_NON_SEQUENTIAL_XFERS 0x20   << 
1775                                               << 
1776                                                  784 
1777 /* Values for data_type field above */           785 /* Values for data_type field above */
1778                                                  786 
1779 #define ACPI_HMAT_ACCESS_LATENCY    0            787 #define ACPI_HMAT_ACCESS_LATENCY    0
1780 #define ACPI_HMAT_READ_LATENCY      1            788 #define ACPI_HMAT_READ_LATENCY      1
1781 #define ACPI_HMAT_WRITE_LATENCY     2            789 #define ACPI_HMAT_WRITE_LATENCY     2
1782 #define ACPI_HMAT_ACCESS_BANDWIDTH  3            790 #define ACPI_HMAT_ACCESS_BANDWIDTH  3
1783 #define ACPI_HMAT_READ_BANDWIDTH    4            791 #define ACPI_HMAT_READ_BANDWIDTH    4
1784 #define ACPI_HMAT_WRITE_BANDWIDTH   5            792 #define ACPI_HMAT_WRITE_BANDWIDTH   5
1785                                                  793 
1786 /* 2: Memory side cache information */           794 /* 2: Memory side cache information */
1787                                                  795 
1788 struct acpi_hmat_cache {                         796 struct acpi_hmat_cache {
1789         struct acpi_hmat_structure header;       797         struct acpi_hmat_structure header;
1790         u32 memory_PD;                           798         u32 memory_PD;
1791         u32 reserved1;                           799         u32 reserved1;
1792         u64 cache_size;                          800         u64 cache_size;
1793         u32 cache_attributes;                    801         u32 cache_attributes;
1794         u16 reserved2;                           802         u16 reserved2;
1795         u16 number_of_SMBIOShandles;             803         u16 number_of_SMBIOShandles;
1796 };                                               804 };
1797                                                  805 
1798 /* Masks for cache_attributes field above */     806 /* Masks for cache_attributes field above */
1799                                                  807 
1800 #define ACPI_HMAT_TOTAL_CACHE_LEVEL     (0x00    808 #define ACPI_HMAT_TOTAL_CACHE_LEVEL     (0x0000000F)
1801 #define ACPI_HMAT_CACHE_LEVEL           (0x00    809 #define ACPI_HMAT_CACHE_LEVEL           (0x000000F0)
1802 #define ACPI_HMAT_CACHE_ASSOCIATIVITY   (0x00    810 #define ACPI_HMAT_CACHE_ASSOCIATIVITY   (0x00000F00)
1803 #define ACPI_HMAT_WRITE_POLICY          (0x00    811 #define ACPI_HMAT_WRITE_POLICY          (0x0000F000)
1804 #define ACPI_HMAT_CACHE_LINE_SIZE       (0xFF    812 #define ACPI_HMAT_CACHE_LINE_SIZE       (0xFFFF0000)
1805                                                  813 
1806 /* Values for cache associativity flag */        814 /* Values for cache associativity flag */
1807                                                  815 
1808 #define ACPI_HMAT_CA_NONE                        816 #define ACPI_HMAT_CA_NONE                     (0)
1809 #define ACPI_HMAT_CA_DIRECT_MAPPED               817 #define ACPI_HMAT_CA_DIRECT_MAPPED            (1)
1810 #define ACPI_HMAT_CA_COMPLEX_CACHE_INDEXING      818 #define ACPI_HMAT_CA_COMPLEX_CACHE_INDEXING   (2)
1811                                                  819 
1812 /* Values for write policy flag */               820 /* Values for write policy flag */
1813                                                  821 
1814 #define ACPI_HMAT_CP_NONE   (0)                  822 #define ACPI_HMAT_CP_NONE   (0)
1815 #define ACPI_HMAT_CP_WB     (1)                  823 #define ACPI_HMAT_CP_WB     (1)
1816 #define ACPI_HMAT_CP_WT     (2)                  824 #define ACPI_HMAT_CP_WT     (2)
1817                                                  825 
1818 /********************************************    826 /*******************************************************************************
1819  *                                               827  *
1820  * HPET - High Precision Event Timer table    !! 828  * MADT - Multiple APIC Description Table
1821  *        Version 1                           !! 829  *        Version 3
1822  *                                            << 
1823  * Conforms to "IA-PC HPET (High Precision Ev << 
1824  * Version 1.0a, October 2004                 << 
1825  *                                               830  *
1826  ********************************************    831  ******************************************************************************/
1827                                                  832 
1828 struct acpi_table_hpet {                      !! 833 struct acpi_table_madt {
1829         struct acpi_table_header header;         834         struct acpi_table_header header;        /* Common ACPI table header */
1830         u32 id;                 /* Hardware I !! 835         u32 address;            /* Physical address of local APIC */
1831         struct acpi_generic_address address;  !! 836         u32 flags;
1832         u8 sequence;            /* HPET seque << 
1833         u16 minimum_tick;       /* Main count << 
1834         u8 flags;                             << 
1835 };                                               837 };
1836                                                  838 
1837 /* Masks for Flags field above */                839 /* Masks for Flags field above */
1838                                                  840 
1839 #define ACPI_HPET_PAGE_PROTECT_MASK (3)       !! 841 #define ACPI_MADT_PCAT_COMPAT       (1) /* 00: System also has dual 8259s */
                                                   >> 842 
                                                   >> 843 /* Values for PCATCompat flag */
                                                   >> 844 
                                                   >> 845 #define ACPI_MADT_DUAL_PIC          1
                                                   >> 846 #define ACPI_MADT_MULTIPLE_APIC     0
1840                                                  847 
1841 /* Values for Page Protect flags */           !! 848 /* Values for MADT subtable type in struct acpi_subtable_header */
1842                                                  849 
1843 enum acpi_hpet_page_protect {                 !! 850 enum acpi_madt_type {
1844         ACPI_HPET_NO_PAGE_PROTECT = 0,        !! 851         ACPI_MADT_TYPE_LOCAL_APIC = 0,
1845         ACPI_HPET_PAGE_PROTECT4 = 1,          !! 852         ACPI_MADT_TYPE_IO_APIC = 1,
1846         ACPI_HPET_PAGE_PROTECT64 = 2          !! 853         ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2,
                                                   >> 854         ACPI_MADT_TYPE_NMI_SOURCE = 3,
                                                   >> 855         ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4,
                                                   >> 856         ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5,
                                                   >> 857         ACPI_MADT_TYPE_IO_SAPIC = 6,
                                                   >> 858         ACPI_MADT_TYPE_LOCAL_SAPIC = 7,
                                                   >> 859         ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8,
                                                   >> 860         ACPI_MADT_TYPE_LOCAL_X2APIC = 9,
                                                   >> 861         ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10,
                                                   >> 862         ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11,
                                                   >> 863         ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12,
                                                   >> 864         ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13,
                                                   >> 865         ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14,
                                                   >> 866         ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15,
                                                   >> 867         ACPI_MADT_TYPE_RESERVED = 16    /* 16 and greater are reserved */
1847 };                                               868 };
1848                                                  869 
                                                   >> 870 /*
                                                   >> 871  * MADT Subtables, correspond to Type in struct acpi_subtable_header
                                                   >> 872  */
                                                   >> 873 
                                                   >> 874 /* 0: Processor Local APIC */
                                                   >> 875 
                                                   >> 876 struct acpi_madt_local_apic {
                                                   >> 877         struct acpi_subtable_header header;
                                                   >> 878         u8 processor_id;        /* ACPI processor id */
                                                   >> 879         u8 id;                  /* Processor's local APIC id */
                                                   >> 880         u32 lapic_flags;
                                                   >> 881 };
                                                   >> 882 
                                                   >> 883 /* 1: IO APIC */
                                                   >> 884 
                                                   >> 885 struct acpi_madt_io_apic {
                                                   >> 886         struct acpi_subtable_header header;
                                                   >> 887         u8 id;                  /* I/O APIC ID */
                                                   >> 888         u8 reserved;            /* reserved - must be zero */
                                                   >> 889         u32 address;            /* APIC physical address */
                                                   >> 890         u32 global_irq_base;    /* Global system interrupt where INTI lines start */
                                                   >> 891 };
                                                   >> 892 
                                                   >> 893 /* 2: Interrupt Override */
                                                   >> 894 
                                                   >> 895 struct acpi_madt_interrupt_override {
                                                   >> 896         struct acpi_subtable_header header;
                                                   >> 897         u8 bus;                 /* 0 - ISA */
                                                   >> 898         u8 source_irq;          /* Interrupt source (IRQ) */
                                                   >> 899         u32 global_irq;         /* Global system interrupt */
                                                   >> 900         u16 inti_flags;
                                                   >> 901 };
                                                   >> 902 
                                                   >> 903 /* 3: NMI Source */
                                                   >> 904 
                                                   >> 905 struct acpi_madt_nmi_source {
                                                   >> 906         struct acpi_subtable_header header;
                                                   >> 907         u16 inti_flags;
                                                   >> 908         u32 global_irq;         /* Global system interrupt */
                                                   >> 909 };
                                                   >> 910 
                                                   >> 911 /* 4: Local APIC NMI */
                                                   >> 912 
                                                   >> 913 struct acpi_madt_local_apic_nmi {
                                                   >> 914         struct acpi_subtable_header header;
                                                   >> 915         u8 processor_id;        /* ACPI processor id */
                                                   >> 916         u16 inti_flags;
                                                   >> 917         u8 lint;                /* LINTn to which NMI is connected */
                                                   >> 918 };
                                                   >> 919 
                                                   >> 920 /* 5: Address Override */
                                                   >> 921 
                                                   >> 922 struct acpi_madt_local_apic_override {
                                                   >> 923         struct acpi_subtable_header header;
                                                   >> 924         u16 reserved;           /* Reserved, must be zero */
                                                   >> 925         u64 address;            /* APIC physical address */
                                                   >> 926 };
                                                   >> 927 
                                                   >> 928 /* 6: I/O Sapic */
                                                   >> 929 
                                                   >> 930 struct acpi_madt_io_sapic {
                                                   >> 931         struct acpi_subtable_header header;
                                                   >> 932         u8 id;                  /* I/O SAPIC ID */
                                                   >> 933         u8 reserved;            /* Reserved, must be zero */
                                                   >> 934         u32 global_irq_base;    /* Global interrupt for SAPIC start */
                                                   >> 935         u64 address;            /* SAPIC physical address */
                                                   >> 936 };
                                                   >> 937 
                                                   >> 938 /* 7: Local Sapic */
                                                   >> 939 
                                                   >> 940 struct acpi_madt_local_sapic {
                                                   >> 941         struct acpi_subtable_header header;
                                                   >> 942         u8 processor_id;        /* ACPI processor id */
                                                   >> 943         u8 id;                  /* SAPIC ID */
                                                   >> 944         u8 eid;                 /* SAPIC EID */
                                                   >> 945         u8 reserved[3];         /* Reserved, must be zero */
                                                   >> 946         u32 lapic_flags;
                                                   >> 947         u32 uid;                /* Numeric UID - ACPI 3.0 */
                                                   >> 948         char uid_string[1];     /* String UID  - ACPI 3.0 */
                                                   >> 949 };
                                                   >> 950 
                                                   >> 951 /* 8: Platform Interrupt Source */
                                                   >> 952 
                                                   >> 953 struct acpi_madt_interrupt_source {
                                                   >> 954         struct acpi_subtable_header header;
                                                   >> 955         u16 inti_flags;
                                                   >> 956         u8 type;                /* 1=PMI, 2=INIT, 3=corrected */
                                                   >> 957         u8 id;                  /* Processor ID */
                                                   >> 958         u8 eid;                 /* Processor EID */
                                                   >> 959         u8 io_sapic_vector;     /* Vector value for PMI interrupts */
                                                   >> 960         u32 global_irq;         /* Global system interrupt */
                                                   >> 961         u32 flags;              /* Interrupt Source Flags */
                                                   >> 962 };
                                                   >> 963 
                                                   >> 964 /* Masks for Flags field above */
                                                   >> 965 
                                                   >> 966 #define ACPI_MADT_CPEI_OVERRIDE     (1)
                                                   >> 967 
                                                   >> 968 /* 9: Processor Local X2APIC (ACPI 4.0) */
                                                   >> 969 
                                                   >> 970 struct acpi_madt_local_x2apic {
                                                   >> 971         struct acpi_subtable_header header;
                                                   >> 972         u16 reserved;           /* reserved - must be zero */
                                                   >> 973         u32 local_apic_id;      /* Processor x2APIC ID  */
                                                   >> 974         u32 lapic_flags;
                                                   >> 975         u32 uid;                /* ACPI processor UID */
                                                   >> 976 };
                                                   >> 977 
                                                   >> 978 /* 10: Local X2APIC NMI (ACPI 4.0) */
                                                   >> 979 
                                                   >> 980 struct acpi_madt_local_x2apic_nmi {
                                                   >> 981         struct acpi_subtable_header header;
                                                   >> 982         u16 inti_flags;
                                                   >> 983         u32 uid;                /* ACPI processor UID */
                                                   >> 984         u8 lint;                /* LINTn to which NMI is connected */
                                                   >> 985         u8 reserved[3];         /* reserved - must be zero */
                                                   >> 986 };
                                                   >> 987 
                                                   >> 988 /* 11: Generic Interrupt (ACPI 5.0 + ACPI 6.0 changes) */
                                                   >> 989 
                                                   >> 990 struct acpi_madt_generic_interrupt {
                                                   >> 991         struct acpi_subtable_header header;
                                                   >> 992         u16 reserved;           /* reserved - must be zero */
                                                   >> 993         u32 cpu_interface_number;
                                                   >> 994         u32 uid;
                                                   >> 995         u32 flags;
                                                   >> 996         u32 parking_version;
                                                   >> 997         u32 performance_interrupt;
                                                   >> 998         u64 parked_address;
                                                   >> 999         u64 base_address;
                                                   >> 1000         u64 gicv_base_address;
                                                   >> 1001         u64 gich_base_address;
                                                   >> 1002         u32 vgic_interrupt;
                                                   >> 1003         u64 gicr_base_address;
                                                   >> 1004         u64 arm_mpidr;
                                                   >> 1005         u8 efficiency_class;
                                                   >> 1006         u8 reserved2[3];
                                                   >> 1007 };
                                                   >> 1008 
                                                   >> 1009 /* Masks for Flags field above */
                                                   >> 1010 
                                                   >> 1011 /* ACPI_MADT_ENABLED                    (1)      Processor is usable if set */
                                                   >> 1012 #define ACPI_MADT_PERFORMANCE_IRQ_MODE  (1<<1)  /* 01: Performance Interrupt Mode */
                                                   >> 1013 #define ACPI_MADT_VGIC_IRQ_MODE         (1<<2)  /* 02: VGIC Maintenance Interrupt mode */
                                                   >> 1014 
                                                   >> 1015 /* 12: Generic Distributor (ACPI 5.0 + ACPI 6.0 changes) */
                                                   >> 1016 
                                                   >> 1017 struct acpi_madt_generic_distributor {
                                                   >> 1018         struct acpi_subtable_header header;
                                                   >> 1019         u16 reserved;           /* reserved - must be zero */
                                                   >> 1020         u32 gic_id;
                                                   >> 1021         u64 base_address;
                                                   >> 1022         u32 global_irq_base;
                                                   >> 1023         u8 version;
                                                   >> 1024         u8 reserved2[3];        /* reserved - must be zero */
                                                   >> 1025 };
                                                   >> 1026 
                                                   >> 1027 /* Values for Version field above */
                                                   >> 1028 
                                                   >> 1029 enum acpi_madt_gic_version {
                                                   >> 1030         ACPI_MADT_GIC_VERSION_NONE = 0,
                                                   >> 1031         ACPI_MADT_GIC_VERSION_V1 = 1,
                                                   >> 1032         ACPI_MADT_GIC_VERSION_V2 = 2,
                                                   >> 1033         ACPI_MADT_GIC_VERSION_V3 = 3,
                                                   >> 1034         ACPI_MADT_GIC_VERSION_V4 = 4,
                                                   >> 1035         ACPI_MADT_GIC_VERSION_RESERVED = 5      /* 5 and greater are reserved */
                                                   >> 1036 };
                                                   >> 1037 
                                                   >> 1038 /* 13: Generic MSI Frame (ACPI 5.1) */
                                                   >> 1039 
                                                   >> 1040 struct acpi_madt_generic_msi_frame {
                                                   >> 1041         struct acpi_subtable_header header;
                                                   >> 1042         u16 reserved;           /* reserved - must be zero */
                                                   >> 1043         u32 msi_frame_id;
                                                   >> 1044         u64 base_address;
                                                   >> 1045         u32 flags;
                                                   >> 1046         u16 spi_count;
                                                   >> 1047         u16 spi_base;
                                                   >> 1048 };
                                                   >> 1049 
                                                   >> 1050 /* Masks for Flags field above */
                                                   >> 1051 
                                                   >> 1052 #define ACPI_MADT_OVERRIDE_SPI_VALUES   (1)
                                                   >> 1053 
                                                   >> 1054 /* 14: Generic Redistributor (ACPI 5.1) */
                                                   >> 1055 
                                                   >> 1056 struct acpi_madt_generic_redistributor {
                                                   >> 1057         struct acpi_subtable_header header;
                                                   >> 1058         u16 reserved;           /* reserved - must be zero */
                                                   >> 1059         u64 base_address;
                                                   >> 1060         u32 length;
                                                   >> 1061 };
                                                   >> 1062 
                                                   >> 1063 /* 15: Generic Translator (ACPI 6.0) */
                                                   >> 1064 
                                                   >> 1065 struct acpi_madt_generic_translator {
                                                   >> 1066         struct acpi_subtable_header header;
                                                   >> 1067         u16 reserved;           /* reserved - must be zero */
                                                   >> 1068         u32 translation_id;
                                                   >> 1069         u64 base_address;
                                                   >> 1070         u32 reserved2;
                                                   >> 1071 };
                                                   >> 1072 
                                                   >> 1073 /*
                                                   >> 1074  * Common flags fields for MADT subtables
                                                   >> 1075  */
                                                   >> 1076 
                                                   >> 1077 /* MADT Local APIC flags */
                                                   >> 1078 
                                                   >> 1079 #define ACPI_MADT_ENABLED           (1) /* 00: Processor is usable if set */
                                                   >> 1080 
                                                   >> 1081 /* MADT MPS INTI flags (inti_flags) */
                                                   >> 1082 
                                                   >> 1083 #define ACPI_MADT_POLARITY_MASK     (3) /* 00-01: Polarity of APIC I/O input signals */
                                                   >> 1084 #define ACPI_MADT_TRIGGER_MASK      (3<<2)      /* 02-03: Trigger mode of APIC input signals */
                                                   >> 1085 
                                                   >> 1086 /* Values for MPS INTI flags */
                                                   >> 1087 
                                                   >> 1088 #define ACPI_MADT_POLARITY_CONFORMS       0
                                                   >> 1089 #define ACPI_MADT_POLARITY_ACTIVE_HIGH    1
                                                   >> 1090 #define ACPI_MADT_POLARITY_RESERVED       2
                                                   >> 1091 #define ACPI_MADT_POLARITY_ACTIVE_LOW     3
                                                   >> 1092 
                                                   >> 1093 #define ACPI_MADT_TRIGGER_CONFORMS        (0)
                                                   >> 1094 #define ACPI_MADT_TRIGGER_EDGE            (1<<2)
                                                   >> 1095 #define ACPI_MADT_TRIGGER_RESERVED        (2<<2)
                                                   >> 1096 #define ACPI_MADT_TRIGGER_LEVEL           (3<<2)
                                                   >> 1097 
1849 /********************************************    1098 /*******************************************************************************
1850  *                                               1099  *
1851  * IBFT - Boot Firmware Table                 !! 1100  * MSCT - Maximum System Characteristics Table (ACPI 4.0)
1852  *        Version 1                              1101  *        Version 1
1853  *                                               1102  *
1854  * Conforms to "iSCSI Boot Firmware Table (iB !! 1103  ******************************************************************************/
1855  * Specification", Version 1.01, March 1, 200 !! 1104 
                                                   >> 1105 struct acpi_table_msct {
                                                   >> 1106         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1107         u32 proximity_offset;   /* Location of proximity info struct(s) */
                                                   >> 1108         u32 max_proximity_domains;      /* Max number of proximity domains */
                                                   >> 1109         u32 max_clock_domains;  /* Max number of clock domains */
                                                   >> 1110         u64 max_address;        /* Max physical address in system */
                                                   >> 1111 };
                                                   >> 1112 
                                                   >> 1113 /* subtable - Maximum Proximity Domain Information. Version 1 */
                                                   >> 1114 
                                                   >> 1115 struct acpi_msct_proximity {
                                                   >> 1116         u8 revision;
                                                   >> 1117         u8 length;
                                                   >> 1118         u32 range_start;        /* Start of domain range */
                                                   >> 1119         u32 range_end;          /* End of domain range */
                                                   >> 1120         u32 processor_capacity;
                                                   >> 1121         u64 memory_capacity;    /* In bytes */
                                                   >> 1122 };
                                                   >> 1123 
                                                   >> 1124 /*******************************************************************************
1856  *                                               1125  *
1857  * Note: It appears that this table is not in !! 1126  * NFIT - NVDIMM Interface Table (ACPI 6.0+)
1858  * Therefore, it is not currently supported b !! 1127  *        Version 1
1859  *                                               1128  *
1860  ********************************************    1129  ******************************************************************************/
1861                                                  1130 
1862 struct acpi_table_ibft {                      !! 1131 struct acpi_table_nfit {
1863         struct acpi_table_header header;         1132         struct acpi_table_header header;        /* Common ACPI table header */
1864         u8 reserved[12];                      !! 1133         u32 reserved;           /* Reserved, must be zero */
1865 };                                               1134 };
1866                                                  1135 
1867 /* IBFT common subtable header */             !! 1136 /* Subtable header for NFIT */
1868                                                  1137 
1869 struct acpi_ibft_header {                     !! 1138 struct acpi_nfit_header {
1870         u8 type;                              !! 1139         u16 type;
1871         u8 version;                           << 
1872         u16 length;                              1140         u16 length;
1873         u8 index;                             !! 1141 };
                                                   >> 1142 
                                                   >> 1143 /* Values for subtable type in struct acpi_nfit_header */
                                                   >> 1144 
                                                   >> 1145 enum acpi_nfit_type {
                                                   >> 1146         ACPI_NFIT_TYPE_SYSTEM_ADDRESS = 0,
                                                   >> 1147         ACPI_NFIT_TYPE_MEMORY_MAP = 1,
                                                   >> 1148         ACPI_NFIT_TYPE_INTERLEAVE = 2,
                                                   >> 1149         ACPI_NFIT_TYPE_SMBIOS = 3,
                                                   >> 1150         ACPI_NFIT_TYPE_CONTROL_REGION = 4,
                                                   >> 1151         ACPI_NFIT_TYPE_DATA_REGION = 5,
                                                   >> 1152         ACPI_NFIT_TYPE_FLUSH_ADDRESS = 6,
                                                   >> 1153         ACPI_NFIT_TYPE_CAPABILITIES = 7,
                                                   >> 1154         ACPI_NFIT_TYPE_RESERVED = 8     /* 8 and greater are reserved */
                                                   >> 1155 };
                                                   >> 1156 
                                                   >> 1157 /*
                                                   >> 1158  * NFIT Subtables
                                                   >> 1159  */
                                                   >> 1160 
                                                   >> 1161 /* 0: System Physical Address Range Structure */
                                                   >> 1162 
                                                   >> 1163 struct acpi_nfit_system_address {
                                                   >> 1164         struct acpi_nfit_header header;
                                                   >> 1165         u16 range_index;
                                                   >> 1166         u16 flags;
                                                   >> 1167         u32 reserved;           /* Reserved, must be zero */
                                                   >> 1168         u32 proximity_domain;
                                                   >> 1169         u8 range_guid[16];
                                                   >> 1170         u64 address;
                                                   >> 1171         u64 length;
                                                   >> 1172         u64 memory_mapping;
                                                   >> 1173 };
                                                   >> 1174 
                                                   >> 1175 /* Flags */
                                                   >> 1176 
                                                   >> 1177 #define ACPI_NFIT_ADD_ONLINE_ONLY       (1)     /* 00: Add/Online Operation Only */
                                                   >> 1178 #define ACPI_NFIT_PROXIMITY_VALID       (1<<1)  /* 01: Proximity Domain Valid */
                                                   >> 1179 
                                                   >> 1180 /* Range Type GUIDs appear in the include/acuuid.h file */
                                                   >> 1181 
                                                   >> 1182 /* 1: Memory Device to System Address Range Map Structure */
                                                   >> 1183 
                                                   >> 1184 struct acpi_nfit_memory_map {
                                                   >> 1185         struct acpi_nfit_header header;
                                                   >> 1186         u32 device_handle;
                                                   >> 1187         u16 physical_id;
                                                   >> 1188         u16 region_id;
                                                   >> 1189         u16 range_index;
                                                   >> 1190         u16 region_index;
                                                   >> 1191         u64 region_size;
                                                   >> 1192         u64 region_offset;
                                                   >> 1193         u64 address;
                                                   >> 1194         u16 interleave_index;
                                                   >> 1195         u16 interleave_ways;
                                                   >> 1196         u16 flags;
                                                   >> 1197         u16 reserved;           /* Reserved, must be zero */
                                                   >> 1198 };
                                                   >> 1199 
                                                   >> 1200 /* Flags */
                                                   >> 1201 
                                                   >> 1202 #define ACPI_NFIT_MEM_SAVE_FAILED       (1)     /* 00: Last SAVE to Memory Device failed */
                                                   >> 1203 #define ACPI_NFIT_MEM_RESTORE_FAILED    (1<<1)  /* 01: Last RESTORE from Memory Device failed */
                                                   >> 1204 #define ACPI_NFIT_MEM_FLUSH_FAILED      (1<<2)  /* 02: Platform flush failed */
                                                   >> 1205 #define ACPI_NFIT_MEM_NOT_ARMED         (1<<3)  /* 03: Memory Device is not armed */
                                                   >> 1206 #define ACPI_NFIT_MEM_HEALTH_OBSERVED   (1<<4)  /* 04: Memory Device observed SMART/health events */
                                                   >> 1207 #define ACPI_NFIT_MEM_HEALTH_ENABLED    (1<<5)  /* 05: SMART/health events enabled */
                                                   >> 1208 #define ACPI_NFIT_MEM_MAP_FAILED        (1<<6)  /* 06: Mapping to SPA failed */
                                                   >> 1209 
                                                   >> 1210 /* 2: Interleave Structure */
                                                   >> 1211 
                                                   >> 1212 struct acpi_nfit_interleave {
                                                   >> 1213         struct acpi_nfit_header header;
                                                   >> 1214         u16 interleave_index;
                                                   >> 1215         u16 reserved;           /* Reserved, must be zero */
                                                   >> 1216         u32 line_count;
                                                   >> 1217         u32 line_size;
                                                   >> 1218         u32 line_offset[1];     /* Variable length */
                                                   >> 1219 };
                                                   >> 1220 
                                                   >> 1221 /* 3: SMBIOS Management Information Structure */
                                                   >> 1222 
                                                   >> 1223 struct acpi_nfit_smbios {
                                                   >> 1224         struct acpi_nfit_header header;
                                                   >> 1225         u32 reserved;           /* Reserved, must be zero */
                                                   >> 1226         u8 data[1];             /* Variable length */
                                                   >> 1227 };
                                                   >> 1228 
                                                   >> 1229 /* 4: NVDIMM Control Region Structure */
                                                   >> 1230 
                                                   >> 1231 struct acpi_nfit_control_region {
                                                   >> 1232         struct acpi_nfit_header header;
                                                   >> 1233         u16 region_index;
                                                   >> 1234         u16 vendor_id;
                                                   >> 1235         u16 device_id;
                                                   >> 1236         u16 revision_id;
                                                   >> 1237         u16 subsystem_vendor_id;
                                                   >> 1238         u16 subsystem_device_id;
                                                   >> 1239         u16 subsystem_revision_id;
                                                   >> 1240         u8 valid_fields;
                                                   >> 1241         u8 manufacturing_location;
                                                   >> 1242         u16 manufacturing_date;
                                                   >> 1243         u8 reserved[2];         /* Reserved, must be zero */
                                                   >> 1244         u32 serial_number;
                                                   >> 1245         u16 code;
                                                   >> 1246         u16 windows;
                                                   >> 1247         u64 window_size;
                                                   >> 1248         u64 command_offset;
                                                   >> 1249         u64 command_size;
                                                   >> 1250         u64 status_offset;
                                                   >> 1251         u64 status_size;
                                                   >> 1252         u16 flags;
                                                   >> 1253         u8 reserved1[6];        /* Reserved, must be zero */
                                                   >> 1254 };
                                                   >> 1255 
                                                   >> 1256 /* Flags */
                                                   >> 1257 
                                                   >> 1258 #define ACPI_NFIT_CONTROL_BUFFERED          (1) /* Block Data Windows implementation is buffered */
                                                   >> 1259 
                                                   >> 1260 /* valid_fields bits */
                                                   >> 1261 
                                                   >> 1262 #define ACPI_NFIT_CONTROL_MFG_INFO_VALID    (1) /* Manufacturing fields are valid */
                                                   >> 1263 
                                                   >> 1264 /* 5: NVDIMM Block Data Window Region Structure */
                                                   >> 1265 
                                                   >> 1266 struct acpi_nfit_data_region {
                                                   >> 1267         struct acpi_nfit_header header;
                                                   >> 1268         u16 region_index;
                                                   >> 1269         u16 windows;
                                                   >> 1270         u64 offset;
                                                   >> 1271         u64 size;
                                                   >> 1272         u64 capacity;
                                                   >> 1273         u64 start_address;
                                                   >> 1274 };
                                                   >> 1275 
                                                   >> 1276 /* 6: Flush Hint Address Structure */
                                                   >> 1277 
                                                   >> 1278 struct acpi_nfit_flush_address {
                                                   >> 1279         struct acpi_nfit_header header;
                                                   >> 1280         u32 device_handle;
                                                   >> 1281         u16 hint_count;
                                                   >> 1282         u8 reserved[6];         /* Reserved, must be zero */
                                                   >> 1283         u64 hint_address[1];    /* Variable length */
                                                   >> 1284 };
                                                   >> 1285 
                                                   >> 1286 /* 7: Platform Capabilities Structure */
                                                   >> 1287 
                                                   >> 1288 struct acpi_nfit_capabilities {
                                                   >> 1289         struct acpi_nfit_header header;
                                                   >> 1290         u8 highest_capability;
                                                   >> 1291         u8 reserved[3];         /* Reserved, must be zero */
                                                   >> 1292         u32 capabilities;
                                                   >> 1293         u32 reserved2;
                                                   >> 1294 };
                                                   >> 1295 
                                                   >> 1296 /* Capabilities Flags */
                                                   >> 1297 
                                                   >> 1298 #define ACPI_NFIT_CAPABILITY_CACHE_FLUSH       (1)      /* 00: Cache Flush to NVDIMM capable */
                                                   >> 1299 #define ACPI_NFIT_CAPABILITY_MEM_FLUSH         (1<<1)   /* 01: Memory Flush to NVDIMM capable */
                                                   >> 1300 #define ACPI_NFIT_CAPABILITY_MEM_MIRRORING     (1<<2)   /* 02: Memory Mirroring capable */
                                                   >> 1301 
                                                   >> 1302 /*
                                                   >> 1303  * NFIT/DVDIMM device handle support - used as the _ADR for each NVDIMM
                                                   >> 1304  */
                                                   >> 1305 struct nfit_device_handle {
                                                   >> 1306         u32 handle;
                                                   >> 1307 };
                                                   >> 1308 
                                                   >> 1309 /* Device handle construction and extraction macros */
                                                   >> 1310 
                                                   >> 1311 #define ACPI_NFIT_DIMM_NUMBER_MASK              0x0000000F
                                                   >> 1312 #define ACPI_NFIT_CHANNEL_NUMBER_MASK           0x000000F0
                                                   >> 1313 #define ACPI_NFIT_MEMORY_ID_MASK                0x00000F00
                                                   >> 1314 #define ACPI_NFIT_SOCKET_ID_MASK                0x0000F000
                                                   >> 1315 #define ACPI_NFIT_NODE_ID_MASK                  0x0FFF0000
                                                   >> 1316 
                                                   >> 1317 #define ACPI_NFIT_DIMM_NUMBER_OFFSET            0
                                                   >> 1318 #define ACPI_NFIT_CHANNEL_NUMBER_OFFSET         4
                                                   >> 1319 #define ACPI_NFIT_MEMORY_ID_OFFSET              8
                                                   >> 1320 #define ACPI_NFIT_SOCKET_ID_OFFSET              12
                                                   >> 1321 #define ACPI_NFIT_NODE_ID_OFFSET                16
                                                   >> 1322 
                                                   >> 1323 /* Macro to construct a NFIT/NVDIMM device handle */
                                                   >> 1324 
                                                   >> 1325 #define ACPI_NFIT_BUILD_DEVICE_HANDLE(dimm, channel, memory, socket, node) \
                                                   >> 1326         ((dimm)                                         | \
                                                   >> 1327         ((channel) << ACPI_NFIT_CHANNEL_NUMBER_OFFSET)  | \
                                                   >> 1328         ((memory)  << ACPI_NFIT_MEMORY_ID_OFFSET)       | \
                                                   >> 1329         ((socket)  << ACPI_NFIT_SOCKET_ID_OFFSET)       | \
                                                   >> 1330         ((node)    << ACPI_NFIT_NODE_ID_OFFSET))
                                                   >> 1331 
                                                   >> 1332 /* Macros to extract individual fields from a NFIT/NVDIMM device handle */
                                                   >> 1333 
                                                   >> 1334 #define ACPI_NFIT_GET_DIMM_NUMBER(handle) \
                                                   >> 1335         ((handle) & ACPI_NFIT_DIMM_NUMBER_MASK)
                                                   >> 1336 
                                                   >> 1337 #define ACPI_NFIT_GET_CHANNEL_NUMBER(handle) \
                                                   >> 1338         (((handle) & ACPI_NFIT_CHANNEL_NUMBER_MASK) >> ACPI_NFIT_CHANNEL_NUMBER_OFFSET)
                                                   >> 1339 
                                                   >> 1340 #define ACPI_NFIT_GET_MEMORY_ID(handle) \
                                                   >> 1341         (((handle) & ACPI_NFIT_MEMORY_ID_MASK)      >> ACPI_NFIT_MEMORY_ID_OFFSET)
                                                   >> 1342 
                                                   >> 1343 #define ACPI_NFIT_GET_SOCKET_ID(handle) \
                                                   >> 1344         (((handle) & ACPI_NFIT_SOCKET_ID_MASK)      >> ACPI_NFIT_SOCKET_ID_OFFSET)
                                                   >> 1345 
                                                   >> 1346 #define ACPI_NFIT_GET_NODE_ID(handle) \
                                                   >> 1347         (((handle) & ACPI_NFIT_NODE_ID_MASK)        >> ACPI_NFIT_NODE_ID_OFFSET)
                                                   >> 1348 
                                                   >> 1349 /*******************************************************************************
                                                   >> 1350  *
                                                   >> 1351  * PDTT - Platform Debug Trigger Table (ACPI 6.2)
                                                   >> 1352  *        Version 0
                                                   >> 1353  *
                                                   >> 1354  ******************************************************************************/
                                                   >> 1355 
                                                   >> 1356 struct acpi_table_pdtt {
                                                   >> 1357         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1358         u8 trigger_count;
                                                   >> 1359         u8 reserved[3];
                                                   >> 1360         u32 array_offset;
                                                   >> 1361 };
                                                   >> 1362 
                                                   >> 1363 /*
                                                   >> 1364  * PDTT Communication Channel Identifier Structure.
                                                   >> 1365  * The number of these structures is defined by trigger_count above,
                                                   >> 1366  * starting at array_offset.
                                                   >> 1367  */
                                                   >> 1368 struct acpi_pdtt_channel {
                                                   >> 1369         u8 subchannel_id;
1874         u8 flags;                                1370         u8 flags;
1875 };                                               1371 };
1876                                                  1372 
                                                   >> 1373 /* Flags for above */
                                                   >> 1374 
                                                   >> 1375 #define ACPI_PDTT_RUNTIME_TRIGGER           (1)
                                                   >> 1376 #define ACPI_PDTT_WAIT_COMPLETION           (1<<1)
                                                   >> 1377 
                                                   >> 1378 /*******************************************************************************
                                                   >> 1379  *
                                                   >> 1380  * PPTT - Processor Properties Topology Table (ACPI 6.2)
                                                   >> 1381  *        Version 1
                                                   >> 1382  *
                                                   >> 1383  ******************************************************************************/
                                                   >> 1384 
                                                   >> 1385 struct acpi_table_pptt {
                                                   >> 1386         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1387 };
                                                   >> 1388 
1877 /* Values for Type field above */                1389 /* Values for Type field above */
1878                                                  1390 
1879 enum acpi_ibft_type {                         !! 1391 enum acpi_pptt_type {
1880         ACPI_IBFT_TYPE_NOT_USED = 0,          !! 1392         ACPI_PPTT_TYPE_PROCESSOR = 0,
1881         ACPI_IBFT_TYPE_CONTROL = 1,           !! 1393         ACPI_PPTT_TYPE_CACHE = 1,
1882         ACPI_IBFT_TYPE_INITIATOR = 2,         !! 1394         ACPI_PPTT_TYPE_ID = 2,
1883         ACPI_IBFT_TYPE_NIC = 3,               !! 1395         ACPI_PPTT_TYPE_RESERVED = 3
1884         ACPI_IBFT_TYPE_TARGET = 4,            !! 1396 };
1885         ACPI_IBFT_TYPE_EXTENSIONS = 5,        !! 1397 
1886         ACPI_IBFT_TYPE_RESERVED = 6     /* 6  !! 1398 /* 0: Processor Hierarchy Node Structure */
1887 };                                            !! 1399 
1888                                               !! 1400 struct acpi_pptt_processor {
1889 /* IBFT subtables */                          !! 1401         struct acpi_subtable_header header;
1890                                               !! 1402         u16 reserved;
1891 struct acpi_ibft_control {                    !! 1403         u32 flags;
1892         struct acpi_ibft_header header;       !! 1404         u32 parent;
1893         u16 extensions;                       !! 1405         u32 acpi_processor_id;
1894         u16 initiator_offset;                 !! 1406         u32 number_of_priv_resources;
1895         u16 nic0_offset;                      !! 1407 };
1896         u16 target0_offset;                   !! 1408 
1897         u16 nic1_offset;                      !! 1409 /* Flags */
1898         u16 target1_offset;                   !! 1410 
1899 };                                            !! 1411 #define ACPI_PPTT_PHYSICAL_PACKAGE          (1) /* Physical package */
1900                                               !! 1412 #define ACPI_PPTT_ACPI_PROCESSOR_ID_VALID   (2) /* ACPI Processor ID valid */
1901 struct acpi_ibft_initiator {                  !! 1413 
1902         struct acpi_ibft_header header;       !! 1414 /* 1: Cache Type Structure */
1903         u8 sns_server[16];                    !! 1415 
1904         u8 slp_server[16];                    !! 1416 struct acpi_pptt_cache {
1905         u8 primary_server[16];                !! 1417         struct acpi_subtable_header header;
1906         u8 secondary_server[16];              !! 1418         u16 reserved;
1907         u16 name_length;                      !! 1419         u32 flags;
1908         u16 name_offset;                      !! 1420         u32 next_level_of_cache;
1909 };                                            !! 1421         u32 size;
1910                                               !! 1422         u32 number_of_sets;
1911 struct acpi_ibft_nic {                        !! 1423         u8 associativity;
1912         struct acpi_ibft_header header;       !! 1424         u8 attributes;
1913         u8 ip_address[16];                    !! 1425         u16 line_size;
1914         u8 subnet_mask_prefix;                !! 1426 };
1915         u8 origin;                            !! 1427 
1916         u8 gateway[16];                       !! 1428 /* Flags */
1917         u8 primary_dns[16];                   !! 1429 
1918         u8 secondary_dns[16];                 !! 1430 #define ACPI_PPTT_SIZE_PROPERTY_VALID       (1) /* Physical property valid */
1919         u8 dhcp[16];                          !! 1431 #define ACPI_PPTT_NUMBER_OF_SETS_VALID      (1<<1)      /* Number of sets valid */
1920         u16 vlan;                             !! 1432 #define ACPI_PPTT_ASSOCIATIVITY_VALID       (1<<2)      /* Associativity valid */
1921         u8 mac_address[6];                    !! 1433 #define ACPI_PPTT_ALLOCATION_TYPE_VALID     (1<<3)      /* Allocation type valid */
1922         u16 pci_address;                      !! 1434 #define ACPI_PPTT_CACHE_TYPE_VALID          (1<<4)      /* Cache type valid */
1923         u16 name_length;                      !! 1435 #define ACPI_PPTT_WRITE_POLICY_VALID        (1<<5)      /* Write policy valid */
1924         u16 name_offset;                      !! 1436 #define ACPI_PPTT_LINE_SIZE_VALID           (1<<6)      /* Line size valid */
1925 };                                            !! 1437 
1926                                               !! 1438 /* Masks for Attributes */
1927 struct acpi_ibft_target {                     !! 1439 
1928         struct acpi_ibft_header header;       !! 1440 #define ACPI_PPTT_MASK_ALLOCATION_TYPE      (0x03)      /* Allocation type */
1929         u8 target_ip_address[16];             !! 1441 #define ACPI_PPTT_MASK_CACHE_TYPE           (0x0C)      /* Cache type */
1930         u16 target_ip_socket;                 !! 1442 #define ACPI_PPTT_MASK_WRITE_POLICY         (0x10)      /* Write policy */
1931         u8 target_boot_lun[8];                !! 1443 
1932         u8 chap_type;                         !! 1444 /* Attributes describing cache */
1933         u8 nic_association;                   !! 1445 #define ACPI_PPTT_CACHE_READ_ALLOCATE       (0x0)       /* Cache line is allocated on read */
1934         u16 target_name_length;               !! 1446 #define ACPI_PPTT_CACHE_WRITE_ALLOCATE      (0x01)      /* Cache line is allocated on write */
1935         u16 target_name_offset;               !! 1447 #define ACPI_PPTT_CACHE_RW_ALLOCATE         (0x02)      /* Cache line is allocated on read and write */
1936         u16 chap_name_length;                 !! 1448 #define ACPI_PPTT_CACHE_RW_ALLOCATE_ALT     (0x03)      /* Alternate representation of above */
1937         u16 chap_name_offset;                 !! 1449 
1938         u16 chap_secret_length;               !! 1450 #define ACPI_PPTT_CACHE_TYPE_DATA           (0x0)       /* Data cache */
1939         u16 chap_secret_offset;               !! 1451 #define ACPI_PPTT_CACHE_TYPE_INSTR          (1<<2)      /* Instruction cache */
1940         u16 reverse_chap_name_length;         !! 1452 #define ACPI_PPTT_CACHE_TYPE_UNIFIED        (2<<2)      /* Unified I & D cache */
1941         u16 reverse_chap_name_offset;         !! 1453 #define ACPI_PPTT_CACHE_TYPE_UNIFIED_ALT    (3<<2)      /* Alternate representation of above */
1942         u16 reverse_chap_secret_length;       !! 1454 
1943         u16 reverse_chap_secret_offset;       !! 1455 #define ACPI_PPTT_CACHE_POLICY_WB           (0x0)       /* Cache is write back */
                                                   >> 1456 #define ACPI_PPTT_CACHE_POLICY_WT           (1<<4)      /* Cache is write through */
                                                   >> 1457 
                                                   >> 1458 /* 2: ID Structure */
                                                   >> 1459 
                                                   >> 1460 struct acpi_pptt_id {
                                                   >> 1461         struct acpi_subtable_header header;
                                                   >> 1462         u16 reserved;
                                                   >> 1463         u32 vendor_id;
                                                   >> 1464         u64 level1_id;
                                                   >> 1465         u64 level2_id;
                                                   >> 1466         u16 major_rev;
                                                   >> 1467         u16 minor_rev;
                                                   >> 1468         u16 spin_rev;
                                                   >> 1469 };
                                                   >> 1470 
                                                   >> 1471 /*******************************************************************************
                                                   >> 1472  *
                                                   >> 1473  * SBST - Smart Battery Specification Table
                                                   >> 1474  *        Version 1
                                                   >> 1475  *
                                                   >> 1476  ******************************************************************************/
                                                   >> 1477 
                                                   >> 1478 struct acpi_table_sbst {
                                                   >> 1479         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1480         u32 warning_level;
                                                   >> 1481         u32 low_level;
                                                   >> 1482         u32 critical_level;
                                                   >> 1483 };
                                                   >> 1484 
                                                   >> 1485 /*******************************************************************************
                                                   >> 1486  *
                                                   >> 1487  * SDEV - Secure Devices Table (ACPI 6.2)
                                                   >> 1488  *        Version 1
                                                   >> 1489  *
                                                   >> 1490  ******************************************************************************/
                                                   >> 1491 
                                                   >> 1492 struct acpi_table_sdev {
                                                   >> 1493         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1494 };
                                                   >> 1495 
                                                   >> 1496 struct acpi_sdev_header {
                                                   >> 1497         u8 type;
                                                   >> 1498         u8 flags;
                                                   >> 1499         u16 length;
                                                   >> 1500 };
                                                   >> 1501 
                                                   >> 1502 /* Values for subtable type above */
                                                   >> 1503 
                                                   >> 1504 enum acpi_sdev_type {
                                                   >> 1505         ACPI_SDEV_TYPE_NAMESPACE_DEVICE = 0,
                                                   >> 1506         ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE = 1,
                                                   >> 1507         ACPI_SDEV_TYPE_RESERVED = 2     /* 2 and greater are reserved */
                                                   >> 1508 };
                                                   >> 1509 
                                                   >> 1510 /* Values for flags above */
                                                   >> 1511 
                                                   >> 1512 #define ACPI_SDEV_HANDOFF_TO_UNSECURE_OS    (1)
                                                   >> 1513 
                                                   >> 1514 /*
                                                   >> 1515  * SDEV subtables
                                                   >> 1516  */
                                                   >> 1517 
                                                   >> 1518 /* 0: Namespace Device Based Secure Device Structure */
                                                   >> 1519 
                                                   >> 1520 struct acpi_sdev_namespace {
                                                   >> 1521         struct acpi_sdev_header header;
                                                   >> 1522         u16 device_id_offset;
                                                   >> 1523         u16 device_id_length;
                                                   >> 1524         u16 vendor_data_offset;
                                                   >> 1525         u16 vendor_data_length;
                                                   >> 1526 };
                                                   >> 1527 
                                                   >> 1528 /* 1: PCIe Endpoint Device Based Device Structure */
                                                   >> 1529 
                                                   >> 1530 struct acpi_sdev_pcie {
                                                   >> 1531         struct acpi_sdev_header header;
                                                   >> 1532         u16 segment;
                                                   >> 1533         u16 start_bus;
                                                   >> 1534         u16 path_offset;
                                                   >> 1535         u16 path_length;
                                                   >> 1536         u16 vendor_data_offset;
                                                   >> 1537         u16 vendor_data_length;
                                                   >> 1538 };
                                                   >> 1539 
                                                   >> 1540 /* 1a: PCIe Endpoint path entry */
                                                   >> 1541 
                                                   >> 1542 struct acpi_sdev_pcie_path {
                                                   >> 1543         u8 device;
                                                   >> 1544         u8 function;
                                                   >> 1545 };
                                                   >> 1546 
                                                   >> 1547 /*******************************************************************************
                                                   >> 1548  *
                                                   >> 1549  * SLIT - System Locality Distance Information Table
                                                   >> 1550  *        Version 1
                                                   >> 1551  *
                                                   >> 1552  ******************************************************************************/
                                                   >> 1553 
                                                   >> 1554 struct acpi_table_slit {
                                                   >> 1555         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1556         u64 locality_count;
                                                   >> 1557         u8 entry[1];            /* Real size = localities^2 */
                                                   >> 1558 };
                                                   >> 1559 
                                                   >> 1560 /*******************************************************************************
                                                   >> 1561  *
                                                   >> 1562  * SRAT - System Resource Affinity Table
                                                   >> 1563  *        Version 3
                                                   >> 1564  *
                                                   >> 1565  ******************************************************************************/
                                                   >> 1566 
                                                   >> 1567 struct acpi_table_srat {
                                                   >> 1568         struct acpi_table_header header;        /* Common ACPI table header */
                                                   >> 1569         u32 table_revision;     /* Must be value '1' */
                                                   >> 1570         u64 reserved;           /* Reserved, must be zero */
                                                   >> 1571 };
                                                   >> 1572 
                                                   >> 1573 /* Values for subtable type in struct acpi_subtable_header */
                                                   >> 1574 
                                                   >> 1575 enum acpi_srat_type {
                                                   >> 1576         ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
                                                   >> 1577         ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
                                                   >> 1578         ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
                                                   >> 1579         ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
                                                   >> 1580         ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4,    /* ACPI 6.2 */
                                                   >> 1581         ACPI_SRAT_TYPE_RESERVED = 5     /* 5 and greater are reserved */
                                                   >> 1582 };
                                                   >> 1583 
                                                   >> 1584 /*
                                                   >> 1585  * SRAT Subtables, correspond to Type in struct acpi_subtable_header
                                                   >> 1586  */
                                                   >> 1587 
                                                   >> 1588 /* 0: Processor Local APIC/SAPIC Affinity */
                                                   >> 1589 
                                                   >> 1590 struct acpi_srat_cpu_affinity {
                                                   >> 1591         struct acpi_subtable_header header;
                                                   >> 1592         u8 proximity_domain_lo;
                                                   >> 1593         u8 apic_id;
                                                   >> 1594         u32 flags;
                                                   >> 1595         u8 local_sapic_eid;
                                                   >> 1596         u8 proximity_domain_hi[3];
                                                   >> 1597         u32 clock_domain;
                                                   >> 1598 };
                                                   >> 1599 
                                                   >> 1600 /* Flags */
                                                   >> 1601 
                                                   >> 1602 #define ACPI_SRAT_CPU_USE_AFFINITY  (1) /* 00: Use affinity structure */
                                                   >> 1603 
                                                   >> 1604 /* 1: Memory Affinity */
                                                   >> 1605 
                                                   >> 1606 struct acpi_srat_mem_affinity {
                                                   >> 1607         struct acpi_subtable_header header;
                                                   >> 1608         u32 proximity_domain;
                                                   >> 1609         u16 reserved;           /* Reserved, must be zero */
                                                   >> 1610         u64 base_address;
                                                   >> 1611         u64 length;
                                                   >> 1612        u32 reserved1;
                                                   >> 1613         u32 flags;
                                                   >> 1614        u64 reserved2;          /* Reserved, must be zero */
                                                   >> 1615 };
                                                   >> 1616 
                                                   >> 1617 /* Flags */
                                                   >> 1618 
                                                   >> 1619 #define ACPI_SRAT_MEM_ENABLED       (1) /* 00: Use affinity structure */
                                                   >> 1620 #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1)      /* 01: Memory region is hot pluggable */
                                                   >> 1621 #define ACPI_SRAT_MEM_NON_VOLATILE  (1<<2)      /* 02: Memory region is non-volatile */
                                                   >> 1622 
                                                   >> 1623 /* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */
                                                   >> 1624 
                                                   >> 1625 struct acpi_srat_x2apic_cpu_affinity {
                                                   >> 1626         struct acpi_subtable_header header;
                                                   >> 1627         u16 reserved;           /* Reserved, must be zero */
                                                   >> 1628         u32 proximity_domain;
                                                   >> 1629         u32 apic_id;
                                                   >> 1630         u32 flags;
                                                   >> 1631         u32 clock_domain;
                                                   >> 1632         u32 reserved2;
                                                   >> 1633 };
                                                   >> 1634 
                                                   >> 1635 /* Flags for struct acpi_srat_cpu_affinity and struct acpi_srat_x2apic_cpu_affinity */
                                                   >> 1636 
                                                   >> 1637 #define ACPI_SRAT_CPU_ENABLED       (1) /* 00: Use affinity structure */
                                                   >> 1638 
                                                   >> 1639 /* 3: GICC Affinity (ACPI 5.1) */
                                                   >> 1640 
                                                   >> 1641 struct acpi_srat_gicc_affinity {
                                                   >> 1642         struct acpi_subtable_header header;
                                                   >> 1643         u32 proximity_domain;
                                                   >> 1644         u32 acpi_processor_uid;
                                                   >> 1645         u32 flags;
                                                   >> 1646         u32 clock_domain;
                                                   >> 1647 };
                                                   >> 1648 
                                                   >> 1649 /* Flags for struct acpi_srat_gicc_affinity */
                                                   >> 1650 
                                                   >> 1651 #define ACPI_SRAT_GICC_ENABLED     (1)  /* 00: Use affinity structure */
                                                   >> 1652 
                                                   >> 1653 /* 4: GCC ITS Affinity (ACPI 6.2) */
                                                   >> 1654 
                                                   >> 1655 struct acpi_srat_gic_its_affinity {
                                                   >> 1656         struct acpi_subtable_header header;
                                                   >> 1657         u32 proximity_domain;
                                                   >> 1658         u16 reserved;
                                                   >> 1659         u32 its_id;
1944 };                                               1660 };
1945                                                  1661 
1946 /* Reset to default packing */                   1662 /* Reset to default packing */
1947                                                  1663 
1948 #pragma pack()                                   1664 #pragma pack()
1949                                                  1665 
1950 #endif                          /* __ACTBL1_H    1666 #endif                          /* __ACTBL1_H__ */
1951                                                  1667 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php