1 /****************************************************************************** 2 * 3 * Name: acdisasm.h - AML disassembler 4 * 5 *****************************************************************************/ 6 7 /****************************************************************************** 8 * 9 * 1. Copyright Notice 10 * 11 * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp. 12 * All rights reserved. 13 * 14 * 2. License 15 * 16 * 2.1. This is your license from Intel Corp. under its intellectual property 17 * rights. You may have additional license terms from the party that provided 18 * you this software, covering your right to use that party's intellectual 19 * property rights. 20 * 21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22 * copy of the source code appearing in this file ("Covered Code") an 23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24 * base code distributed originally by Intel ("Original Intel Code") to copy, 25 * make derivatives, distribute, use and display any portion of the Covered 26 * Code in any form, with the right to sublicense such rights; and 27 * 28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29 * license (with the right to sublicense), under only those claims of Intel 30 * patents that are infringed by the Original Intel Code, to make, use, sell, 31 * offer to sell, and import the Covered Code and derivative works thereof 32 * solely to the minimum extent necessary to exercise the above copyright 33 * license, and in no event shall the patent license extend to any additions 34 * to or modifications of the Original Intel Code. No other license or right 35 * is granted directly or by implication, estoppel or otherwise; 36 * 37 * The above copyright and patent license is granted only if the following 38 * conditions are met: 39 * 40 * 3. Conditions 41 * 42 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 43 * Redistribution of source code of any substantial portion of the Covered 44 * Code or modification with rights to further distribute source must include 45 * the above Copyright Notice, the above License, this list of Conditions, 46 * and the following Disclaimer and Export Compliance provision. In addition, 47 * Licensee must cause all Covered Code to which Licensee contributes to 48 * contain a file documenting the changes Licensee made to create that Covered 49 * Code and the date of any change. Licensee must include in that file the 50 * documentation of any changes made by any predecessor Licensee. Licensee 51 * must include a prominent statement that the modification is derived, 52 * directly or indirectly, from Original Intel Code. 53 * 54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 55 * Redistribution of source code of any substantial portion of the Covered 56 * Code or modification without rights to further distribute source must 57 * include the following Disclaimer and Export Compliance provision in the 58 * documentation and/or other materials provided with distribution. In 59 * addition, Licensee may not authorize further sublicense of source of any 60 * portion of the Covered Code, and must include terms to the effect that the 61 * license from Licensee to its licensee is limited to the intellectual 62 * property embodied in the software Licensee provides to its licensee, and 63 * not to intellectual property embodied in modifications its licensee may 64 * make. 65 * 66 * 3.3. Redistribution of Executable. Redistribution in executable form of any 67 * substantial portion of the Covered Code or modification must reproduce the 68 * above Copyright Notice, and the following Disclaimer and Export Compliance 69 * provision in the documentation and/or other materials provided with the 70 * distribution. 71 * 72 * 3.4. Intel retains all right, title, and interest in and to the Original 73 * Intel Code. 74 * 75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 76 * Intel shall be used in advertising or otherwise to promote the sale, use or 77 * other dealings in products derived from or relating to the Covered Code 78 * without prior written authorization from Intel. 79 * 80 * 4. Disclaimer and Export Compliance 81 * 82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 88 * PARTICULAR PURPOSE. 89 * 90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97 * LIMITED REMEDY. 98 * 99 * 4.3. Licensee shall not export, either directly or indirectly, any of this 100 * software or system incorporating such software without first obtaining any 101 * required license or other approval from the U. S. Department of Commerce or 102 * any other agency or department of the United States Government. In the 103 * event Licensee exports any such software from the United States or 104 * re-exports any such software from a foreign destination, Licensee shall 105 * ensure that the distribution and export/re-export of the software is in 106 * compliance with all laws, regulations, orders, or other restrictions of the 107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 108 * any of its subsidiaries will export/re-export any technical data, process, 109 * software, or service, directly or indirectly, to any country for which the 110 * United States government or any agency thereof requires an export license, 111 * other governmental approval, or letter of assurance, without first obtaining 112 * such license, approval or letter. 113 * 114 ***************************************************************************** 115 * 116 * Alternatively, you may choose to be licensed under the terms of the 117 * following license: 118 * 119 * Redistribution and use in source and binary forms, with or without 120 * modification, are permitted provided that the following conditions 121 * are met: 122 * 1. Redistributions of source code must retain the above copyright 123 * notice, this list of conditions, and the following disclaimer, 124 * without modification. 125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126 * substantially similar to the "NO WARRANTY" disclaimer below 127 * ("Disclaimer") and any redistribution must be conditioned upon 128 * including a substantially similar Disclaimer requirement for further 129 * binary redistribution. 130 * 3. Neither the names of the above-listed copyright holders nor the names 131 * of any contributors may be used to endorse or promote products derived 132 * from this software without specific prior written permission. 133 * 134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 145 * 146 * Alternatively, you may choose to be licensed under the terms of the 147 * GNU General Public License ("GPL") version 2 as published by the Free 148 * Software Foundation. 149 * 150 *****************************************************************************/ 151 152 #ifndef __ACDISASM_H__ 153 #define __ACDISASM_H__ 154 155 #include <contrib/dev/acpica/include/amlresrc.h> 156 157 158 #define BLOCK_NONE 0 159 #define BLOCK_PAREN 1 160 #define BLOCK_BRACE 2 161 #define BLOCK_COMMA_LIST 4 162 #define ACPI_DEFAULT_RESNAME *(UINT32 *) "__RD" 163 164 /* 165 * Raw table data header. Used by disassembler and data table compiler. 166 * Do not change. 167 */ 168 #define ACPI_RAW_TABLE_DATA_HEADER "Raw Table Data" 169 170 171 typedef struct acpi_dmtable_info 172 { 173 UINT8 Opcode; 174 UINT16 Offset; 175 char *Name; 176 UINT8 Flags; 177 178 } ACPI_DMTABLE_INFO; 179 180 /* Values for Flags field above */ 181 182 #define DT_LENGTH 0x01 /* Field is a subtable length */ 183 #define DT_FLAG 0x02 /* Field is a flag value */ 184 #define DT_NON_ZERO 0x04 /* Field must be non-zero */ 185 #define DT_OPTIONAL 0x08 /* Field is optional */ 186 #define DT_DESCRIBES_OPTIONAL 0x10 /* Field describes an optional field (length, etc.) */ 187 #define DT_COUNT 0x20 /* Currently not used */ 188 189 /* 190 * Values for Opcode above. 191 * Note: 0-7 must not change, they are used as a flag shift value. Other 192 * than those, new values can be added wherever appropriate. 193 */ 194 typedef enum 195 { 196 /* Simple Data Types */ 197 198 ACPI_DMT_FLAG0 = 0, 199 ACPI_DMT_FLAG1 = 1, 200 ACPI_DMT_FLAG2 = 2, 201 ACPI_DMT_FLAG3 = 3, 202 ACPI_DMT_FLAG4 = 4, 203 ACPI_DMT_FLAG5 = 5, 204 ACPI_DMT_FLAG6 = 6, 205 ACPI_DMT_FLAG7 = 7, 206 ACPI_DMT_FLAGS0, 207 ACPI_DMT_FLAGS1, 208 ACPI_DMT_FLAGS2, 209 ACPI_DMT_FLAGS8_2, 210 ACPI_DMT_FLAGS4, 211 ACPI_DMT_FLAGS4_0, 212 ACPI_DMT_FLAGS4_4, 213 ACPI_DMT_FLAGS4_8, 214 ACPI_DMT_FLAGS4_12, 215 ACPI_DMT_FLAGS16_16, 216 ACPI_DMT_UINT8, 217 ACPI_DMT_UINT16, 218 ACPI_DMT_UINT24, 219 ACPI_DMT_UINT32, 220 ACPI_DMT_UINT40, 221 ACPI_DMT_UINT48, 222 ACPI_DMT_UINT56, 223 ACPI_DMT_UINT64, 224 ACPI_DMT_BUF7, 225 ACPI_DMT_BUF10, 226 ACPI_DMT_BUF12, 227 ACPI_DMT_BUF16, 228 ACPI_DMT_BUF18, 229 ACPI_DMT_BUF32, 230 ACPI_DMT_BUF112, 231 ACPI_DMT_BUF128, 232 ACPI_DMT_SIG, 233 ACPI_DMT_STRING, 234 ACPI_DMT_NAME4, 235 ACPI_DMT_NAME6, 236 ACPI_DMT_NAME8, 237 238 /* Types that are decoded to strings and miscellaneous */ 239 240 ACPI_DMT_ACCWIDTH, 241 ACPI_DMT_CHKSUM, 242 ACPI_DMT_GAS, 243 ACPI_DMT_SPACEID, 244 ACPI_DMT_UNICODE, 245 ACPI_DMT_UUID, 246 247 /* Types used only for the Data Table Compiler */ 248 249 ACPI_DMT_BUFFER, 250 ACPI_DMT_RAW_BUFFER, /* Large, multiple line buffer */ 251 ACPI_DMT_DEVICE_PATH, 252 ACPI_DMT_LABEL, 253 ACPI_DMT_PCI_PATH, 254 255 /* Types that are specific to particular ACPI tables */ 256 257 ACPI_DMT_AEST, 258 ACPI_DMT_AEST_CACHE, 259 ACPI_DMT_AEST_GIC, 260 ACPI_DMT_AEST_RES, 261 ACPI_DMT_AEST_XFACE, 262 ACPI_DMT_AEST_XRUPT, 263 ACPI_DMT_AGDI, 264 ACPI_DMT_ASF, 265 ACPI_DMT_ASPT, 266 ACPI_DMT_CDAT, 267 ACPI_DMT_CEDT, 268 ACPI_DMT_DMAR, 269 ACPI_DMT_DMAR_SCOPE, 270 ACPI_DMT_EINJACT, 271 ACPI_DMT_EINJINST, 272 ACPI_DMT_ERSTACT, 273 ACPI_DMT_ERSTINST, 274 ACPI_DMT_FADTPM, 275 ACPI_DMT_GTDT, 276 ACPI_DMT_HEST, 277 ACPI_DMT_HESTNTFY, 278 ACPI_DMT_HESTNTYP, 279 ACPI_DMT_HMAT, 280 ACPI_DMT_IORTMEM, 281 ACPI_DMT_IVRS, 282 ACPI_DMT_IVRS_DE, 283 ACPI_DMT_IVRS_UNTERMINATED_STRING, 284 ACPI_DMT_LPIT, 285 ACPI_DMT_MADT, 286 ACPI_DMT_MPAM_LOCATOR, 287 ACPI_DMT_NFIT, 288 ACPI_DMT_PCCT, 289 ACPI_DMT_PHAT, 290 ACPI_DMT_PMTT, 291 ACPI_DMT_PMTT_VENDOR, 292 ACPI_DMT_PPTT, 293 ACPI_DMT_RGRT, 294 ACPI_DMT_RHCT, 295 ACPI_DMT_SDEI, 296 ACPI_DMT_SDEV, 297 ACPI_DMT_SLIC, 298 ACPI_DMT_SRAT, 299 ACPI_DMT_TPM2, 300 ACPI_DMT_VIOT, 301 ACPI_DMT_WPBT_UNICODE, 302 303 /* Special opcodes */ 304 305 ACPI_DMT_EXTRA_TEXT, 306 ACPI_DMT_EXIT 307 308 } ACPI_ENTRY_TYPES; 309 310 typedef 311 void (*ACPI_DMTABLE_HANDLER) ( 312 ACPI_TABLE_HEADER *Table); 313 314 typedef 315 ACPI_STATUS (*ACPI_CMTABLE_HANDLER) ( 316 void **PFieldList); 317 318 typedef struct acpi_dmtable_data 319 { 320 char *Signature; 321 ACPI_DMTABLE_INFO *TableInfo; 322 ACPI_DMTABLE_HANDLER TableHandler; 323 ACPI_CMTABLE_HANDLER CmTableHandler; 324 const unsigned char *Template; 325 326 } ACPI_DMTABLE_DATA; 327 328 329 typedef struct acpi_op_walk_info 330 { 331 ACPI_WALK_STATE *WalkState; 332 ACPI_PARSE_OBJECT *MappingOp; 333 UINT8 *PreviousAml; 334 UINT8 *StartAml; 335 UINT32 Level; 336 UINT32 LastLevel; 337 UINT32 Count; 338 UINT32 BitOffset; 339 UINT32 Flags; 340 UINT32 AmlOffset; 341 342 } ACPI_OP_WALK_INFO; 343 344 /* 345 * TBD - another copy of this is in asltypes.h, fix 346 */ 347 #ifndef ASL_WALK_CALLBACK_DEFINED 348 typedef 349 ACPI_STATUS (*ASL_WALK_CALLBACK) ( 350 ACPI_PARSE_OBJECT *Op, 351 UINT32 Level, 352 void *Context); 353 #define ASL_WALK_CALLBACK_DEFINED 354 #endif 355 356 typedef 357 void (*ACPI_RESOURCE_HANDLER) ( 358 ACPI_OP_WALK_INFO *Info, 359 AML_RESOURCE *Resource, 360 UINT32 Length, 361 UINT32 Level); 362 363 typedef struct acpi_resource_tag 364 { 365 UINT32 BitIndex; 366 char *Tag; 367 368 } ACPI_RESOURCE_TAG; 369 370 /* Strings used for decoding flags to ASL keywords */ 371 372 extern const char *AcpiGbl_WordDecode[]; 373 extern const char *AcpiGbl_IrqDecode[]; 374 extern const char *AcpiGbl_LockRule[]; 375 extern const char *AcpiGbl_AccessTypes[]; 376 extern const char *AcpiGbl_UpdateRules[]; 377 extern const char *AcpiGbl_MatchOps[]; 378 379 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestHdr[]; 380 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestProcError[]; 381 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestCacheRsrc[]; 382 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestTlbRsrc[]; 383 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestGenRsrc[]; 384 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestMemError[]; 385 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestSmmuError[]; 386 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorError[]; 387 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorV2Error[]; 388 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestGicError[]; 389 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestPCIeError[]; 390 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestProxyError[]; 391 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface[]; 392 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXfaceHeader[]; 393 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface4k[]; 394 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface16k[]; 395 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface64k[]; 396 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXrupt[]; 397 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXruptV2[]; 398 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAgdi[]; 399 extern ACPI_DMTABLE_INFO AcpiDmTableInfoApmtNode[]; 400 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf0[]; 401 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1[]; 402 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1a[]; 403 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2[]; 404 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2a[]; 405 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf3[]; 406 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[]; 407 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[]; 408 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt[]; 409 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsptHdr[]; 410 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt0[]; 411 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt1[]; 412 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt2[]; 413 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBdat[]; 414 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBoot[]; 415 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBert[]; 416 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBgrt[]; 417 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCcel[]; 418 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatTableHdr[]; 419 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatHeader[]; 420 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat0[]; 421 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat1[]; 422 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat2[]; 423 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat3[]; 424 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat4[]; 425 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat5[]; 426 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatEntries[]; 427 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedtHdr[]; 428 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt0[]; 429 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1[]; 430 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1_te[]; 431 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt2[]; 432 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt2_te[]; 433 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[]; 434 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[]; 435 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt0[]; 436 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt1[]; 437 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2[]; 438 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2a[]; 439 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2[]; 440 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Device[]; 441 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Addr[]; 442 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Size[]; 443 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Name[]; 444 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2OemData[]; 445 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[]; 446 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar[]; 447 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarHdr[]; 448 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarScope[]; 449 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar0[]; 450 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar1[]; 451 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar2[]; 452 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar3[]; 453 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar4[]; 454 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar5[]; 455 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm[]; 456 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0[]; 457 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0a[]; 458 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1[]; 459 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1a[]; 460 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm2[]; 461 extern ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[]; 462 extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[]; 463 extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[]; 464 extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst[]; 465 extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst0[]; 466 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[]; 467 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[]; 468 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[]; 469 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt3[]; 470 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt5[]; 471 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt6[]; 472 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt[]; 473 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdtHdr[]; 474 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt0[]; 475 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt1[]; 476 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGas[]; 477 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt[]; 478 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtHdr[]; 479 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtEl2[]; 480 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0[]; 481 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0a[]; 482 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt1[]; 483 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[]; 484 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest[]; 485 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[]; 486 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[]; 487 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest2[]; 488 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[]; 489 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[]; 490 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[]; 491 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[]; 492 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest10[]; 493 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest11[]; 494 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[]; 495 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestBank[]; 496 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[]; 497 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpitHdr[]; 498 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit0[]; 499 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit1[]; 500 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat[]; 501 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat0[]; 502 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1[]; 503 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1a[]; 504 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1b[]; 505 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1c[]; 506 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2[]; 507 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2a[]; 508 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmatHdr[]; 509 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort[]; 510 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0[]; 511 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0a[]; 512 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1[]; 513 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1a[]; 514 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort2[]; 515 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3[]; 516 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3a[]; 517 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3b[]; 518 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3c[]; 519 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort4[]; 520 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort5[]; 521 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort6[]; 522 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort6a[]; 523 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortAcc[]; 524 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr[]; 525 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr3[]; 526 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortMap[]; 527 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortPad[]; 528 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs[]; 529 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware1[]; 530 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware23[]; 531 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsMemory[]; 532 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs4[]; 533 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8a[]; 534 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8b[]; 535 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8c[]; 536 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidString[]; 537 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidInteger[]; 538 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHid[]; 539 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidString[]; 540 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidInteger[]; 541 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidString[]; 542 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidInteger[]; 543 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[]; 544 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[]; 545 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[]; 546 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[]; 547 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[]; 548 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[]; 549 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[]; 550 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[]; 551 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[]; 552 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[]; 553 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[]; 554 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[]; 555 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11[]; 556 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11a[]; 557 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11b[]; 558 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt12[]; 559 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt13[]; 560 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14[]; 561 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14a[]; 562 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15[]; 563 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15a[]; 564 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt16[]; 565 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt17[]; 566 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt18[]; 567 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt19[]; 568 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt20[]; 569 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt21[]; 570 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt22[]; 571 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt23[]; 572 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt24[]; 573 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt25[]; 574 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt26[]; 575 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt27[]; 576 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt128[]; 577 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[]; 578 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[]; 579 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[]; 580 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMchi[]; 581 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam0[]; 582 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1[]; 583 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1A[]; 584 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1B[]; 585 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1C[]; 586 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1D[]; 587 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1E[]; 588 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1F[]; 589 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1G[]; 590 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1Deps[]; 591 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam2[]; 592 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst[]; 593 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0[]; 594 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0A[]; 595 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0B[]; 596 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst1[]; 597 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst2[]; 598 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct[]; 599 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct0[]; 600 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit[]; 601 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfitHdr[]; 602 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit0[]; 603 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit1[]; 604 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2[]; 605 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2a[]; 606 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3[]; 607 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3a[]; 608 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit4[]; 609 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit5[]; 610 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6[]; 611 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6a[]; 612 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit7[]; 613 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhatHdr[]; 614 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0[]; 615 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0a[]; 616 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1[]; 617 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1a[]; 618 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1b[]; 619 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt[]; 620 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt0[]; 621 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt1[]; 622 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt2[]; 623 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttVendor[]; 624 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttHdr[]; 625 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct[]; 626 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcctHdr[]; 627 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct0[]; 628 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct1[]; 629 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct2[]; 630 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct3[]; 631 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct4[]; 632 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct5[]; 633 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt[]; 634 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt0[]; 635 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0[]; 636 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0a[]; 637 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1[]; 638 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1a[]; 639 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt2[]; 640 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPpttHdr[]; 641 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHdr[]; 642 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtModule[]; 643 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHandler[]; 644 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[]; 645 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRas2[]; 646 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRas2PccDesc[]; 647 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt[]; 648 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt0[]; 649 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhct[]; 650 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctNodeHdr[]; 651 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsa1[]; 652 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsaPad[]; 653 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctCmo1[]; 654 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctMmu1[]; 655 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo1[]; 656 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo2[]; 657 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[]; 658 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[]; 659 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt[]; 660 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3ptHdr[]; 661 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt0[]; 662 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt1[]; 663 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[]; 664 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdei[]; 665 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev[]; 666 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevHdr[]; 667 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0[]; 668 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0a[]; 669 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0b[]; 670 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompHdr[]; 671 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompId[]; 672 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompMem[]; 673 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1[]; 674 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1a[]; 675 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1b[]; 676 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[]; 677 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[]; 678 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[]; 679 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[]; 680 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[]; 681 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[]; 682 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[]; 683 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[]; 684 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[]; 685 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat3[]; 686 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat4[]; 687 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat5[]; 688 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat6[]; 689 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat7[]; 690 extern ACPI_DMTABLE_INFO AcpiDmTableInfoStao[]; 691 extern ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[]; 692 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl[]; 693 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl0[]; 694 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[]; 695 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[]; 696 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[]; 697 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTdel[]; 698 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[]; 699 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2a[]; 700 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm211[]; 701 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23[]; 702 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23a[]; 703 extern ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[]; 704 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot[]; 705 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViotHeader[]; 706 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot1[]; 707 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot2[]; 708 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot3[]; 709 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot4[]; 710 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[]; 711 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[]; 712 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[]; 713 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[]; 714 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[]; 715 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[]; 716 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[]; 717 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[]; 718 extern ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[]; 719 720 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2]; 721 722 /* 723 * dmtable and ahtable 724 */ 725 extern const ACPI_DMTABLE_DATA AcpiDmTableData[]; 726 extern const AH_TABLE AcpiGbl_SupportedTables[]; 727 728 UINT8 729 AcpiDmGenerateChecksum ( 730 void *Table, 731 UINT32 Length, 732 UINT8 OriginalChecksum); 733 734 const ACPI_DMTABLE_DATA * 735 AcpiDmGetTableData ( 736 char *Signature); 737 738 void 739 AcpiDmDumpDataTable ( 740 ACPI_TABLE_HEADER *Table); 741 742 ACPI_STATUS 743 AcpiDmDumpTable ( 744 UINT32 TableLength, 745 UINT32 TableOffset, 746 void *Table, 747 UINT32 SubtableLength, 748 ACPI_DMTABLE_INFO *Info); 749 750 void 751 AcpiDmLineHeader ( 752 UINT32 Offset, 753 UINT32 ByteLength, 754 char *Name); 755 756 void 757 AcpiDmLineHeader2 ( 758 UINT32 Offset, 759 UINT32 ByteLength, 760 char *Name, 761 UINT32 Value); 762 763 764 /* 765 * dmtbdump 766 */ 767 void 768 AcpiDmDumpBuffer ( 769 void *Table, 770 UINT32 BufferOffset, 771 UINT32 Length, 772 UINT32 AbsoluteOffset, 773 char *Header); 774 775 void 776 AcpiDmDumpUnicode ( 777 void *Table, 778 UINT32 BufferOffset, 779 UINT32 ByteLength); 780 781 void 782 AcpiDmDumpAest ( 783 ACPI_TABLE_HEADER *Table); 784 785 void 786 AcpiDmDumpApmt ( 787 ACPI_TABLE_HEADER *Table); 788 789 void 790 AcpiDmDumpAsf ( 791 ACPI_TABLE_HEADER *Table); 792 793 void 794 AcpiDmDumpAspt ( 795 ACPI_TABLE_HEADER *Table); 796 797 void 798 AcpiDmDumpCcel ( 799 ACPI_TABLE_HEADER *Table); 800 801 void 802 AcpiDmDumpCdat ( 803 ACPI_TABLE_HEADER *Table); 804 805 void 806 AcpiDmDumpCedt ( 807 ACPI_TABLE_HEADER *Table); 808 809 void 810 AcpiDmDumpCpep ( 811 ACPI_TABLE_HEADER *Table); 812 813 void 814 AcpiDmDumpCsrt ( 815 ACPI_TABLE_HEADER *Table); 816 817 void 818 AcpiDmDumpDbg2 ( 819 ACPI_TABLE_HEADER *Table); 820 821 void 822 AcpiDmDumpDmar ( 823 ACPI_TABLE_HEADER *Table); 824 825 void 826 AcpiDmDumpDrtm ( 827 ACPI_TABLE_HEADER *Table); 828 829 void 830 AcpiDmDumpEinj ( 831 ACPI_TABLE_HEADER *Table); 832 833 void 834 AcpiDmDumpErst ( 835 ACPI_TABLE_HEADER *Table); 836 837 void 838 AcpiDmDumpFadt ( 839 ACPI_TABLE_HEADER *Table); 840 841 void 842 AcpiDmDumpFpdt ( 843 ACPI_TABLE_HEADER *Table); 844 845 void 846 AcpiDmDumpGtdt ( 847 ACPI_TABLE_HEADER *Table); 848 849 void 850 AcpiDmDumpHest ( 851 ACPI_TABLE_HEADER *Table); 852 853 void 854 AcpiDmDumpHmat ( 855 ACPI_TABLE_HEADER *Table); 856 857 void 858 AcpiDmDumpIort ( 859 ACPI_TABLE_HEADER *Table); 860 861 void 862 AcpiDmDumpIvrs ( 863 ACPI_TABLE_HEADER *Table); 864 865 void 866 AcpiDmDumpLpit ( 867 ACPI_TABLE_HEADER *Table); 868 869 void 870 AcpiDmDumpMadt ( 871 ACPI_TABLE_HEADER *Table); 872 873 void 874 AcpiDmDumpMcfg ( 875 ACPI_TABLE_HEADER *Table); 876 877 void 878 AcpiDmDumpMpam ( 879 ACPI_TABLE_HEADER *Table); 880 881 void 882 AcpiDmDumpMpst ( 883 ACPI_TABLE_HEADER *Table); 884 885 void 886 AcpiDmDumpMsct ( 887 ACPI_TABLE_HEADER *Table); 888 889 void 890 AcpiDmDumpNfit ( 891 ACPI_TABLE_HEADER *Table); 892 893 void 894 AcpiDmDumpPcct ( 895 ACPI_TABLE_HEADER *Table); 896 897 void 898 AcpiDmDumpPdtt ( 899 ACPI_TABLE_HEADER *Table); 900 901 void 902 AcpiDmDumpPhat ( 903 ACPI_TABLE_HEADER *Table); 904 905 void 906 AcpiDmDumpPmtt ( 907 ACPI_TABLE_HEADER *Table); 908 909 void 910 AcpiDmDumpPptt ( 911 ACPI_TABLE_HEADER *Table); 912 913 void 914 AcpiDmDumpPrmt ( 915 ACPI_TABLE_HEADER *Table); 916 917 void 918 AcpiDmDumpRas2 ( 919 ACPI_TABLE_HEADER *Table); 920 921 void 922 AcpiDmDumpRgrt ( 923 ACPI_TABLE_HEADER *Table); 924 925 void 926 AcpiDmDumpRhct ( 927 ACPI_TABLE_HEADER *Table); 928 929 UINT32 930 AcpiDmDumpRsdp ( 931 ACPI_TABLE_HEADER *Table); 932 933 void 934 AcpiDmDumpRsdt ( 935 ACPI_TABLE_HEADER *Table); 936 937 UINT32 938 AcpiDmDumpS3pt ( 939 ACPI_TABLE_HEADER *Table); 940 941 void 942 AcpiDmDumpSdev ( 943 ACPI_TABLE_HEADER *Table); 944 945 void 946 AcpiDmDumpSlic ( 947 ACPI_TABLE_HEADER *Table); 948 949 void 950 AcpiDmDumpSlit ( 951 ACPI_TABLE_HEADER *Table); 952 953 void 954 AcpiDmDumpSrat ( 955 ACPI_TABLE_HEADER *Table); 956 957 void 958 AcpiDmDumpStao ( 959 ACPI_TABLE_HEADER *Table); 960 961 void 962 AcpiDmDumpSvkl ( 963 ACPI_TABLE_HEADER *Table); 964 965 void 966 AcpiDmDumpTcpa ( 967 ACPI_TABLE_HEADER *Table); 968 969 void 970 AcpiDmDumpTdel ( 971 ACPI_TABLE_HEADER *Table); 972 973 void 974 AcpiDmDumpTpm2 ( 975 ACPI_TABLE_HEADER *Table); 976 977 void 978 AcpiDmDumpViot ( 979 ACPI_TABLE_HEADER *Table); 980 981 void 982 AcpiDmDumpWdat ( 983 ACPI_TABLE_HEADER *Table); 984 985 void 986 AcpiDmDumpWpbt ( 987 ACPI_TABLE_HEADER *Table); 988 989 void 990 AcpiDmDumpXsdt ( 991 ACPI_TABLE_HEADER *Table); 992 993 994 /* 995 * dmwalk 996 */ 997 void 998 AcpiDmDisassemble ( 999 ACPI_WALK_STATE *WalkState, 1000 ACPI_PARSE_OBJECT *Origin, 1001 UINT32 NumOpcodes); 1002 1003 void 1004 AcpiDmWalkParseTree ( 1005 ACPI_PARSE_OBJECT *Op, 1006 ASL_WALK_CALLBACK DescendingCallback, 1007 ASL_WALK_CALLBACK AscendingCallback, 1008 void *Context); 1009 1010 1011 /* 1012 * dmopcode 1013 */ 1014 void 1015 AcpiDmDisassembleOneOp ( 1016 ACPI_WALK_STATE *WalkState, 1017 ACPI_OP_WALK_INFO *Info, 1018 ACPI_PARSE_OBJECT *Op); 1019 1020 UINT32 1021 AcpiDmListType ( 1022 ACPI_PARSE_OBJECT *Op); 1023 1024 void 1025 AcpiDmMethodFlags ( 1026 ACPI_PARSE_OBJECT *Op); 1027 1028 void 1029 AcpiDmDisplayTargetPathname ( 1030 ACPI_PARSE_OBJECT *Op); 1031 1032 void 1033 AcpiDmNotifyDescription ( 1034 ACPI_PARSE_OBJECT *Op); 1035 1036 void 1037 AcpiDmPredefinedDescription ( 1038 ACPI_PARSE_OBJECT *Op); 1039 1040 void 1041 AcpiDmFieldPredefinedDescription ( 1042 ACPI_PARSE_OBJECT *Op); 1043 1044 void 1045 AcpiDmFieldFlags ( 1046 ACPI_PARSE_OBJECT *Op); 1047 1048 void 1049 AcpiDmAddressSpace ( 1050 UINT8 SpaceId); 1051 1052 void 1053 AcpiDmRegionFlags ( 1054 ACPI_PARSE_OBJECT *Op); 1055 1056 void 1057 AcpiDmMatchOp ( 1058 ACPI_PARSE_OBJECT *Op); 1059 1060 1061 /* 1062 * dmnames 1063 */ 1064 UINT32 1065 AcpiDmDumpName ( 1066 UINT32 Name); 1067 1068 ACPI_STATUS 1069 AcpiPsDisplayObjectPathname ( 1070 ACPI_WALK_STATE *WalkState, 1071 ACPI_PARSE_OBJECT *Op); 1072 1073 void 1074 AcpiDmNamestring ( 1075 char *Name); 1076 1077 1078 /* 1079 * dmbuffer 1080 */ 1081 void 1082 AcpiDmDisasmByteList ( 1083 UINT32 Level, 1084 UINT8 *ByteData, 1085 UINT32 ByteCount); 1086 1087 void 1088 AcpiDmByteList ( 1089 ACPI_OP_WALK_INFO *Info, 1090 ACPI_PARSE_OBJECT *Op); 1091 1092 void 1093 AcpiDmCheckForHardwareId ( 1094 ACPI_PARSE_OBJECT *Op); 1095 1096 void 1097 AcpiDmDecompressEisaId ( 1098 UINT32 EncodedId); 1099 1100 BOOLEAN 1101 AcpiDmIsUuidBuffer ( 1102 ACPI_PARSE_OBJECT *Op); 1103 1104 BOOLEAN 1105 AcpiDmIsUnicodeBuffer ( 1106 ACPI_PARSE_OBJECT *Op); 1107 1108 BOOLEAN 1109 AcpiDmIsStringBuffer ( 1110 ACPI_PARSE_OBJECT *Op); 1111 1112 BOOLEAN 1113 AcpiDmIsPldBuffer ( 1114 ACPI_PARSE_OBJECT *Op); 1115 1116 1117 /* 1118 * dmdeferred 1119 */ 1120 ACPI_STATUS 1121 AcpiDmParseDeferredOps ( 1122 ACPI_PARSE_OBJECT *Root); 1123 1124 1125 /* 1126 * dmextern 1127 */ 1128 ACPI_STATUS 1129 AcpiDmAddToExternalFileList ( 1130 char *PathList); 1131 1132 void 1133 AcpiDmClearExternalFileList ( 1134 void); 1135 1136 void 1137 AcpiDmAddOpToExternalList ( 1138 ACPI_PARSE_OBJECT *Op, 1139 char *Path, 1140 UINT8 Type, 1141 UINT32 Value, 1142 UINT16 Flags); 1143 1144 void 1145 AcpiDmCreateSubobjectForExternal ( 1146 UINT8 Type, 1147 ACPI_NAMESPACE_NODE **Node, 1148 UINT32 Value); 1149 1150 void 1151 AcpiDmAddNodeToExternalList ( 1152 ACPI_NAMESPACE_NODE *Node, 1153 UINT8 Type, 1154 UINT32 Value, 1155 UINT16 Flags); 1156 1157 void 1158 AcpiDmAddExternalListToNamespace ( 1159 void); 1160 1161 void 1162 AcpiDmAddOneExternalToNamespace ( 1163 char *Path, 1164 UINT8 Type, 1165 UINT32 Value); 1166 1167 UINT32 1168 AcpiDmGetUnresolvedExternalMethodCount ( 1169 void); 1170 1171 void 1172 AcpiDmClearExternalList ( 1173 void); 1174 1175 void 1176 AcpiDmEmitExternals ( 1177 void); 1178 1179 void 1180 AcpiDmEmitExternal ( 1181 ACPI_PARSE_OBJECT *NameOp, 1182 ACPI_PARSE_OBJECT *TypeOp); 1183 1184 void 1185 AcpiDmUnresolvedWarning ( 1186 UINT8 Type); 1187 1188 void 1189 AcpiDmGetExternalsFromFile ( 1190 void); 1191 1192 void 1193 AcpiDmMarkExternalConflict ( 1194 ACPI_NAMESPACE_NODE *Node); 1195 1196 1197 /* 1198 * dmresrc 1199 */ 1200 void 1201 AcpiDmDumpInteger8 ( 1202 UINT8 Value, 1203 const char *Name); 1204 1205 void 1206 AcpiDmDumpInteger16 ( 1207 UINT16 Value, 1208 const char *Name); 1209 1210 void 1211 AcpiDmDumpInteger32 ( 1212 UINT32 Value, 1213 const char *Name); 1214 1215 void 1216 AcpiDmDumpInteger64 ( 1217 UINT64 Value, 1218 const char *Name); 1219 1220 void 1221 AcpiDmResourceTemplate ( 1222 ACPI_OP_WALK_INFO *Info, 1223 ACPI_PARSE_OBJECT *Op, 1224 UINT8 *ByteData, 1225 UINT32 ByteCount); 1226 1227 ACPI_STATUS 1228 AcpiDmIsResourceTemplate ( 1229 ACPI_WALK_STATE *WalkState, 1230 ACPI_PARSE_OBJECT *Op); 1231 1232 void 1233 AcpiDmBitList ( 1234 UINT16 Mask); 1235 1236 void 1237 AcpiDmDescriptorName ( 1238 void); 1239 1240 1241 /* 1242 * dmresrcl 1243 */ 1244 void 1245 AcpiDmWordDescriptor ( 1246 ACPI_OP_WALK_INFO *Info, 1247 AML_RESOURCE *Resource, 1248 UINT32 Length, 1249 UINT32 Level); 1250 1251 void 1252 AcpiDmDwordDescriptor ( 1253 ACPI_OP_WALK_INFO *Info, 1254 AML_RESOURCE *Resource, 1255 UINT32 Length, 1256 UINT32 Level); 1257 1258 void 1259 AcpiDmExtendedDescriptor ( 1260 ACPI_OP_WALK_INFO *Info, 1261 AML_RESOURCE *Resource, 1262 UINT32 Length, 1263 UINT32 Level); 1264 1265 void 1266 AcpiDmQwordDescriptor ( 1267 ACPI_OP_WALK_INFO *Info, 1268 AML_RESOURCE *Resource, 1269 UINT32 Length, 1270 UINT32 Level); 1271 1272 void 1273 AcpiDmMemory24Descriptor ( 1274 ACPI_OP_WALK_INFO *Info, 1275 AML_RESOURCE *Resource, 1276 UINT32 Length, 1277 UINT32 Level); 1278 1279 void 1280 AcpiDmMemory32Descriptor ( 1281 ACPI_OP_WALK_INFO *Info, 1282 AML_RESOURCE *Resource, 1283 UINT32 Length, 1284 UINT32 Level); 1285 1286 void 1287 AcpiDmFixedMemory32Descriptor ( 1288 ACPI_OP_WALK_INFO *Info, 1289 AML_RESOURCE *Resource, 1290 UINT32 Length, 1291 UINT32 Level); 1292 1293 void 1294 AcpiDmGenericRegisterDescriptor ( 1295 ACPI_OP_WALK_INFO *Info, 1296 AML_RESOURCE *Resource, 1297 UINT32 Length, 1298 UINT32 Level); 1299 1300 void 1301 AcpiDmInterruptDescriptor ( 1302 ACPI_OP_WALK_INFO *Info, 1303 AML_RESOURCE *Resource, 1304 UINT32 Length, 1305 UINT32 Level); 1306 1307 void 1308 AcpiDmVendorLargeDescriptor ( 1309 ACPI_OP_WALK_INFO *Info, 1310 AML_RESOURCE *Resource, 1311 UINT32 Length, 1312 UINT32 Level); 1313 1314 void 1315 AcpiDmGpioDescriptor ( 1316 ACPI_OP_WALK_INFO *Info, 1317 AML_RESOURCE *Resource, 1318 UINT32 Length, 1319 UINT32 Level); 1320 1321 void 1322 AcpiDmPinFunctionDescriptor ( 1323 ACPI_OP_WALK_INFO *Info, 1324 AML_RESOURCE *Resource, 1325 UINT32 Length, 1326 UINT32 Level); 1327 1328 void 1329 AcpiDmPinConfigDescriptor ( 1330 ACPI_OP_WALK_INFO *Info, 1331 AML_RESOURCE *Resource, 1332 UINT32 Length, 1333 UINT32 Level); 1334 1335 void 1336 AcpiDmPinGroupDescriptor ( 1337 ACPI_OP_WALK_INFO *Info, 1338 AML_RESOURCE *Resource, 1339 UINT32 Length, 1340 UINT32 Level); 1341 1342 void 1343 AcpiDmPinGroupFunctionDescriptor ( 1344 ACPI_OP_WALK_INFO *Info, 1345 AML_RESOURCE *Resource, 1346 UINT32 Length, 1347 UINT32 Level); 1348 1349 void 1350 AcpiDmPinGroupConfigDescriptor ( 1351 ACPI_OP_WALK_INFO *Info, 1352 AML_RESOURCE *Resource, 1353 UINT32 Length, 1354 UINT32 Level); 1355 1356 void 1357 AcpiDmSerialBusDescriptor ( 1358 ACPI_OP_WALK_INFO *Info, 1359 AML_RESOURCE *Resource, 1360 UINT32 Length, 1361 UINT32 Level); 1362 1363 void 1364 AcpiDmVendorCommon ( 1365 const char *Name, 1366 UINT8 *ByteData, 1367 UINT32 Length, 1368 UINT32 Level); 1369 1370 void 1371 AcpiDmClockInputDescriptor ( 1372 ACPI_OP_WALK_INFO *Info, 1373 AML_RESOURCE *Resource, 1374 UINT32 Length, 1375 UINT32 Level); 1376 1377 /* 1378 * dmresrcs 1379 */ 1380 void 1381 AcpiDmIrqDescriptor ( 1382 ACPI_OP_WALK_INFO *Info, 1383 AML_RESOURCE *Resource, 1384 UINT32 Length, 1385 UINT32 Level); 1386 1387 void 1388 AcpiDmDmaDescriptor ( 1389 ACPI_OP_WALK_INFO *Info, 1390 AML_RESOURCE *Resource, 1391 UINT32 Length, 1392 UINT32 Level); 1393 1394 void 1395 AcpiDmFixedDmaDescriptor ( 1396 ACPI_OP_WALK_INFO *Info, 1397 AML_RESOURCE *Resource, 1398 UINT32 Length, 1399 UINT32 Level); 1400 1401 void 1402 AcpiDmIoDescriptor ( 1403 ACPI_OP_WALK_INFO *Info, 1404 AML_RESOURCE *Resource, 1405 UINT32 Length, 1406 UINT32 Level); 1407 1408 void 1409 AcpiDmFixedIoDescriptor ( 1410 ACPI_OP_WALK_INFO *Info, 1411 AML_RESOURCE *Resource, 1412 UINT32 Length, 1413 UINT32 Level); 1414 1415 void 1416 AcpiDmStartDependentDescriptor ( 1417 ACPI_OP_WALK_INFO *Info, 1418 AML_RESOURCE *Resource, 1419 UINT32 Length, 1420 UINT32 Level); 1421 1422 void 1423 AcpiDmEndDependentDescriptor ( 1424 ACPI_OP_WALK_INFO *Info, 1425 AML_RESOURCE *Resource, 1426 UINT32 Length, 1427 UINT32 Level); 1428 1429 void 1430 AcpiDmVendorSmallDescriptor ( 1431 ACPI_OP_WALK_INFO *Info, 1432 AML_RESOURCE *Resource, 1433 UINT32 Length, 1434 UINT32 Level); 1435 1436 1437 /* 1438 * dmutils 1439 */ 1440 void 1441 AcpiDmDecodeAttribute ( 1442 UINT8 Attribute); 1443 1444 void 1445 AcpiDmIndent ( 1446 UINT32 Level); 1447 1448 BOOLEAN 1449 AcpiDmCommaIfListMember ( 1450 ACPI_PARSE_OBJECT *Op); 1451 1452 void 1453 AcpiDmCommaIfFieldMember ( 1454 ACPI_PARSE_OBJECT *Op); 1455 1456 1457 /* 1458 * dmrestag 1459 */ 1460 void 1461 AcpiDmFindResources ( 1462 ACPI_PARSE_OBJECT *Root); 1463 1464 void 1465 AcpiDmCheckResourceReference ( 1466 ACPI_PARSE_OBJECT *Op, 1467 ACPI_WALK_STATE *WalkState); 1468 1469 1470 /* 1471 * dmcstyle 1472 */ 1473 BOOLEAN 1474 AcpiDmCheckForSymbolicOpcode ( 1475 ACPI_PARSE_OBJECT *Op, 1476 ACPI_OP_WALK_INFO *Info); 1477 1478 void 1479 AcpiDmCloseOperator ( 1480 ACPI_PARSE_OBJECT *Op); 1481 1482 1483 /* 1484 * dmtables 1485 */ 1486 ACPI_STATUS 1487 AcpiDmProcessSwitch ( 1488 ACPI_PARSE_OBJECT *Op); 1489 1490 void 1491 AcpiDmClearTempList( 1492 void); 1493 1494 /* 1495 * dmtables 1496 */ 1497 void 1498 AdDisassemblerHeader ( 1499 char *Filename, 1500 UINT8 TableType); 1501 1502 #define ACPI_IS_AML_TABLE 0 1503 #define ACPI_IS_DATA_TABLE 1 1504 1505 1506 /* 1507 * adisasm 1508 */ 1509 ACPI_STATUS 1510 AdAmlDisassemble ( 1511 BOOLEAN OutToFile, 1512 char *Filename, 1513 char *Prefix, 1514 char **OutFilename); 1515 1516 ACPI_STATUS 1517 AdGetLocalTables ( 1518 void); 1519 1520 ACPI_STATUS 1521 AdParseTable ( 1522 ACPI_TABLE_HEADER *Table, 1523 ACPI_OWNER_ID *OwnerId, 1524 BOOLEAN LoadTable, 1525 BOOLEAN External); 1526 1527 ACPI_STATUS 1528 AdDisplayTables ( 1529 char *Filename, 1530 ACPI_TABLE_HEADER *Table); 1531 1532 ACPI_STATUS 1533 AdDisplayStatistics ( 1534 void); 1535 1536 1537 /* 1538 * dmwalk 1539 */ 1540 UINT32 1541 AcpiDmBlockType ( 1542 ACPI_PARSE_OBJECT *Op); 1543 1544 1545 #endif /* __ACDISASM_H__ */ 1546