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