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