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