xref: /haiku/src/add-ons/kernel/bus_managers/acpi/acpica/include/actbinfo.h (revision 9d6c8e7f567af94f4e1a124e920a271cc86af052)
1ff2e2f81SFredrik Holmqvist /******************************************************************************
2ff2e2f81SFredrik Holmqvist  *
3ff2e2f81SFredrik Holmqvist  * Module Name: actbinfo - Table disassembly info for non-AML tables
4ff2e2f81SFredrik Holmqvist  *
5ff2e2f81SFredrik Holmqvist  *****************************************************************************/
6ff2e2f81SFredrik Holmqvist 
7ff2e2f81SFredrik Holmqvist /******************************************************************************
8ff2e2f81SFredrik Holmqvist  *
9ff2e2f81SFredrik Holmqvist  * 1. Copyright Notice
10ff2e2f81SFredrik Holmqvist  *
11*6dde014fSPulkoMandy  * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
12ff2e2f81SFredrik Holmqvist  * All rights reserved.
13ff2e2f81SFredrik Holmqvist  *
14ff2e2f81SFredrik Holmqvist  * 2. License
15ff2e2f81SFredrik Holmqvist  *
16ff2e2f81SFredrik Holmqvist  * 2.1. This is your license from Intel Corp. under its intellectual property
17ff2e2f81SFredrik Holmqvist  * rights. You may have additional license terms from the party that provided
18ff2e2f81SFredrik Holmqvist  * you this software, covering your right to use that party's intellectual
19ff2e2f81SFredrik Holmqvist  * property rights.
20ff2e2f81SFredrik Holmqvist  *
21ff2e2f81SFredrik Holmqvist  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22ff2e2f81SFredrik Holmqvist  * copy of the source code appearing in this file ("Covered Code") an
23ff2e2f81SFredrik Holmqvist  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24ff2e2f81SFredrik Holmqvist  * base code distributed originally by Intel ("Original Intel Code") to copy,
25ff2e2f81SFredrik Holmqvist  * make derivatives, distribute, use and display any portion of the Covered
26ff2e2f81SFredrik Holmqvist  * Code in any form, with the right to sublicense such rights; and
27ff2e2f81SFredrik Holmqvist  *
28ff2e2f81SFredrik Holmqvist  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29ff2e2f81SFredrik Holmqvist  * license (with the right to sublicense), under only those claims of Intel
30ff2e2f81SFredrik Holmqvist  * patents that are infringed by the Original Intel Code, to make, use, sell,
31ff2e2f81SFredrik Holmqvist  * offer to sell, and import the Covered Code and derivative works thereof
32ff2e2f81SFredrik Holmqvist  * solely to the minimum extent necessary to exercise the above copyright
33ff2e2f81SFredrik Holmqvist  * license, and in no event shall the patent license extend to any additions
34ff2e2f81SFredrik Holmqvist  * to or modifications of the Original Intel Code. No other license or right
35ff2e2f81SFredrik Holmqvist  * is granted directly or by implication, estoppel or otherwise;
36ff2e2f81SFredrik Holmqvist  *
37ff2e2f81SFredrik Holmqvist  * The above copyright and patent license is granted only if the following
38ff2e2f81SFredrik Holmqvist  * conditions are met:
39ff2e2f81SFredrik Holmqvist  *
40ff2e2f81SFredrik Holmqvist  * 3. Conditions
41ff2e2f81SFredrik Holmqvist  *
42ff2e2f81SFredrik Holmqvist  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43ff2e2f81SFredrik Holmqvist  * Redistribution of source code of any substantial portion of the Covered
44ff2e2f81SFredrik Holmqvist  * Code or modification with rights to further distribute source must include
45ff2e2f81SFredrik Holmqvist  * the above Copyright Notice, the above License, this list of Conditions,
46ff2e2f81SFredrik Holmqvist  * and the following Disclaimer and Export Compliance provision. In addition,
47ff2e2f81SFredrik Holmqvist  * Licensee must cause all Covered Code to which Licensee contributes to
48ff2e2f81SFredrik Holmqvist  * contain a file documenting the changes Licensee made to create that Covered
49ff2e2f81SFredrik Holmqvist  * Code and the date of any change. Licensee must include in that file the
50ff2e2f81SFredrik Holmqvist  * documentation of any changes made by any predecessor Licensee. Licensee
51ff2e2f81SFredrik Holmqvist  * must include a prominent statement that the modification is derived,
52ff2e2f81SFredrik Holmqvist  * directly or indirectly, from Original Intel Code.
53ff2e2f81SFredrik Holmqvist  *
54ff2e2f81SFredrik Holmqvist  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55ff2e2f81SFredrik Holmqvist  * Redistribution of source code of any substantial portion of the Covered
56ff2e2f81SFredrik Holmqvist  * Code or modification without rights to further distribute source must
57ff2e2f81SFredrik Holmqvist  * include the following Disclaimer and Export Compliance provision in the
58ff2e2f81SFredrik Holmqvist  * documentation and/or other materials provided with distribution. In
59ff2e2f81SFredrik Holmqvist  * addition, Licensee may not authorize further sublicense of source of any
60ff2e2f81SFredrik Holmqvist  * portion of the Covered Code, and must include terms to the effect that the
61ff2e2f81SFredrik Holmqvist  * license from Licensee to its licensee is limited to the intellectual
62ff2e2f81SFredrik Holmqvist  * property embodied in the software Licensee provides to its licensee, and
63ff2e2f81SFredrik Holmqvist  * not to intellectual property embodied in modifications its licensee may
64ff2e2f81SFredrik Holmqvist  * make.
65ff2e2f81SFredrik Holmqvist  *
66ff2e2f81SFredrik Holmqvist  * 3.3. Redistribution of Executable. Redistribution in executable form of any
67ff2e2f81SFredrik Holmqvist  * substantial portion of the Covered Code or modification must reproduce the
68ff2e2f81SFredrik Holmqvist  * above Copyright Notice, and the following Disclaimer and Export Compliance
69ff2e2f81SFredrik Holmqvist  * provision in the documentation and/or other materials provided with the
70ff2e2f81SFredrik Holmqvist  * distribution.
71ff2e2f81SFredrik Holmqvist  *
72ff2e2f81SFredrik Holmqvist  * 3.4. Intel retains all right, title, and interest in and to the Original
73ff2e2f81SFredrik Holmqvist  * Intel Code.
74ff2e2f81SFredrik Holmqvist  *
75ff2e2f81SFredrik Holmqvist  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76ff2e2f81SFredrik Holmqvist  * Intel shall be used in advertising or otherwise to promote the sale, use or
77ff2e2f81SFredrik Holmqvist  * other dealings in products derived from or relating to the Covered Code
78ff2e2f81SFredrik Holmqvist  * without prior written authorization from Intel.
79ff2e2f81SFredrik Holmqvist  *
80ff2e2f81SFredrik Holmqvist  * 4. Disclaimer and Export Compliance
81ff2e2f81SFredrik Holmqvist  *
82ff2e2f81SFredrik Holmqvist  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83ff2e2f81SFredrik Holmqvist  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84ff2e2f81SFredrik Holmqvist  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85ff2e2f81SFredrik Holmqvist  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86ff2e2f81SFredrik Holmqvist  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87ff2e2f81SFredrik Holmqvist  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88ff2e2f81SFredrik Holmqvist  * PARTICULAR PURPOSE.
89ff2e2f81SFredrik Holmqvist  *
90ff2e2f81SFredrik Holmqvist  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91ff2e2f81SFredrik Holmqvist  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92ff2e2f81SFredrik Holmqvist  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93ff2e2f81SFredrik Holmqvist  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94ff2e2f81SFredrik Holmqvist  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95ff2e2f81SFredrik Holmqvist  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96ff2e2f81SFredrik Holmqvist  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97ff2e2f81SFredrik Holmqvist  * LIMITED REMEDY.
98ff2e2f81SFredrik Holmqvist  *
99ff2e2f81SFredrik Holmqvist  * 4.3. Licensee shall not export, either directly or indirectly, any of this
100ff2e2f81SFredrik Holmqvist  * software or system incorporating such software without first obtaining any
101ff2e2f81SFredrik Holmqvist  * required license or other approval from the U. S. Department of Commerce or
102ff2e2f81SFredrik Holmqvist  * any other agency or department of the United States Government. In the
103ff2e2f81SFredrik Holmqvist  * event Licensee exports any such software from the United States or
104ff2e2f81SFredrik Holmqvist  * re-exports any such software from a foreign destination, Licensee shall
105ff2e2f81SFredrik Holmqvist  * ensure that the distribution and export/re-export of the software is in
106ff2e2f81SFredrik Holmqvist  * compliance with all laws, regulations, orders, or other restrictions of the
107ff2e2f81SFredrik Holmqvist  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108ff2e2f81SFredrik Holmqvist  * any of its subsidiaries will export/re-export any technical data, process,
109ff2e2f81SFredrik Holmqvist  * software, or service, directly or indirectly, to any country for which the
110ff2e2f81SFredrik Holmqvist  * United States government or any agency thereof requires an export license,
111ff2e2f81SFredrik Holmqvist  * other governmental approval, or letter of assurance, without first obtaining
112ff2e2f81SFredrik Holmqvist  * such license, approval or letter.
113ff2e2f81SFredrik Holmqvist  *
114ff2e2f81SFredrik Holmqvist  *****************************************************************************
115ff2e2f81SFredrik Holmqvist  *
116ff2e2f81SFredrik Holmqvist  * Alternatively, you may choose to be licensed under the terms of the
117ff2e2f81SFredrik Holmqvist  * following license:
118ff2e2f81SFredrik Holmqvist  *
119ff2e2f81SFredrik Holmqvist  * Redistribution and use in source and binary forms, with or without
120ff2e2f81SFredrik Holmqvist  * modification, are permitted provided that the following conditions
121ff2e2f81SFredrik Holmqvist  * are met:
122ff2e2f81SFredrik Holmqvist  * 1. Redistributions of source code must retain the above copyright
123ff2e2f81SFredrik Holmqvist  *    notice, this list of conditions, and the following disclaimer,
124ff2e2f81SFredrik Holmqvist  *    without modification.
125ff2e2f81SFredrik Holmqvist  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126ff2e2f81SFredrik Holmqvist  *    substantially similar to the "NO WARRANTY" disclaimer below
127ff2e2f81SFredrik Holmqvist  *    ("Disclaimer") and any redistribution must be conditioned upon
128ff2e2f81SFredrik Holmqvist  *    including a substantially similar Disclaimer requirement for further
129ff2e2f81SFredrik Holmqvist  *    binary redistribution.
130ff2e2f81SFredrik Holmqvist  * 3. Neither the names of the above-listed copyright holders nor the names
131ff2e2f81SFredrik Holmqvist  *    of any contributors may be used to endorse or promote products derived
132ff2e2f81SFredrik Holmqvist  *    from this software without specific prior written permission.
133ff2e2f81SFredrik Holmqvist  *
134ff2e2f81SFredrik Holmqvist  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135ff2e2f81SFredrik Holmqvist  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136ff2e2f81SFredrik Holmqvist  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137ff2e2f81SFredrik Holmqvist  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138ff2e2f81SFredrik Holmqvist  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139ff2e2f81SFredrik Holmqvist  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140ff2e2f81SFredrik Holmqvist  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141ff2e2f81SFredrik Holmqvist  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142ff2e2f81SFredrik Holmqvist  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143ff2e2f81SFredrik Holmqvist  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144ff2e2f81SFredrik Holmqvist  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145ff2e2f81SFredrik Holmqvist  *
146ff2e2f81SFredrik Holmqvist  * Alternatively, you may choose to be licensed under the terms of the
147ff2e2f81SFredrik Holmqvist  * GNU General Public License ("GPL") version 2 as published by the Free
148ff2e2f81SFredrik Holmqvist  * Software Foundation.
149ff2e2f81SFredrik Holmqvist  *
150ff2e2f81SFredrik Holmqvist  *****************************************************************************/
151ff2e2f81SFredrik Holmqvist 
152ff2e2f81SFredrik Holmqvist /*
153ff2e2f81SFredrik Holmqvist  * Macros used to generate offsets to specific table fields
154ff2e2f81SFredrik Holmqvist  */
15515338de9SPulkoMandy #define ACPI_AGDI_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_AGDI,f)
15615338de9SPulkoMandy #define ACPI_ASPT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_ASPT,f)
157ff2e2f81SFredrik Holmqvist #define ACPI_FACS_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_FACS,f)
158ff2e2f81SFredrik Holmqvist #define ACPI_GAS_OFFSET(f)              (UINT16) ACPI_OFFSET (ACPI_GENERIC_ADDRESS,f)
159ff2e2f81SFredrik Holmqvist #define ACPI_HDR_OFFSET(f)              (UINT16) ACPI_OFFSET (ACPI_TABLE_HEADER,f)
160ff2e2f81SFredrik Holmqvist #define ACPI_RSDP_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_RSDP,f)
16115338de9SPulkoMandy #define ACPI_BDAT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_BDAT,f)
162ff2e2f81SFredrik Holmqvist #define ACPI_BERT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_BERT,f)
163ff2e2f81SFredrik Holmqvist #define ACPI_BGRT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_BGRT,f)
164ff2e2f81SFredrik Holmqvist #define ACPI_BOOT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_BOOT,f)
16515338de9SPulkoMandy #define ACPI_CCEL_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_CCEL,f)
166ff2e2f81SFredrik Holmqvist #define ACPI_CPEP_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_CPEP,f)
167ff2e2f81SFredrik Holmqvist #define ACPI_DBG2_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_DBG2,f)
168ff2e2f81SFredrik Holmqvist #define ACPI_DBGP_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_DBGP,f)
169ff2e2f81SFredrik Holmqvist #define ACPI_DMAR_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_DMAR,f)
170ff2e2f81SFredrik Holmqvist #define ACPI_DRTM_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_DRTM,f)
171ff2e2f81SFredrik Holmqvist #define ACPI_ECDT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_ECDT,f)
172ff2e2f81SFredrik Holmqvist #define ACPI_EINJ_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_EINJ,f)
173ff2e2f81SFredrik Holmqvist #define ACPI_ERST_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_ERST,f)
174ff2e2f81SFredrik Holmqvist #define ACPI_GTDT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_GTDT,f)
175ff2e2f81SFredrik Holmqvist #define ACPI_HEST_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_HEST,f)
176ff2e2f81SFredrik Holmqvist #define ACPI_HPET_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_HPET,f)
177ff2e2f81SFredrik Holmqvist #define ACPI_HMAT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_HMAT,f)
178ff2e2f81SFredrik Holmqvist #define ACPI_IORT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_IORT,f)
179ff2e2f81SFredrik Holmqvist #define ACPI_IVRS_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_IVRS,f)
180ff2e2f81SFredrik Holmqvist #define ACPI_MADT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_MADT,f)
181ff2e2f81SFredrik Holmqvist #define ACPI_MCFG_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_MCFG,f)
182ff2e2f81SFredrik Holmqvist #define ACPI_MCHI_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_MCHI,f)
183ff2e2f81SFredrik Holmqvist #define ACPI_MPST_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_MPST,f)
184ff2e2f81SFredrik Holmqvist #define ACPI_MSCT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_MSCT,f)
185ff2e2f81SFredrik Holmqvist #define ACPI_NFIT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_NFIT,f)
186ff2e2f81SFredrik Holmqvist #define ACPI_PCCT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_PCCT,f)
187ff2e2f81SFredrik Holmqvist #define ACPI_PDTT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_PDTT,f)
188ff2e2f81SFredrik Holmqvist #define ACPI_PMTT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_PMTT,f)
189ff2e2f81SFredrik Holmqvist #define ACPI_RASF_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_RASF,f)
190*6dde014fSPulkoMandy #define ACPI_RAS2_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_RAS2,f)
19115338de9SPulkoMandy #define ACPI_RGRT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_RGRT,f)
19215338de9SPulkoMandy #define ACPI_RHCT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_RHCT,f)
193ff2e2f81SFredrik Holmqvist #define ACPI_S3PT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_S3PT,f)
194ff2e2f81SFredrik Holmqvist #define ACPI_SBST_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SBST,f)
195ff2e2f81SFredrik Holmqvist #define ACPI_SDEI_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SDEI,f)
196ff2e2f81SFredrik Holmqvist #define ACPI_SDEV_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SDEV,f)
197ff2e2f81SFredrik Holmqvist #define ACPI_SLIT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SLIT,f)
198ff2e2f81SFredrik Holmqvist #define ACPI_SPCR_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SPCR,f)
199ff2e2f81SFredrik Holmqvist #define ACPI_SPMI_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SPMI,f)
200ff2e2f81SFredrik Holmqvist #define ACPI_SRAT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SRAT,f)
201ff2e2f81SFredrik Holmqvist #define ACPI_STAO_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_STAO,f)
20215338de9SPulkoMandy #define ACPI_SVKL_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SVKL,f)
203ff2e2f81SFredrik Holmqvist #define ACPI_TCPA_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_TCPA_HDR,f)
20415338de9SPulkoMandy #define ACPI_TDEL_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_TDEL,f)
205ff2e2f81SFredrik Holmqvist #define ACPI_TPM2_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_TPM2,f)
20608c9948cSFredrik Holmqvist #define ACPI_TPM23_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_TABLE_TPM23,f)
207ff2e2f81SFredrik Holmqvist #define ACPI_UEFI_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_UEFI,f)
20815338de9SPulkoMandy #define ACPI_VIOT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_VIOT,f)
209ff2e2f81SFredrik Holmqvist #define ACPI_WAET_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_WAET,f)
210ff2e2f81SFredrik Holmqvist #define ACPI_WDAT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_WDAT,f)
211ff2e2f81SFredrik Holmqvist #define ACPI_WDDT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_WDDT,f)
212ff2e2f81SFredrik Holmqvist #define ACPI_WDRT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_WDRT,f)
213ff2e2f81SFredrik Holmqvist #define ACPI_WPBT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_WPBT,f)
21415338de9SPulkoMandy #define ACPI_WPBT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_WPBT_UNICODE,f)
215ff2e2f81SFredrik Holmqvist #define ACPI_WSMT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_WSMT,f)
216ff2e2f81SFredrik Holmqvist #define ACPI_XENV_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_XENV,f)
217ff2e2f81SFredrik Holmqvist 
218ff2e2f81SFredrik Holmqvist /* Subtables */
219ff2e2f81SFredrik Holmqvist 
22015338de9SPulkoMandy #define ACPI_AESTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_AEST_HEADER,f)
22115338de9SPulkoMandy #define ACPI_AEST0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR,f)
22215338de9SPulkoMandy #define ACPI_AEST0A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR_CACHE,f)
22315338de9SPulkoMandy #define ACPI_AEST0B_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR_TLB,f)
22415338de9SPulkoMandy #define ACPI_AEST0C_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR_GENERIC,f)
22515338de9SPulkoMandy #define ACPI_AEST1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_AEST_MEMORY,f)
22615338de9SPulkoMandy #define ACPI_AEST2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_AEST_SMMU,f)
22715338de9SPulkoMandy #define ACPI_AEST3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_AEST_VENDOR,f)
22815338de9SPulkoMandy #define ACPI_AEST4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_AEST_GIC,f)
22915338de9SPulkoMandy #define ACPI_AEST0D_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERFACE,f)
23015338de9SPulkoMandy #define ACPI_AEST0E_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERRUPT,f)
23115338de9SPulkoMandy #define ACPI_APMTN_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_APMT_NODE,f)
232ff2e2f81SFredrik Holmqvist #define ACPI_ASF0_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_ASF_INFO,f)
233ff2e2f81SFredrik Holmqvist #define ACPI_ASF1_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_ASF_ALERT,f)
234ff2e2f81SFredrik Holmqvist #define ACPI_ASF1a_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_ASF_ALERT_DATA,f)
235ff2e2f81SFredrik Holmqvist #define ACPI_ASF2_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_ASF_REMOTE,f)
236ff2e2f81SFredrik Holmqvist #define ACPI_ASF2a_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_ASF_CONTROL_DATA,f)
237ff2e2f81SFredrik Holmqvist #define ACPI_ASF3_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_ASF_RMCP,f)
238ff2e2f81SFredrik Holmqvist #define ACPI_ASF4_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_ASF_ADDRESS,f)
23915338de9SPulkoMandy #define ACPI_ASPTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_ASPT_HEADER,f)
24015338de9SPulkoMandy #define ACPI_ASPT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_ASPT_GLOBAL_REGS,f)
24115338de9SPulkoMandy #define ACPI_ASPT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_ASPT_SEV_MBOX_REGS,f)
24215338de9SPulkoMandy #define ACPI_ASPT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_ASPT_ACPI_MBOX_REGS,f)
24315338de9SPulkoMandy #define ACPI_CDAT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_CDAT,f)
24415338de9SPulkoMandy #define ACPI_CDATH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_HEADER,f)
24515338de9SPulkoMandy #define ACPI_CDAT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_DSMAS,f)
24615338de9SPulkoMandy #define ACPI_CDAT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_DSLBIS,f)
24715338de9SPulkoMandy #define ACPI_CDAT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_DSMSCIS,f)
24815338de9SPulkoMandy #define ACPI_CDAT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_DSIS,f)
24915338de9SPulkoMandy #define ACPI_CDAT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_DSEMTS,f)
25015338de9SPulkoMandy #define ACPI_CDAT5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_SSLBIS,f)
25115338de9SPulkoMandy #define ACPI_CDATE_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CDAT_SSLBE,f)
25215338de9SPulkoMandy #define ACPI_CEDT_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_CEDT_HEADER, f)
25315338de9SPulkoMandy #define ACPI_CEDT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CEDT_CHBS, f)
25415338de9SPulkoMandy #define ACPI_CEDT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CEDT_CFMWS, f)
25515338de9SPulkoMandy #define ACPI_CEDT1_TE_OFFSET(f)         (UINT16) ACPI_OFFSET (ACPI_CEDT_CFMWS_TARGET_ELEMENT, f)
256ff2e2f81SFredrik Holmqvist #define ACPI_CPEP0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CPEP_POLLING,f)
257ff2e2f81SFredrik Holmqvist #define ACPI_CSRT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CSRT_GROUP,f)
258ff2e2f81SFredrik Holmqvist #define ACPI_CSRT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CSRT_SHARED_INFO,f)
259ff2e2f81SFredrik Holmqvist #define ACPI_CSRT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_CSRT_DESCRIPTOR,f)
260ff2e2f81SFredrik Holmqvist #define ACPI_DBG20_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DBG2_DEVICE,f)
261ff2e2f81SFredrik Holmqvist #define ACPI_DMARS_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_DEVICE_SCOPE,f)
262ff2e2f81SFredrik Holmqvist #define ACPI_DMAR0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_HARDWARE_UNIT,f)
263ff2e2f81SFredrik Holmqvist #define ACPI_DMAR1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_RESERVED_MEMORY,f)
264ff2e2f81SFredrik Holmqvist #define ACPI_DMAR2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_ATSR,f)
265ff2e2f81SFredrik Holmqvist #define ACPI_DMAR3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_RHSA,f)
266ff2e2f81SFredrik Holmqvist #define ACPI_DMAR4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_ANDD,f)
26715338de9SPulkoMandy #define ACPI_DMAR5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DMAR_SATC,f)
268ff2e2f81SFredrik Holmqvist #define ACPI_DRTM0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DRTM_VTABLE_LIST,f)
269ff2e2f81SFredrik Holmqvist #define ACPI_DRTM1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DRTM_RESOURCE_LIST,f)
270ff2e2f81SFredrik Holmqvist #define ACPI_DRTM1a_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_DRTM_RESOURCE,f)
271ff2e2f81SFredrik Holmqvist #define ACPI_DRTM2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_DRTM_DPS_ID,f)
272ff2e2f81SFredrik Holmqvist #define ACPI_EINJ0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_WHEA_HEADER,f)
273ff2e2f81SFredrik Holmqvist #define ACPI_ERST0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_WHEA_HEADER,f)
274ff2e2f81SFredrik Holmqvist #define ACPI_FPDTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_FPDT_HEADER,f)
275ff2e2f81SFredrik Holmqvist #define ACPI_FPDT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_FPDT_BOOT_POINTER,f)
276ff2e2f81SFredrik Holmqvist #define ACPI_FPDT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_FPDT_S3PT_POINTER,f)
277ff2e2f81SFredrik Holmqvist #define ACPI_GTDT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_GTDT_TIMER_BLOCK,f)
278ff2e2f81SFredrik Holmqvist #define ACPI_GTDT0a_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_GTDT_TIMER_ENTRY,f)
279ff2e2f81SFredrik Holmqvist #define ACPI_GTDT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_GTDT_WATCHDOG,f)
280ff2e2f81SFredrik Holmqvist #define ACPI_GTDTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_GTDT_HEADER,f)
2810ffed378SFredrik Holmqvist #define ACPI_GTDT_EL2_OFFSET(f)         (UINT16) ACPI_OFFSET (ACPI_GTDT_EL2,f)
282ff2e2f81SFredrik Holmqvist #define ACPI_HEST0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_IA_MACHINE_CHECK,f)
283ff2e2f81SFredrik Holmqvist #define ACPI_HEST1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_IA_CORRECTED,f)
284ff2e2f81SFredrik Holmqvist #define ACPI_HEST2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_IA_NMI,f)
285ff2e2f81SFredrik Holmqvist #define ACPI_HEST6_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_AER_ROOT,f)
286ff2e2f81SFredrik Holmqvist #define ACPI_HEST7_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_AER,f)
287ff2e2f81SFredrik Holmqvist #define ACPI_HEST8_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_AER_BRIDGE,f)
288ff2e2f81SFredrik Holmqvist #define ACPI_HEST9_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_GENERIC,f)
289ff2e2f81SFredrik Holmqvist #define ACPI_HEST10_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_HEST_GENERIC_V2,f)
290ff2e2f81SFredrik Holmqvist #define ACPI_HEST11_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_HEST_IA_DEFERRED_CHECK,f)
291ff2e2f81SFredrik Holmqvist #define ACPI_HESTN_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_NOTIFY,f)
292ff2e2f81SFredrik Holmqvist #define ACPI_HESTB_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HEST_IA_ERROR_BANK,f)
2930ffed378SFredrik Holmqvist #define ACPI_HMAT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HMAT_PROXIMITY_DOMAIN,f)
294ff2e2f81SFredrik Holmqvist #define ACPI_HMAT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HMAT_LOCALITY,f)
295ff2e2f81SFredrik Holmqvist #define ACPI_HMAT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HMAT_CACHE,f)
296ff2e2f81SFredrik Holmqvist #define ACPI_HMATH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_HMAT_STRUCTURE,f)
297ff2e2f81SFredrik Holmqvist #define ACPI_IORT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_ITS_GROUP,f)
298ff2e2f81SFredrik Holmqvist #define ACPI_IORT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_NAMED_COMPONENT,f)
299ff2e2f81SFredrik Holmqvist #define ACPI_IORT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_ROOT_COMPLEX,f)
300ff2e2f81SFredrik Holmqvist #define ACPI_IORT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_SMMU,f)
301ff2e2f81SFredrik Holmqvist #define ACPI_IORT3A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_IORT_SMMU_GSI,f)
302ff2e2f81SFredrik Holmqvist #define ACPI_IORT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_SMMU_V3,f)
30308c9948cSFredrik Holmqvist #define ACPI_IORT5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_PMCG,f)
30415338de9SPulkoMandy #define ACPI_IORT6_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_RMR,f)
30515338de9SPulkoMandy #define ACPI_IORT6A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_IORT_RMR_DESC,f)
306ff2e2f81SFredrik Holmqvist #define ACPI_IORTA_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_MEMORY_ACCESS,f)
307ff2e2f81SFredrik Holmqvist #define ACPI_IORTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_NODE,f)
308ff2e2f81SFredrik Holmqvist #define ACPI_IORTM_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IORT_ID_MAPPING,f)
309ff2e2f81SFredrik Holmqvist #define ACPI_IVRSH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IVRS_HEADER,f)
3100ffed378SFredrik Holmqvist #define ACPI_IVRS0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IVRS_HARDWARE1,f)
3110ffed378SFredrik Holmqvist #define ACPI_IVRS01_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_IVRS_HARDWARE2,f)
312ff2e2f81SFredrik Holmqvist #define ACPI_IVRS1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IVRS_MEMORY,f)
313ff2e2f81SFredrik Holmqvist #define ACPI_IVRSD_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_IVRS_DE_HEADER,f)
314ff2e2f81SFredrik Holmqvist #define ACPI_IVRS8A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE8A,f)
315ff2e2f81SFredrik Holmqvist #define ACPI_IVRS8B_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE8B,f)
316ff2e2f81SFredrik Holmqvist #define ACPI_IVRS8C_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE8C,f)
31715338de9SPulkoMandy #define ACPI_IVRSHID_OFFSET(f)          (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE_HID,f)
318ff2e2f81SFredrik Holmqvist #define ACPI_LPITH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_LPIT_HEADER,f)
319ff2e2f81SFredrik Holmqvist #define ACPI_LPIT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_LPIT_NATIVE,f)
320ff2e2f81SFredrik Holmqvist #define ACPI_MADT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC,f)
321ff2e2f81SFredrik Holmqvist #define ACPI_MADT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_IO_APIC,f)
322ff2e2f81SFredrik Holmqvist #define ACPI_MADT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_INTERRUPT_OVERRIDE,f)
323ff2e2f81SFredrik Holmqvist #define ACPI_MADT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_NMI_SOURCE,f)
324ff2e2f81SFredrik Holmqvist #define ACPI_MADT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC_NMI,f)
325ff2e2f81SFredrik Holmqvist #define ACPI_MADT5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC_OVERRIDE,f)
326ff2e2f81SFredrik Holmqvist #define ACPI_MADT6_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_IO_SAPIC,f)
327ff2e2f81SFredrik Holmqvist #define ACPI_MADT7_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_SAPIC,f)
328ff2e2f81SFredrik Holmqvist #define ACPI_MADT8_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_INTERRUPT_SOURCE,f)
329ff2e2f81SFredrik Holmqvist #define ACPI_MADT9_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_X2APIC,f)
330ff2e2f81SFredrik Holmqvist #define ACPI_MADT10_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_X2APIC_NMI,f)
331ff2e2f81SFredrik Holmqvist #define ACPI_MADT11_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_INTERRUPT,f)
332ff2e2f81SFredrik Holmqvist #define ACPI_MADT12_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_DISTRIBUTOR,f)
333ff2e2f81SFredrik Holmqvist #define ACPI_MADT13_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_MSI_FRAME,f)
334ff2e2f81SFredrik Holmqvist #define ACPI_MADT14_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_REDISTRIBUTOR,f)
335ff2e2f81SFredrik Holmqvist #define ACPI_MADT15_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_TRANSLATOR,f)
33615338de9SPulkoMandy #define ACPI_MADT16_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_MULTIPROC_WAKEUP,f)
33715338de9SPulkoMandy #define ACPI_MADT17_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_CORE_PIC,f)
33815338de9SPulkoMandy #define ACPI_MADT18_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_LIO_PIC,f)
33915338de9SPulkoMandy #define ACPI_MADT19_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_HT_PIC,f)
34015338de9SPulkoMandy #define ACPI_MADT20_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_EIO_PIC,f)
34115338de9SPulkoMandy #define ACPI_MADT21_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_MSI_PIC,f)
34215338de9SPulkoMandy #define ACPI_MADT22_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_BIO_PIC,f)
34315338de9SPulkoMandy #define ACPI_MADT23_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_LPC_PIC,f)
34415338de9SPulkoMandy #define ACPI_MADT24_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_RINTC,f)
34515338de9SPulkoMandy #define ACPI_MADT25_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_IMSIC,f)
34615338de9SPulkoMandy #define ACPI_MADT26_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_APLIC,f)
34715338de9SPulkoMandy #define ACPI_MADT27_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MADT_PLIC,f)
34815338de9SPulkoMandy #define ACPI_MADT128_OFFSET(f)          (UINT16) ACPI_OFFSET (ACPI_MADT_OEM_DATA,f)
349ff2e2f81SFredrik Holmqvist #define ACPI_MADTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f)
350ff2e2f81SFredrik Holmqvist #define ACPI_MCFG0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MCFG_ALLOCATION,f)
35115338de9SPulkoMandy #define ACPI_MPAM0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MPAM_MSC_NODE,f)
35215338de9SPulkoMandy #define ACPI_MPAM1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_NODE,f)
35315338de9SPulkoMandy #define ACPI_MPAM1A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_CACHE_LOCATOR,f)
35415338de9SPulkoMandy #define ACPI_MPAM1B_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_MEMORY_LOCATOR,f)
35515338de9SPulkoMandy #define ACPI_MPAM1C_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_SMMU_INTERFACE,f)
35615338de9SPulkoMandy #define ACPI_MPAM1D_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_MEMCACHE_INTERFACE,f)
35715338de9SPulkoMandy #define ACPI_MPAM1E_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_ACPI_INTERFACE,f)
35815338de9SPulkoMandy #define ACPI_MPAM1F_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_INTERCONNECT_INTERFACE,f)
35915338de9SPulkoMandy #define ACPI_MPAM1G_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_GENERIC_LOCATOR,f)
36015338de9SPulkoMandy #define ACPI_MPAM2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MPAM_FUNC_DEPS,f)
361ff2e2f81SFredrik Holmqvist #define ACPI_MPST0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MPST_POWER_NODE,f)
362ff2e2f81SFredrik Holmqvist #define ACPI_MPST0A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPST_POWER_STATE,f)
363ff2e2f81SFredrik Holmqvist #define ACPI_MPST0B_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_MPST_COMPONENT,f)
364ff2e2f81SFredrik Holmqvist #define ACPI_MPST1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MPST_DATA_HDR,f)
365ff2e2f81SFredrik Holmqvist #define ACPI_MPST2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MPST_POWER_DATA,f)
366ff2e2f81SFredrik Holmqvist #define ACPI_MSCT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_MSCT_PROXIMITY,f)
367ff2e2f81SFredrik Holmqvist #define ACPI_NFITH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_HEADER,f)
368ff2e2f81SFredrik Holmqvist #define ACPI_NFIT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_SYSTEM_ADDRESS,f)
369ff2e2f81SFredrik Holmqvist #define ACPI_NFIT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_MEMORY_MAP,f)
370ff2e2f81SFredrik Holmqvist #define ACPI_NFIT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_INTERLEAVE,f)
371ff2e2f81SFredrik Holmqvist #define ACPI_NFIT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_SMBIOS,f)
372ff2e2f81SFredrik Holmqvist #define ACPI_NFIT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_CONTROL_REGION,f)
373ff2e2f81SFredrik Holmqvist #define ACPI_NFIT5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_DATA_REGION,f)
374ff2e2f81SFredrik Holmqvist #define ACPI_NFIT6_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_FLUSH_ADDRESS,f)
375ff2e2f81SFredrik Holmqvist #define ACPI_NFIT7_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_NFIT_CAPABILITIES,f)
376ff2e2f81SFredrik Holmqvist #define ACPI_PCCT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PCCT_SUBSPACE,f)
377ff2e2f81SFredrik Holmqvist #define ACPI_PCCT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PCCT_HW_REDUCED,f)
378ff2e2f81SFredrik Holmqvist #define ACPI_PCCT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PCCT_HW_REDUCED_TYPE2,f)
379ff2e2f81SFredrik Holmqvist #define ACPI_PCCT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PCCT_EXT_PCC_MASTER,f)
380ff2e2f81SFredrik Holmqvist #define ACPI_PCCT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PCCT_EXT_PCC_SLAVE,f)
38115338de9SPulkoMandy #define ACPI_PCCT5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PCCT_HW_REG,f)
382ff2e2f81SFredrik Holmqvist #define ACPI_PDTT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PDTT_CHANNEL,f)
38315338de9SPulkoMandy #define ACPI_PHATH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PHAT_HEADER,f)
38415338de9SPulkoMandy #define ACPI_PHAT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PHAT_VERSION_DATA,f)
38515338de9SPulkoMandy #define ACPI_PHAT0A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_PHAT_VERSION_ELEMENT,f)
38615338de9SPulkoMandy #define ACPI_PHAT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PHAT_HEALTH_DATA,f)
387ff2e2f81SFredrik Holmqvist #define ACPI_PMTT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PMTT_SOCKET,f)
388ff2e2f81SFredrik Holmqvist #define ACPI_PMTT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PMTT_CONTROLLER,f)
389ff2e2f81SFredrik Holmqvist #define ACPI_PMTT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PMTT_PHYSICAL_COMPONENT,f)
39015338de9SPulkoMandy #define ACPI_PMTT_VENDOR_OFFSET(f)      (UINT16) ACPI_OFFSET (ACPI_PMTT_VENDOR_SPECIFIC,f)
391ff2e2f81SFredrik Holmqvist #define ACPI_PMTTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PMTT_HEADER,f)
392ff2e2f81SFredrik Holmqvist #define ACPI_PPTTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f)
393ff2e2f81SFredrik Holmqvist #define ACPI_PPTT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PPTT_PROCESSOR,f)
394ff2e2f81SFredrik Holmqvist #define ACPI_PPTT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PPTT_CACHE,f)
39515338de9SPulkoMandy #define ACPI_PPTT1A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_PPTT_CACHE_V1,f)
396ff2e2f81SFredrik Holmqvist #define ACPI_PPTT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PPTT_ID,f)
39715338de9SPulkoMandy #define ACPI_PRMTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_TABLE_PRMT_HEADER,f)
39815338de9SPulkoMandy #define ACPI_PRMT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PRMT_MODULE_INFO,f)
39915338de9SPulkoMandy #define ACPI_PRMT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_PRMT_HANDLER_INFO,f)
400*6dde014fSPulkoMandy #define ACPI_RAS2_PCC_DESC_OFFSET(f)    (UINT16) ACPI_OFFSET (ACPI_RAS2_PCC_DESC,f)
40115338de9SPulkoMandy #define ACPI_RHCTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_RHCT_NODE_HEADER,f)
40215338de9SPulkoMandy #define ACPI_RHCT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_RHCT_ISA_STRING,f)
40315338de9SPulkoMandy #define ACPI_RHCT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_RHCT_CMO_NODE,f)
40415338de9SPulkoMandy #define ACPI_RHCT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_RHCT_MMU_NODE,f)
40515338de9SPulkoMandy #define ACPI_RHCTFFFF_OFFSET(f)         (UINT16) ACPI_OFFSET (ACPI_RHCT_HART_INFO,f)
406ff2e2f81SFredrik Holmqvist #define ACPI_S3PTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_FPDT_HEADER,f)
407ff2e2f81SFredrik Holmqvist #define ACPI_S3PT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_S3PT_RESUME,f)
408ff2e2f81SFredrik Holmqvist #define ACPI_S3PT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_S3PT_SUSPEND,f)
409ff2e2f81SFredrik Holmqvist #define ACPI_SDEVH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SDEV_HEADER,f)
410ff2e2f81SFredrik Holmqvist #define ACPI_SDEV0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SDEV_NAMESPACE,f)
41115338de9SPulkoMandy #define ACPI_SDEV0B_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_SDEV_SECURE_COMPONENT,f)
41215338de9SPulkoMandy #define ACPI_SDEVCH_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_SDEV_HEADER,f)
41315338de9SPulkoMandy #define ACPI_SDEVC0_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_SDEV_ID_COMPONENT, f)
41415338de9SPulkoMandy #define ACPI_SDEVC1_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_SDEV_MEM_COMPONENT, f)
415ff2e2f81SFredrik Holmqvist #define ACPI_SDEV1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SDEV_PCIE,f)
416ff2e2f81SFredrik Holmqvist #define ACPI_SDEV1A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_SDEV_PCIE_PATH,f)
417ff2e2f81SFredrik Holmqvist #define ACPI_SLIC_OFFSET(f)             (UINT16) ACPI_OFFSET (ACPI_TABLE_SLIC,f)
418ff2e2f81SFredrik Holmqvist #define ACPI_SRATH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f)
419ff2e2f81SFredrik Holmqvist #define ACPI_SRAT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_CPU_AFFINITY,f)
420ff2e2f81SFredrik Holmqvist #define ACPI_SRAT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_MEM_AFFINITY,f)
421ff2e2f81SFredrik Holmqvist #define ACPI_SRAT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_X2APIC_CPU_AFFINITY,f)
422ff2e2f81SFredrik Holmqvist #define ACPI_SRAT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_GICC_AFFINITY,f)
423ff2e2f81SFredrik Holmqvist #define ACPI_SRAT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_GIC_ITS_AFFINITY,f)
4240ffed378SFredrik Holmqvist #define ACPI_SRAT5_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_GENERIC_AFFINITY,f)
425*6dde014fSPulkoMandy #define ACPI_SRAT7_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SRAT_RINTC_AFFINITY,f)
42615338de9SPulkoMandy #define ACPI_SVKL0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_SVKL_KEY,f)
427ff2e2f81SFredrik Holmqvist #define ACPI_TCPA_CLIENT_OFFSET(f)      (UINT16) ACPI_OFFSET (ACPI_TABLE_TCPA_CLIENT,f)
428ff2e2f81SFredrik Holmqvist #define ACPI_TCPA_SERVER_OFFSET(f)      (UINT16) ACPI_OFFSET (ACPI_TABLE_TCPA_SERVER,f)
429ff2e2f81SFredrik Holmqvist #define ACPI_TPM2A_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_TPM2_TRAILER,f)
430ff2e2f81SFredrik Holmqvist #define ACPI_TPM211_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_TPM2_ARM_SMC,f)
43108c9948cSFredrik Holmqvist #define ACPI_TPM23A_OFFSET(f)           (UINT16) ACPI_OFFSET (ACPI_TPM23_TRAILER,f)
43215338de9SPulkoMandy #define ACPI_VIOTH_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_VIOT_HEADER,f)
43315338de9SPulkoMandy #define ACPI_VIOT1_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_VIOT_PCI_RANGE,f)
43415338de9SPulkoMandy #define ACPI_VIOT2_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_VIOT_MMIO,f)
43515338de9SPulkoMandy #define ACPI_VIOT3_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_VIOT_VIRTIO_IOMMU_PCI,f)
43615338de9SPulkoMandy #define ACPI_VIOT4_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_VIOT_VIRTIO_IOMMU_MMIO,f)
437ff2e2f81SFredrik Holmqvist #define ACPI_WDAT0_OFFSET(f)            (UINT16) ACPI_OFFSET (ACPI_WDAT_ENTRY,f)
438ff2e2f81SFredrik Holmqvist 
439ff2e2f81SFredrik Holmqvist /*
440ff2e2f81SFredrik Holmqvist  * Simplify access to flag fields by breaking them up into bytes
441ff2e2f81SFredrik Holmqvist  */
442ff2e2f81SFredrik Holmqvist #define ACPI_FLAG_OFFSET(d,f,o)         (UINT16) (ACPI_OFFSET (d,f) + o)
443ff2e2f81SFredrik Holmqvist 
444ff2e2f81SFredrik Holmqvist /* Flags */
445ff2e2f81SFredrik Holmqvist 
44615338de9SPulkoMandy #define ACPI_AEST0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_AEST_PROCESSOR,f,o)
44715338de9SPulkoMandy #define ACPI_AEST0D_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_AEST_NODE_INTERFACE,f,o)
44815338de9SPulkoMandy #define ACPI_AEST0E_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_AEST_NODE_INTERRUPT,f,o)
44915338de9SPulkoMandy #define ACPI_AGDI_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_AGDI,f,o)
45015338de9SPulkoMandy #define ACPI_APMTN_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_APMT_NODE,f,o)
451ff2e2f81SFredrik Holmqvist #define ACPI_BGRT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_BGRT,f,o)
452ff2e2f81SFredrik Holmqvist #define ACPI_DRTM_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_DRTM,f,o)
453ff2e2f81SFredrik Holmqvist #define ACPI_DRTM1a_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_DRTM_RESOURCE,f,o)
454ff2e2f81SFredrik Holmqvist #define ACPI_FADT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_FADT,f,o)
455ff2e2f81SFredrik Holmqvist #define ACPI_FACS_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_FACS,f,o)
456ff2e2f81SFredrik Holmqvist #define ACPI_HPET_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_HPET,f,o)
457ff2e2f81SFredrik Holmqvist #define ACPI_PPTT0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PPTT_PROCESSOR,f,o)
458ff2e2f81SFredrik Holmqvist #define ACPI_PPTT1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PPTT_CACHE,f,o)
45915338de9SPulkoMandy #define ACPI_PPTT1A_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_PPTT_CACHE_V1,f,o)
460ff2e2f81SFredrik Holmqvist #define ACPI_SRAT0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SRAT_CPU_AFFINITY,f,o)
461ff2e2f81SFredrik Holmqvist #define ACPI_SRAT1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SRAT_MEM_AFFINITY,f,o)
462ff2e2f81SFredrik Holmqvist #define ACPI_SRAT2_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SRAT_X2APIC_CPU_AFFINITY,f,o)
463ff2e2f81SFredrik Holmqvist #define ACPI_SRAT3_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SRAT_GICC_AFFINITY,f,o)
4640ffed378SFredrik Holmqvist #define ACPI_SRAT5_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SRAT_GENERIC_AFFINITY,f,o)
465*6dde014fSPulkoMandy #define ACPI_SRAT7_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SRAT_RINTC_AFFINITY,f,o)
466ff2e2f81SFredrik Holmqvist #define ACPI_GTDT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_GTDT,f,o)
467ff2e2f81SFredrik Holmqvist #define ACPI_GTDT0a_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_GTDT_TIMER_ENTRY,f,o)
468ff2e2f81SFredrik Holmqvist #define ACPI_GTDT1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_GTDT_WATCHDOG,f,o)
4690ffed378SFredrik Holmqvist #define ACPI_HMAT0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_HMAT_PROXIMITY_DOMAIN,f,o)
470ff2e2f81SFredrik Holmqvist #define ACPI_HMAT1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_HMAT_LOCALITY,f,o)
471ff2e2f81SFredrik Holmqvist #define ACPI_HMAT2_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_HMAT_CACHE,f,o)
472ff2e2f81SFredrik Holmqvist #define ACPI_IORT3_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_IORT_SMMU,f,o)
473ff2e2f81SFredrik Holmqvist #define ACPI_IORT3a_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_IORT_SMMU_GSI,f,o)
474ff2e2f81SFredrik Holmqvist #define ACPI_IORT4_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_IORT_SMMU_V3,f,o)
47515338de9SPulkoMandy #define ACPI_IORT6_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_IORT_RMR,f,o)
476ff2e2f81SFredrik Holmqvist #define ACPI_IORTA_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_IORT_MEMORY_ACCESS,f,o)
477ff2e2f81SFredrik Holmqvist #define ACPI_IORTM_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_IORT_ID_MAPPING,f,o)
47815338de9SPulkoMandy #define ACPI_IVRS_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_IVRS_HEADER,f,o)
47915338de9SPulkoMandy #define ACPI_IVRSDE_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_IVRS_DE_HEADER,f,o)
480ff2e2f81SFredrik Holmqvist #define ACPI_LPITH_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_LPIT_HEADER,f,o)
481ff2e2f81SFredrik Holmqvist #define ACPI_MADT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_MADT,f,o)
482ff2e2f81SFredrik Holmqvist #define ACPI_MADT0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_APIC,f,o)
483ff2e2f81SFredrik Holmqvist #define ACPI_MADT2_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_INTERRUPT_OVERRIDE,f,o)
484ff2e2f81SFredrik Holmqvist #define ACPI_MADT3_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_NMI_SOURCE,f,o)
485ff2e2f81SFredrik Holmqvist #define ACPI_MADT4_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_APIC_NMI,f,o)
486ff2e2f81SFredrik Holmqvist #define ACPI_MADT7_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_SAPIC,f,o)
487ff2e2f81SFredrik Holmqvist #define ACPI_MADT8_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_INTERRUPT_SOURCE,f,o)
488ff2e2f81SFredrik Holmqvist #define ACPI_MADT9_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_X2APIC,f,o)
489ff2e2f81SFredrik Holmqvist #define ACPI_MADT10_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_X2APIC_NMI,f,o)
490ff2e2f81SFredrik Holmqvist #define ACPI_MADT11_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_INTERRUPT,f,o)
491ff2e2f81SFredrik Holmqvist #define ACPI_MADT13_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_MSI_FRAME,f,o)
492*6dde014fSPulkoMandy #define ACPI_MADT14_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_REDISTRIBUTOR,f,o)
493*6dde014fSPulkoMandy #define ACPI_MADT15_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_TRANSLATOR,f,o)
494ff2e2f81SFredrik Holmqvist #define ACPI_MPST0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MPST_POWER_NODE,f,o)
495ff2e2f81SFredrik Holmqvist #define ACPI_MPST2_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_MPST_POWER_DATA,f,o)
496ff2e2f81SFredrik Holmqvist #define ACPI_NFIT0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_NFIT_SYSTEM_ADDRESS,f,o)
497ff2e2f81SFredrik Holmqvist #define ACPI_NFIT1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_NFIT_MEMORY_MAP,f,o)
498ff2e2f81SFredrik Holmqvist #define ACPI_NFIT4_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_NFIT_CONTROL_REGION,f,o)
499ff2e2f81SFredrik Holmqvist #define ACPI_NFIT7_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_NFIT_CAPABILITIES,f,o)
500ff2e2f81SFredrik Holmqvist #define ACPI_PCCT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_PCCT,f,o)
501ff2e2f81SFredrik Holmqvist #define ACPI_PCCT1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PCCT_HW_REDUCED,f,o)
502ff2e2f81SFredrik Holmqvist #define ACPI_PCCT2_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PCCT_HW_REDUCED_TYPE2,f,o)
503ff2e2f81SFredrik Holmqvist #define ACPI_PCCT3_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PCCT_EXT_PCC_MASTER,f,o)
504ff2e2f81SFredrik Holmqvist #define ACPI_PCCT4_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PCCT_EXT_PCC_SLAVE,f,o)
505ff2e2f81SFredrik Holmqvist #define ACPI_PDTT0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PDTT_CHANNEL,f,o)
506ff2e2f81SFredrik Holmqvist #define ACPI_PMTTH_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_PMTT_HEADER,f,o)
507ff2e2f81SFredrik Holmqvist #define ACPI_SDEVH_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_SDEV_HEADER,f,o)
508ff2e2f81SFredrik Holmqvist #define ACPI_WDDT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_WDDT,f,o)
509ff2e2f81SFredrik Holmqvist #define ACPI_WSMT_FLAG_OFFSET(f,o)      ACPI_FLAG_OFFSET (ACPI_TABLE_WSMT,f,o)
510ff2e2f81SFredrik Holmqvist #define ACPI_EINJ0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_WHEA_HEADER,f,o)
511ff2e2f81SFredrik Holmqvist #define ACPI_ERST0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_WHEA_HEADER,f,o)
512ff2e2f81SFredrik Holmqvist #define ACPI_HEST0_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_HEST_IA_MACHINE_CHECK,f,o)
513ff2e2f81SFredrik Holmqvist #define ACPI_HEST1_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_HEST_IA_CORRECTED,f,o)
514ff2e2f81SFredrik Holmqvist #define ACPI_HEST6_FLAG_OFFSET(f,o)     ACPI_FLAG_OFFSET (ACPI_HEST_AER_ROOT,f,o)
515ff2e2f81SFredrik Holmqvist #define ACPI_HEST11_FLAG_OFFSET(f,o)    ACPI_FLAG_OFFSET (ACPI_HEST_IA_DEFERRED_CHECK,f,o)
516ff2e2f81SFredrik Holmqvist 
517ff2e2f81SFredrik Holmqvist /*
518ff2e2f81SFredrik Holmqvist  * Required terminator for all tables below
519ff2e2f81SFredrik Holmqvist  */
520ff2e2f81SFredrik Holmqvist #define ACPI_DMT_TERMINATOR             {ACPI_DMT_EXIT, 0, NULL, 0}
521ff2e2f81SFredrik Holmqvist #define ACPI_DMT_NEW_LINE               {ACPI_DMT_EXTRA_TEXT, 0, "\n", 0}
522