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