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 "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_BUF128, 230 ACPI_DMT_SIG, 231 ACPI_DMT_STRING, 232 ACPI_DMT_NAME4, 233 ACPI_DMT_NAME6, 234 ACPI_DMT_NAME8, 235 236 /* Types that are decoded to strings and miscellaneous */ 237 238 ACPI_DMT_ACCWIDTH, 239 ACPI_DMT_CHKSUM, 240 ACPI_DMT_GAS, 241 ACPI_DMT_SPACEID, 242 ACPI_DMT_UNICODE, 243 ACPI_DMT_UUID, 244 245 /* Types used only for the Data Table Compiler */ 246 247 ACPI_DMT_BUFFER, 248 ACPI_DMT_RAW_BUFFER, /* Large, multiple line buffer */ 249 ACPI_DMT_DEVICE_PATH, 250 ACPI_DMT_LABEL, 251 ACPI_DMT_PCI_PATH, 252 253 /* Types that are specific to particular ACPI tables */ 254 255 ACPI_DMT_AEST, 256 ACPI_DMT_AEST_CACHE, 257 ACPI_DMT_AEST_GIC, 258 ACPI_DMT_AEST_RES, 259 ACPI_DMT_AEST_XFACE, 260 ACPI_DMT_AEST_XRUPT, 261 ACPI_DMT_AGDI, 262 ACPI_DMT_ASF, 263 ACPI_DMT_ASPT, 264 ACPI_DMT_CDAT, 265 ACPI_DMT_CEDT, 266 ACPI_DMT_DMAR, 267 ACPI_DMT_DMAR_SCOPE, 268 ACPI_DMT_EINJACT, 269 ACPI_DMT_EINJINST, 270 ACPI_DMT_ERSTACT, 271 ACPI_DMT_ERSTINST, 272 ACPI_DMT_FADTPM, 273 ACPI_DMT_GTDT, 274 ACPI_DMT_HEST, 275 ACPI_DMT_HESTNTFY, 276 ACPI_DMT_HESTNTYP, 277 ACPI_DMT_HMAT, 278 ACPI_DMT_IORTMEM, 279 ACPI_DMT_IVRS, 280 ACPI_DMT_IVRS_DE, 281 ACPI_DMT_IVRS_UNTERMINATED_STRING, 282 ACPI_DMT_LPIT, 283 ACPI_DMT_MADT, 284 ACPI_DMT_MPAM_LOCATOR, 285 ACPI_DMT_NFIT, 286 ACPI_DMT_PCCT, 287 ACPI_DMT_PHAT, 288 ACPI_DMT_PMTT, 289 ACPI_DMT_PMTT_VENDOR, 290 ACPI_DMT_PPTT, 291 ACPI_DMT_RGRT, 292 ACPI_DMT_RHCT, 293 ACPI_DMT_SDEI, 294 ACPI_DMT_SDEV, 295 ACPI_DMT_SLIC, 296 ACPI_DMT_SRAT, 297 ACPI_DMT_TPM2, 298 ACPI_DMT_VIOT, 299 ACPI_DMT_WPBT_UNICODE, 300 301 /* Special opcodes */ 302 303 ACPI_DMT_EXTRA_TEXT, 304 ACPI_DMT_EXIT 305 306 } ACPI_ENTRY_TYPES; 307 308 typedef 309 void (*ACPI_DMTABLE_HANDLER) ( 310 ACPI_TABLE_HEADER *Table); 311 312 typedef 313 ACPI_STATUS (*ACPI_CMTABLE_HANDLER) ( 314 void **PFieldList); 315 316 typedef struct acpi_dmtable_data 317 { 318 char *Signature; 319 ACPI_DMTABLE_INFO *TableInfo; 320 ACPI_DMTABLE_HANDLER TableHandler; 321 ACPI_CMTABLE_HANDLER CmTableHandler; 322 const unsigned char *Template; 323 324 } ACPI_DMTABLE_DATA; 325 326 327 typedef struct acpi_op_walk_info 328 { 329 ACPI_WALK_STATE *WalkState; 330 ACPI_PARSE_OBJECT *MappingOp; 331 UINT8 *PreviousAml; 332 UINT8 *StartAml; 333 UINT32 Level; 334 UINT32 LastLevel; 335 UINT32 Count; 336 UINT32 BitOffset; 337 UINT32 Flags; 338 UINT32 AmlOffset; 339 340 } ACPI_OP_WALK_INFO; 341 342 /* 343 * TBD - another copy of this is in asltypes.h, fix 344 */ 345 #ifndef ASL_WALK_CALLBACK_DEFINED 346 typedef 347 ACPI_STATUS (*ASL_WALK_CALLBACK) ( 348 ACPI_PARSE_OBJECT *Op, 349 UINT32 Level, 350 void *Context); 351 #define ASL_WALK_CALLBACK_DEFINED 352 #endif 353 354 typedef 355 void (*ACPI_RESOURCE_HANDLER) ( 356 ACPI_OP_WALK_INFO *Info, 357 AML_RESOURCE *Resource, 358 UINT32 Length, 359 UINT32 Level); 360 361 typedef struct acpi_resource_tag 362 { 363 UINT32 BitIndex; 364 char *Tag; 365 366 } ACPI_RESOURCE_TAG; 367 368 /* Strings used for decoding flags to ASL keywords */ 369 370 extern const char *AcpiGbl_WordDecode[]; 371 extern const char *AcpiGbl_IrqDecode[]; 372 extern const char *AcpiGbl_LockRule[]; 373 extern const char *AcpiGbl_AccessTypes[]; 374 extern const char *AcpiGbl_UpdateRules[]; 375 extern const char *AcpiGbl_MatchOps[]; 376 377 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestHdr[]; 378 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestProcError[]; 379 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestCacheRsrc[]; 380 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestTlbRsrc[]; 381 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestGenRsrc[]; 382 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestMemError[]; 383 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestSmmuError[]; 384 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorError[]; 385 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestGicError[]; 386 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface[]; 387 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXrupt[]; 388 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAgdi[]; 389 extern ACPI_DMTABLE_INFO AcpiDmTableInfoApmtNode[]; 390 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf0[]; 391 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1[]; 392 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1a[]; 393 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2[]; 394 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2a[]; 395 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf3[]; 396 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[]; 397 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[]; 398 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt[]; 399 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsptHdr[]; 400 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt0[]; 401 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt1[]; 402 extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt2[]; 403 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBdat[]; 404 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBoot[]; 405 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBert[]; 406 extern ACPI_DMTABLE_INFO AcpiDmTableInfoBgrt[]; 407 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCcel[]; 408 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatTableHdr[]; 409 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatHeader[]; 410 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat0[]; 411 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat1[]; 412 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat2[]; 413 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat3[]; 414 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat4[]; 415 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat5[]; 416 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatEntries[]; 417 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedtHdr[]; 418 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt0[]; 419 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1[]; 420 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1_te[]; 421 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[]; 422 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[]; 423 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt0[]; 424 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt1[]; 425 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2[]; 426 extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2a[]; 427 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2[]; 428 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Device[]; 429 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Addr[]; 430 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Size[]; 431 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Name[]; 432 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2OemData[]; 433 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[]; 434 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar[]; 435 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarHdr[]; 436 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarScope[]; 437 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar0[]; 438 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar1[]; 439 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar2[]; 440 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar3[]; 441 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar4[]; 442 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar5[]; 443 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm[]; 444 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0[]; 445 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0a[]; 446 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1[]; 447 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1a[]; 448 extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm2[]; 449 extern ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[]; 450 extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[]; 451 extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[]; 452 extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst[]; 453 extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst0[]; 454 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[]; 455 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[]; 456 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[]; 457 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt3[]; 458 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt5[]; 459 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt6[]; 460 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt[]; 461 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdtHdr[]; 462 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt0[]; 463 extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt1[]; 464 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGas[]; 465 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt[]; 466 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtHdr[]; 467 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtEl2[]; 468 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0[]; 469 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0a[]; 470 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt1[]; 471 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[]; 472 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest[]; 473 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[]; 474 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[]; 475 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest2[]; 476 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[]; 477 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[]; 478 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[]; 479 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[]; 480 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest10[]; 481 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest11[]; 482 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[]; 483 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestBank[]; 484 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[]; 485 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpitHdr[]; 486 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit0[]; 487 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit1[]; 488 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat[]; 489 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat0[]; 490 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1[]; 491 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1a[]; 492 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1b[]; 493 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1c[]; 494 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2[]; 495 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2a[]; 496 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmatHdr[]; 497 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort[]; 498 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0[]; 499 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0a[]; 500 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1[]; 501 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1a[]; 502 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort2[]; 503 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3[]; 504 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3a[]; 505 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3b[]; 506 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3c[]; 507 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort4[]; 508 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort5[]; 509 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort6[]; 510 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort6a[]; 511 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortAcc[]; 512 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr[]; 513 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr3[]; 514 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortMap[]; 515 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortPad[]; 516 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs[]; 517 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware1[]; 518 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware23[]; 519 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsMemory[]; 520 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs4[]; 521 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8a[]; 522 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8b[]; 523 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8c[]; 524 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidString[]; 525 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidInteger[]; 526 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHid[]; 527 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidString[]; 528 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidInteger[]; 529 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidString[]; 530 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidInteger[]; 531 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[]; 532 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[]; 533 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[]; 534 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[]; 535 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[]; 536 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[]; 537 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[]; 538 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[]; 539 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[]; 540 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[]; 541 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[]; 542 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[]; 543 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11[]; 544 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11a[]; 545 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11b[]; 546 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt12[]; 547 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt13[]; 548 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14[]; 549 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14a[]; 550 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15[]; 551 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15a[]; 552 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt16[]; 553 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt17[]; 554 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt18[]; 555 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt19[]; 556 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt20[]; 557 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt21[]; 558 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt22[]; 559 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt23[]; 560 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt24[]; 561 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt25[]; 562 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt26[]; 563 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt27[]; 564 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt128[]; 565 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[]; 566 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[]; 567 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[]; 568 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMchi[]; 569 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam0[]; 570 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1[]; 571 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1A[]; 572 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1B[]; 573 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1C[]; 574 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1D[]; 575 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1E[]; 576 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1F[]; 577 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1G[]; 578 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1Deps[]; 579 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam2[]; 580 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst[]; 581 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0[]; 582 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0A[]; 583 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0B[]; 584 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst1[]; 585 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst2[]; 586 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct[]; 587 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct0[]; 588 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit[]; 589 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfitHdr[]; 590 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit0[]; 591 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit1[]; 592 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2[]; 593 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2a[]; 594 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3[]; 595 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3a[]; 596 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit4[]; 597 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit5[]; 598 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6[]; 599 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6a[]; 600 extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit7[]; 601 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhatHdr[]; 602 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0[]; 603 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0a[]; 604 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1[]; 605 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1a[]; 606 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1b[]; 607 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt[]; 608 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt0[]; 609 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt1[]; 610 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt2[]; 611 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttVendor[]; 612 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttHdr[]; 613 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct[]; 614 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcctHdr[]; 615 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct0[]; 616 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct1[]; 617 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct2[]; 618 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct3[]; 619 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct4[]; 620 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct5[]; 621 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt[]; 622 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt0[]; 623 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0[]; 624 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0a[]; 625 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1[]; 626 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1a[]; 627 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt2[]; 628 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPpttHdr[]; 629 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHdr[]; 630 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtModule[]; 631 extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHandler[]; 632 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[]; 633 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRas2[]; 634 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRas2PccDesc[]; 635 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt[]; 636 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt0[]; 637 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhct[]; 638 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctNodeHdr[]; 639 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsa1[]; 640 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsaPad[]; 641 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctCmo1[]; 642 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctMmu1[]; 643 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo1[]; 644 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo2[]; 645 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[]; 646 extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[]; 647 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt[]; 648 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3ptHdr[]; 649 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt0[]; 650 extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt1[]; 651 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[]; 652 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdei[]; 653 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev[]; 654 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevHdr[]; 655 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0[]; 656 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0a[]; 657 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0b[]; 658 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompHdr[]; 659 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompId[]; 660 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompMem[]; 661 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1[]; 662 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1a[]; 663 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1b[]; 664 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[]; 665 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[]; 666 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[]; 667 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[]; 668 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[]; 669 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[]; 670 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[]; 671 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[]; 672 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[]; 673 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat3[]; 674 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat4[]; 675 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat5[]; 676 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat6[]; 677 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat7[]; 678 extern ACPI_DMTABLE_INFO AcpiDmTableInfoStao[]; 679 extern ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[]; 680 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl[]; 681 extern ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl0[]; 682 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[]; 683 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[]; 684 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[]; 685 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTdel[]; 686 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[]; 687 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2a[]; 688 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm211[]; 689 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23[]; 690 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23a[]; 691 extern ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[]; 692 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot[]; 693 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViotHeader[]; 694 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot1[]; 695 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot2[]; 696 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot3[]; 697 extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot4[]; 698 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[]; 699 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[]; 700 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[]; 701 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[]; 702 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[]; 703 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[]; 704 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[]; 705 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[]; 706 extern ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[]; 707 708 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2]; 709 710 /* 711 * dmtable and ahtable 712 */ 713 extern const ACPI_DMTABLE_DATA AcpiDmTableData[]; 714 extern const AH_TABLE AcpiGbl_SupportedTables[]; 715 716 UINT8 717 AcpiDmGenerateChecksum ( 718 void *Table, 719 UINT32 Length, 720 UINT8 OriginalChecksum); 721 722 const ACPI_DMTABLE_DATA * 723 AcpiDmGetTableData ( 724 char *Signature); 725 726 void 727 AcpiDmDumpDataTable ( 728 ACPI_TABLE_HEADER *Table); 729 730 ACPI_STATUS 731 AcpiDmDumpTable ( 732 UINT32 TableLength, 733 UINT32 TableOffset, 734 void *Table, 735 UINT32 SubtableLength, 736 ACPI_DMTABLE_INFO *Info); 737 738 void 739 AcpiDmLineHeader ( 740 UINT32 Offset, 741 UINT32 ByteLength, 742 char *Name); 743 744 void 745 AcpiDmLineHeader2 ( 746 UINT32 Offset, 747 UINT32 ByteLength, 748 char *Name, 749 UINT32 Value); 750 751 752 /* 753 * dmtbdump 754 */ 755 void 756 AcpiDmDumpBuffer ( 757 void *Table, 758 UINT32 BufferOffset, 759 UINT32 Length, 760 UINT32 AbsoluteOffset, 761 char *Header); 762 763 void 764 AcpiDmDumpUnicode ( 765 void *Table, 766 UINT32 BufferOffset, 767 UINT32 ByteLength); 768 769 void 770 AcpiDmDumpAest ( 771 ACPI_TABLE_HEADER *Table); 772 773 void 774 AcpiDmDumpApmt ( 775 ACPI_TABLE_HEADER *Table); 776 777 void 778 AcpiDmDumpAsf ( 779 ACPI_TABLE_HEADER *Table); 780 781 void 782 AcpiDmDumpAspt ( 783 ACPI_TABLE_HEADER *Table); 784 785 void 786 AcpiDmDumpCcel ( 787 ACPI_TABLE_HEADER *Table); 788 789 void 790 AcpiDmDumpCdat ( 791 ACPI_TABLE_HEADER *Table); 792 793 void 794 AcpiDmDumpCedt ( 795 ACPI_TABLE_HEADER *Table); 796 797 void 798 AcpiDmDumpCpep ( 799 ACPI_TABLE_HEADER *Table); 800 801 void 802 AcpiDmDumpCsrt ( 803 ACPI_TABLE_HEADER *Table); 804 805 void 806 AcpiDmDumpDbg2 ( 807 ACPI_TABLE_HEADER *Table); 808 809 void 810 AcpiDmDumpDmar ( 811 ACPI_TABLE_HEADER *Table); 812 813 void 814 AcpiDmDumpDrtm ( 815 ACPI_TABLE_HEADER *Table); 816 817 void 818 AcpiDmDumpEinj ( 819 ACPI_TABLE_HEADER *Table); 820 821 void 822 AcpiDmDumpErst ( 823 ACPI_TABLE_HEADER *Table); 824 825 void 826 AcpiDmDumpFadt ( 827 ACPI_TABLE_HEADER *Table); 828 829 void 830 AcpiDmDumpFpdt ( 831 ACPI_TABLE_HEADER *Table); 832 833 void 834 AcpiDmDumpGtdt ( 835 ACPI_TABLE_HEADER *Table); 836 837 void 838 AcpiDmDumpHest ( 839 ACPI_TABLE_HEADER *Table); 840 841 void 842 AcpiDmDumpHmat ( 843 ACPI_TABLE_HEADER *Table); 844 845 void 846 AcpiDmDumpIort ( 847 ACPI_TABLE_HEADER *Table); 848 849 void 850 AcpiDmDumpIvrs ( 851 ACPI_TABLE_HEADER *Table); 852 853 void 854 AcpiDmDumpLpit ( 855 ACPI_TABLE_HEADER *Table); 856 857 void 858 AcpiDmDumpMadt ( 859 ACPI_TABLE_HEADER *Table); 860 861 void 862 AcpiDmDumpMcfg ( 863 ACPI_TABLE_HEADER *Table); 864 865 void 866 AcpiDmDumpMpam ( 867 ACPI_TABLE_HEADER *Table); 868 869 void 870 AcpiDmDumpMpst ( 871 ACPI_TABLE_HEADER *Table); 872 873 void 874 AcpiDmDumpMsct ( 875 ACPI_TABLE_HEADER *Table); 876 877 void 878 AcpiDmDumpNfit ( 879 ACPI_TABLE_HEADER *Table); 880 881 void 882 AcpiDmDumpPcct ( 883 ACPI_TABLE_HEADER *Table); 884 885 void 886 AcpiDmDumpPdtt ( 887 ACPI_TABLE_HEADER *Table); 888 889 void 890 AcpiDmDumpPhat ( 891 ACPI_TABLE_HEADER *Table); 892 893 void 894 AcpiDmDumpPmtt ( 895 ACPI_TABLE_HEADER *Table); 896 897 void 898 AcpiDmDumpPptt ( 899 ACPI_TABLE_HEADER *Table); 900 901 void 902 AcpiDmDumpPrmt ( 903 ACPI_TABLE_HEADER *Table); 904 905 void 906 AcpiDmDumpRas2 ( 907 ACPI_TABLE_HEADER *Table); 908 909 void 910 AcpiDmDumpRgrt ( 911 ACPI_TABLE_HEADER *Table); 912 913 void 914 AcpiDmDumpRhct ( 915 ACPI_TABLE_HEADER *Table); 916 917 UINT32 918 AcpiDmDumpRsdp ( 919 ACPI_TABLE_HEADER *Table); 920 921 void 922 AcpiDmDumpRsdt ( 923 ACPI_TABLE_HEADER *Table); 924 925 UINT32 926 AcpiDmDumpS3pt ( 927 ACPI_TABLE_HEADER *Table); 928 929 void 930 AcpiDmDumpSdev ( 931 ACPI_TABLE_HEADER *Table); 932 933 void 934 AcpiDmDumpSlic ( 935 ACPI_TABLE_HEADER *Table); 936 937 void 938 AcpiDmDumpSlit ( 939 ACPI_TABLE_HEADER *Table); 940 941 void 942 AcpiDmDumpSrat ( 943 ACPI_TABLE_HEADER *Table); 944 945 void 946 AcpiDmDumpStao ( 947 ACPI_TABLE_HEADER *Table); 948 949 void 950 AcpiDmDumpSvkl ( 951 ACPI_TABLE_HEADER *Table); 952 953 void 954 AcpiDmDumpTcpa ( 955 ACPI_TABLE_HEADER *Table); 956 957 void 958 AcpiDmDumpTdel ( 959 ACPI_TABLE_HEADER *Table); 960 961 void 962 AcpiDmDumpTpm2 ( 963 ACPI_TABLE_HEADER *Table); 964 965 void 966 AcpiDmDumpViot ( 967 ACPI_TABLE_HEADER *Table); 968 969 void 970 AcpiDmDumpWdat ( 971 ACPI_TABLE_HEADER *Table); 972 973 void 974 AcpiDmDumpWpbt ( 975 ACPI_TABLE_HEADER *Table); 976 977 void 978 AcpiDmDumpXsdt ( 979 ACPI_TABLE_HEADER *Table); 980 981 982 /* 983 * dmwalk 984 */ 985 void 986 AcpiDmDisassemble ( 987 ACPI_WALK_STATE *WalkState, 988 ACPI_PARSE_OBJECT *Origin, 989 UINT32 NumOpcodes); 990 991 void 992 AcpiDmWalkParseTree ( 993 ACPI_PARSE_OBJECT *Op, 994 ASL_WALK_CALLBACK DescendingCallback, 995 ASL_WALK_CALLBACK AscendingCallback, 996 void *Context); 997 998 999 /* 1000 * dmopcode 1001 */ 1002 void 1003 AcpiDmDisassembleOneOp ( 1004 ACPI_WALK_STATE *WalkState, 1005 ACPI_OP_WALK_INFO *Info, 1006 ACPI_PARSE_OBJECT *Op); 1007 1008 UINT32 1009 AcpiDmListType ( 1010 ACPI_PARSE_OBJECT *Op); 1011 1012 void 1013 AcpiDmMethodFlags ( 1014 ACPI_PARSE_OBJECT *Op); 1015 1016 void 1017 AcpiDmDisplayTargetPathname ( 1018 ACPI_PARSE_OBJECT *Op); 1019 1020 void 1021 AcpiDmNotifyDescription ( 1022 ACPI_PARSE_OBJECT *Op); 1023 1024 void 1025 AcpiDmPredefinedDescription ( 1026 ACPI_PARSE_OBJECT *Op); 1027 1028 void 1029 AcpiDmFieldPredefinedDescription ( 1030 ACPI_PARSE_OBJECT *Op); 1031 1032 void 1033 AcpiDmFieldFlags ( 1034 ACPI_PARSE_OBJECT *Op); 1035 1036 void 1037 AcpiDmAddressSpace ( 1038 UINT8 SpaceId); 1039 1040 void 1041 AcpiDmRegionFlags ( 1042 ACPI_PARSE_OBJECT *Op); 1043 1044 void 1045 AcpiDmMatchOp ( 1046 ACPI_PARSE_OBJECT *Op); 1047 1048 1049 /* 1050 * dmnames 1051 */ 1052 UINT32 1053 AcpiDmDumpName ( 1054 UINT32 Name); 1055 1056 ACPI_STATUS 1057 AcpiPsDisplayObjectPathname ( 1058 ACPI_WALK_STATE *WalkState, 1059 ACPI_PARSE_OBJECT *Op); 1060 1061 void 1062 AcpiDmNamestring ( 1063 char *Name); 1064 1065 1066 /* 1067 * dmbuffer 1068 */ 1069 void 1070 AcpiDmDisasmByteList ( 1071 UINT32 Level, 1072 UINT8 *ByteData, 1073 UINT32 ByteCount); 1074 1075 void 1076 AcpiDmByteList ( 1077 ACPI_OP_WALK_INFO *Info, 1078 ACPI_PARSE_OBJECT *Op); 1079 1080 void 1081 AcpiDmCheckForHardwareId ( 1082 ACPI_PARSE_OBJECT *Op); 1083 1084 void 1085 AcpiDmDecompressEisaId ( 1086 UINT32 EncodedId); 1087 1088 BOOLEAN 1089 AcpiDmIsUuidBuffer ( 1090 ACPI_PARSE_OBJECT *Op); 1091 1092 BOOLEAN 1093 AcpiDmIsUnicodeBuffer ( 1094 ACPI_PARSE_OBJECT *Op); 1095 1096 BOOLEAN 1097 AcpiDmIsStringBuffer ( 1098 ACPI_PARSE_OBJECT *Op); 1099 1100 BOOLEAN 1101 AcpiDmIsPldBuffer ( 1102 ACPI_PARSE_OBJECT *Op); 1103 1104 1105 /* 1106 * dmdeferred 1107 */ 1108 ACPI_STATUS 1109 AcpiDmParseDeferredOps ( 1110 ACPI_PARSE_OBJECT *Root); 1111 1112 1113 /* 1114 * dmextern 1115 */ 1116 ACPI_STATUS 1117 AcpiDmAddToExternalFileList ( 1118 char *PathList); 1119 1120 void 1121 AcpiDmClearExternalFileList ( 1122 void); 1123 1124 void 1125 AcpiDmAddOpToExternalList ( 1126 ACPI_PARSE_OBJECT *Op, 1127 char *Path, 1128 UINT8 Type, 1129 UINT32 Value, 1130 UINT16 Flags); 1131 1132 void 1133 AcpiDmCreateSubobjectForExternal ( 1134 UINT8 Type, 1135 ACPI_NAMESPACE_NODE **Node, 1136 UINT32 Value); 1137 1138 void 1139 AcpiDmAddNodeToExternalList ( 1140 ACPI_NAMESPACE_NODE *Node, 1141 UINT8 Type, 1142 UINT32 Value, 1143 UINT16 Flags); 1144 1145 void 1146 AcpiDmAddExternalListToNamespace ( 1147 void); 1148 1149 void 1150 AcpiDmAddOneExternalToNamespace ( 1151 char *Path, 1152 UINT8 Type, 1153 UINT32 Value); 1154 1155 UINT32 1156 AcpiDmGetUnresolvedExternalMethodCount ( 1157 void); 1158 1159 void 1160 AcpiDmClearExternalList ( 1161 void); 1162 1163 void 1164 AcpiDmEmitExternals ( 1165 void); 1166 1167 void 1168 AcpiDmEmitExternal ( 1169 ACPI_PARSE_OBJECT *NameOp, 1170 ACPI_PARSE_OBJECT *TypeOp); 1171 1172 void 1173 AcpiDmUnresolvedWarning ( 1174 UINT8 Type); 1175 1176 void 1177 AcpiDmGetExternalsFromFile ( 1178 void); 1179 1180 void 1181 AcpiDmMarkExternalConflict ( 1182 ACPI_NAMESPACE_NODE *Node); 1183 1184 1185 /* 1186 * dmresrc 1187 */ 1188 void 1189 AcpiDmDumpInteger8 ( 1190 UINT8 Value, 1191 const char *Name); 1192 1193 void 1194 AcpiDmDumpInteger16 ( 1195 UINT16 Value, 1196 const char *Name); 1197 1198 void 1199 AcpiDmDumpInteger32 ( 1200 UINT32 Value, 1201 const char *Name); 1202 1203 void 1204 AcpiDmDumpInteger64 ( 1205 UINT64 Value, 1206 const char *Name); 1207 1208 void 1209 AcpiDmResourceTemplate ( 1210 ACPI_OP_WALK_INFO *Info, 1211 ACPI_PARSE_OBJECT *Op, 1212 UINT8 *ByteData, 1213 UINT32 ByteCount); 1214 1215 ACPI_STATUS 1216 AcpiDmIsResourceTemplate ( 1217 ACPI_WALK_STATE *WalkState, 1218 ACPI_PARSE_OBJECT *Op); 1219 1220 void 1221 AcpiDmBitList ( 1222 UINT16 Mask); 1223 1224 void 1225 AcpiDmDescriptorName ( 1226 void); 1227 1228 1229 /* 1230 * dmresrcl 1231 */ 1232 void 1233 AcpiDmWordDescriptor ( 1234 ACPI_OP_WALK_INFO *Info, 1235 AML_RESOURCE *Resource, 1236 UINT32 Length, 1237 UINT32 Level); 1238 1239 void 1240 AcpiDmDwordDescriptor ( 1241 ACPI_OP_WALK_INFO *Info, 1242 AML_RESOURCE *Resource, 1243 UINT32 Length, 1244 UINT32 Level); 1245 1246 void 1247 AcpiDmExtendedDescriptor ( 1248 ACPI_OP_WALK_INFO *Info, 1249 AML_RESOURCE *Resource, 1250 UINT32 Length, 1251 UINT32 Level); 1252 1253 void 1254 AcpiDmQwordDescriptor ( 1255 ACPI_OP_WALK_INFO *Info, 1256 AML_RESOURCE *Resource, 1257 UINT32 Length, 1258 UINT32 Level); 1259 1260 void 1261 AcpiDmMemory24Descriptor ( 1262 ACPI_OP_WALK_INFO *Info, 1263 AML_RESOURCE *Resource, 1264 UINT32 Length, 1265 UINT32 Level); 1266 1267 void 1268 AcpiDmMemory32Descriptor ( 1269 ACPI_OP_WALK_INFO *Info, 1270 AML_RESOURCE *Resource, 1271 UINT32 Length, 1272 UINT32 Level); 1273 1274 void 1275 AcpiDmFixedMemory32Descriptor ( 1276 ACPI_OP_WALK_INFO *Info, 1277 AML_RESOURCE *Resource, 1278 UINT32 Length, 1279 UINT32 Level); 1280 1281 void 1282 AcpiDmGenericRegisterDescriptor ( 1283 ACPI_OP_WALK_INFO *Info, 1284 AML_RESOURCE *Resource, 1285 UINT32 Length, 1286 UINT32 Level); 1287 1288 void 1289 AcpiDmInterruptDescriptor ( 1290 ACPI_OP_WALK_INFO *Info, 1291 AML_RESOURCE *Resource, 1292 UINT32 Length, 1293 UINT32 Level); 1294 1295 void 1296 AcpiDmVendorLargeDescriptor ( 1297 ACPI_OP_WALK_INFO *Info, 1298 AML_RESOURCE *Resource, 1299 UINT32 Length, 1300 UINT32 Level); 1301 1302 void 1303 AcpiDmGpioDescriptor ( 1304 ACPI_OP_WALK_INFO *Info, 1305 AML_RESOURCE *Resource, 1306 UINT32 Length, 1307 UINT32 Level); 1308 1309 void 1310 AcpiDmPinFunctionDescriptor ( 1311 ACPI_OP_WALK_INFO *Info, 1312 AML_RESOURCE *Resource, 1313 UINT32 Length, 1314 UINT32 Level); 1315 1316 void 1317 AcpiDmPinConfigDescriptor ( 1318 ACPI_OP_WALK_INFO *Info, 1319 AML_RESOURCE *Resource, 1320 UINT32 Length, 1321 UINT32 Level); 1322 1323 void 1324 AcpiDmPinGroupDescriptor ( 1325 ACPI_OP_WALK_INFO *Info, 1326 AML_RESOURCE *Resource, 1327 UINT32 Length, 1328 UINT32 Level); 1329 1330 void 1331 AcpiDmPinGroupFunctionDescriptor ( 1332 ACPI_OP_WALK_INFO *Info, 1333 AML_RESOURCE *Resource, 1334 UINT32 Length, 1335 UINT32 Level); 1336 1337 void 1338 AcpiDmPinGroupConfigDescriptor ( 1339 ACPI_OP_WALK_INFO *Info, 1340 AML_RESOURCE *Resource, 1341 UINT32 Length, 1342 UINT32 Level); 1343 1344 void 1345 AcpiDmSerialBusDescriptor ( 1346 ACPI_OP_WALK_INFO *Info, 1347 AML_RESOURCE *Resource, 1348 UINT32 Length, 1349 UINT32 Level); 1350 1351 void 1352 AcpiDmVendorCommon ( 1353 const char *Name, 1354 UINT8 *ByteData, 1355 UINT32 Length, 1356 UINT32 Level); 1357 1358 void 1359 AcpiDmClockInputDescriptor ( 1360 ACPI_OP_WALK_INFO *Info, 1361 AML_RESOURCE *Resource, 1362 UINT32 Length, 1363 UINT32 Level); 1364 1365 /* 1366 * dmresrcs 1367 */ 1368 void 1369 AcpiDmIrqDescriptor ( 1370 ACPI_OP_WALK_INFO *Info, 1371 AML_RESOURCE *Resource, 1372 UINT32 Length, 1373 UINT32 Level); 1374 1375 void 1376 AcpiDmDmaDescriptor ( 1377 ACPI_OP_WALK_INFO *Info, 1378 AML_RESOURCE *Resource, 1379 UINT32 Length, 1380 UINT32 Level); 1381 1382 void 1383 AcpiDmFixedDmaDescriptor ( 1384 ACPI_OP_WALK_INFO *Info, 1385 AML_RESOURCE *Resource, 1386 UINT32 Length, 1387 UINT32 Level); 1388 1389 void 1390 AcpiDmIoDescriptor ( 1391 ACPI_OP_WALK_INFO *Info, 1392 AML_RESOURCE *Resource, 1393 UINT32 Length, 1394 UINT32 Level); 1395 1396 void 1397 AcpiDmFixedIoDescriptor ( 1398 ACPI_OP_WALK_INFO *Info, 1399 AML_RESOURCE *Resource, 1400 UINT32 Length, 1401 UINT32 Level); 1402 1403 void 1404 AcpiDmStartDependentDescriptor ( 1405 ACPI_OP_WALK_INFO *Info, 1406 AML_RESOURCE *Resource, 1407 UINT32 Length, 1408 UINT32 Level); 1409 1410 void 1411 AcpiDmEndDependentDescriptor ( 1412 ACPI_OP_WALK_INFO *Info, 1413 AML_RESOURCE *Resource, 1414 UINT32 Length, 1415 UINT32 Level); 1416 1417 void 1418 AcpiDmVendorSmallDescriptor ( 1419 ACPI_OP_WALK_INFO *Info, 1420 AML_RESOURCE *Resource, 1421 UINT32 Length, 1422 UINT32 Level); 1423 1424 1425 /* 1426 * dmutils 1427 */ 1428 void 1429 AcpiDmDecodeAttribute ( 1430 UINT8 Attribute); 1431 1432 void 1433 AcpiDmIndent ( 1434 UINT32 Level); 1435 1436 BOOLEAN 1437 AcpiDmCommaIfListMember ( 1438 ACPI_PARSE_OBJECT *Op); 1439 1440 void 1441 AcpiDmCommaIfFieldMember ( 1442 ACPI_PARSE_OBJECT *Op); 1443 1444 1445 /* 1446 * dmrestag 1447 */ 1448 void 1449 AcpiDmFindResources ( 1450 ACPI_PARSE_OBJECT *Root); 1451 1452 void 1453 AcpiDmCheckResourceReference ( 1454 ACPI_PARSE_OBJECT *Op, 1455 ACPI_WALK_STATE *WalkState); 1456 1457 1458 /* 1459 * dmcstyle 1460 */ 1461 BOOLEAN 1462 AcpiDmCheckForSymbolicOpcode ( 1463 ACPI_PARSE_OBJECT *Op, 1464 ACPI_OP_WALK_INFO *Info); 1465 1466 void 1467 AcpiDmCloseOperator ( 1468 ACPI_PARSE_OBJECT *Op); 1469 1470 1471 /* 1472 * dmtables 1473 */ 1474 ACPI_STATUS 1475 AcpiDmProcessSwitch ( 1476 ACPI_PARSE_OBJECT *Op); 1477 1478 void 1479 AcpiDmClearTempList( 1480 void); 1481 1482 /* 1483 * dmtables 1484 */ 1485 void 1486 AdDisassemblerHeader ( 1487 char *Filename, 1488 UINT8 TableType); 1489 1490 #define ACPI_IS_AML_TABLE 0 1491 #define ACPI_IS_DATA_TABLE 1 1492 1493 1494 /* 1495 * adisasm 1496 */ 1497 ACPI_STATUS 1498 AdAmlDisassemble ( 1499 BOOLEAN OutToFile, 1500 char *Filename, 1501 char *Prefix, 1502 char **OutFilename); 1503 1504 ACPI_STATUS 1505 AdGetLocalTables ( 1506 void); 1507 1508 ACPI_STATUS 1509 AdParseTable ( 1510 ACPI_TABLE_HEADER *Table, 1511 ACPI_OWNER_ID *OwnerId, 1512 BOOLEAN LoadTable, 1513 BOOLEAN External); 1514 1515 ACPI_STATUS 1516 AdDisplayTables ( 1517 char *Filename, 1518 ACPI_TABLE_HEADER *Table); 1519 1520 ACPI_STATUS 1521 AdDisplayStatistics ( 1522 void); 1523 1524 1525 /* 1526 * dmwalk 1527 */ 1528 UINT32 1529 AcpiDmBlockType ( 1530 ACPI_PARSE_OBJECT *Op); 1531 1532 1533 #endif /* __ACDISASM_H__ */ 1534