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 - 2018, 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_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 AcpiDmTableInfoGtdt0[]; 413 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0a[]; 414 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt1[]; 415 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[]; 416 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest[]; 417 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[]; 418 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[]; 419 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest2[]; 420 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[]; 421 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[]; 422 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[]; 423 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[]; 424 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest10[]; 425 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest11[]; 426 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[]; 427 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestBank[]; 428 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[]; 429 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpitHdr[]; 430 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit0[]; 431 extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit1[]; 432 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat[]; 433 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat0[]; 434 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1[]; 435 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1a[]; 436 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1b[]; 437 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1c[]; 438 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2[]; 439 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2a[]; 440 extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmatHdr[]; 441 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort[]; 442 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0[]; 443 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0a[]; 444 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1[]; 445 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1a[]; 446 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort2[]; 447 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3[]; 448 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3a[]; 449 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3b[]; 450 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3c[]; 451 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort4[]; 452 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort5[]; 453 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortAcc[]; 454 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr[]; 455 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortMap[]; 456 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortPad[]; 457 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs[]; 458 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs0[]; 459 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs1[]; 460 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs4[]; 461 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8a[]; 462 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8b[]; 463 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8c[]; 464 extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHdr[]; 465 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[]; 466 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[]; 467 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[]; 468 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[]; 469 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[]; 470 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[]; 471 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[]; 472 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[]; 473 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[]; 474 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[]; 475 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[]; 476 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[]; 477 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11[]; 478 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt12[]; 479 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt13[]; 480 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14[]; 481 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15[]; 482 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[]; 483 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[]; 484 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[]; 485 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMchi[]; 486 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst[]; 487 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0[]; 488 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0A[]; 489 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0B[]; 490 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst1[]; 491 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst2[]; 492 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct[]; 493 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct0[]; 494 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMtmr[]; 495 extern ACPI_DMTABLE_INFO AcpiDmTableInfoMtmr0[]; 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 AcpiDmTableInfoStao[]; 557 extern ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[]; 558 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[]; 559 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[]; 560 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[]; 561 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[]; 562 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2a[]; 563 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm211[]; 564 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23[]; 565 extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23a[]; 566 extern ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[]; 567 extern ACPI_DMTABLE_INFO AcpiDmTableInfoVrtc[]; 568 extern ACPI_DMTABLE_INFO AcpiDmTableInfoVrtc0[]; 569 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[]; 570 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[]; 571 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[]; 572 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[]; 573 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[]; 574 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[]; 575 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[]; 576 extern ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[]; 577 extern ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[]; 578 579 extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2]; 580 581 /* 582 * dmtable and ahtable 583 */ 584 extern const ACPI_DMTABLE_DATA AcpiDmTableData[]; 585 extern const AH_TABLE AcpiGbl_SupportedTables[]; 586 587 UINT8 588 AcpiDmGenerateChecksum ( 589 void *Table, 590 UINT32 Length, 591 UINT8 OriginalChecksum); 592 593 const ACPI_DMTABLE_DATA * 594 AcpiDmGetTableData ( 595 char *Signature); 596 597 void 598 AcpiDmDumpDataTable ( 599 ACPI_TABLE_HEADER *Table); 600 601 ACPI_STATUS 602 AcpiDmDumpTable ( 603 UINT32 TableLength, 604 UINT32 TableOffset, 605 void *Table, 606 UINT32 SubtableLength, 607 ACPI_DMTABLE_INFO *Info); 608 609 void 610 AcpiDmLineHeader ( 611 UINT32 Offset, 612 UINT32 ByteLength, 613 char *Name); 614 615 void 616 AcpiDmLineHeader2 ( 617 UINT32 Offset, 618 UINT32 ByteLength, 619 char *Name, 620 UINT32 Value); 621 622 623 /* 624 * dmtbdump 625 */ 626 void 627 AcpiDmDumpBuffer ( 628 void *Table, 629 UINT32 BufferOffset, 630 UINT32 Length, 631 UINT32 AbsoluteOffset, 632 char *Header); 633 634 void 635 AcpiDmDumpUnicode ( 636 void *Table, 637 UINT32 BufferOffset, 638 UINT32 ByteLength); 639 640 void 641 AcpiDmDumpAsf ( 642 ACPI_TABLE_HEADER *Table); 643 644 void 645 AcpiDmDumpCpep ( 646 ACPI_TABLE_HEADER *Table); 647 648 void 649 AcpiDmDumpCsrt ( 650 ACPI_TABLE_HEADER *Table); 651 652 void 653 AcpiDmDumpDbg2 ( 654 ACPI_TABLE_HEADER *Table); 655 656 void 657 AcpiDmDumpDmar ( 658 ACPI_TABLE_HEADER *Table); 659 660 void 661 AcpiDmDumpDrtm ( 662 ACPI_TABLE_HEADER *Table); 663 664 void 665 AcpiDmDumpEinj ( 666 ACPI_TABLE_HEADER *Table); 667 668 void 669 AcpiDmDumpErst ( 670 ACPI_TABLE_HEADER *Table); 671 672 void 673 AcpiDmDumpFadt ( 674 ACPI_TABLE_HEADER *Table); 675 676 void 677 AcpiDmDumpFpdt ( 678 ACPI_TABLE_HEADER *Table); 679 680 void 681 AcpiDmDumpGtdt ( 682 ACPI_TABLE_HEADER *Table); 683 684 void 685 AcpiDmDumpHest ( 686 ACPI_TABLE_HEADER *Table); 687 688 void 689 AcpiDmDumpHmat ( 690 ACPI_TABLE_HEADER *Table); 691 692 void 693 AcpiDmDumpIort ( 694 ACPI_TABLE_HEADER *Table); 695 696 void 697 AcpiDmDumpIvrs ( 698 ACPI_TABLE_HEADER *Table); 699 700 void 701 AcpiDmDumpLpit ( 702 ACPI_TABLE_HEADER *Table); 703 704 void 705 AcpiDmDumpMadt ( 706 ACPI_TABLE_HEADER *Table); 707 708 void 709 AcpiDmDumpMcfg ( 710 ACPI_TABLE_HEADER *Table); 711 712 void 713 AcpiDmDumpMpst ( 714 ACPI_TABLE_HEADER *Table); 715 716 void 717 AcpiDmDumpMsct ( 718 ACPI_TABLE_HEADER *Table); 719 720 void 721 AcpiDmDumpMtmr ( 722 ACPI_TABLE_HEADER *Table); 723 724 void 725 AcpiDmDumpNfit ( 726 ACPI_TABLE_HEADER *Table); 727 728 void 729 AcpiDmDumpPcct ( 730 ACPI_TABLE_HEADER *Table); 731 732 void 733 AcpiDmDumpPdtt ( 734 ACPI_TABLE_HEADER *Table); 735 736 void 737 AcpiDmDumpPmtt ( 738 ACPI_TABLE_HEADER *Table); 739 740 void 741 AcpiDmDumpPptt ( 742 ACPI_TABLE_HEADER *Table); 743 744 UINT32 745 AcpiDmDumpRsdp ( 746 ACPI_TABLE_HEADER *Table); 747 748 void 749 AcpiDmDumpRsdt ( 750 ACPI_TABLE_HEADER *Table); 751 752 UINT32 753 AcpiDmDumpS3pt ( 754 ACPI_TABLE_HEADER *Table); 755 756 void 757 AcpiDmDumpSdev ( 758 ACPI_TABLE_HEADER *Table); 759 760 void 761 AcpiDmDumpSlic ( 762 ACPI_TABLE_HEADER *Table); 763 764 void 765 AcpiDmDumpSlit ( 766 ACPI_TABLE_HEADER *Table); 767 768 void 769 AcpiDmDumpSrat ( 770 ACPI_TABLE_HEADER *Table); 771 772 void 773 AcpiDmDumpStao ( 774 ACPI_TABLE_HEADER *Table); 775 776 void 777 AcpiDmDumpTcpa ( 778 ACPI_TABLE_HEADER *Table); 779 780 void 781 AcpiDmDumpTpm2 ( 782 ACPI_TABLE_HEADER *Table); 783 784 void 785 AcpiDmDumpVrtc ( 786 ACPI_TABLE_HEADER *Table); 787 788 void 789 AcpiDmDumpWdat ( 790 ACPI_TABLE_HEADER *Table); 791 792 void 793 AcpiDmDumpWpbt ( 794 ACPI_TABLE_HEADER *Table); 795 796 void 797 AcpiDmDumpXsdt ( 798 ACPI_TABLE_HEADER *Table); 799 800 801 /* 802 * dmwalk 803 */ 804 void 805 AcpiDmDisassemble ( 806 ACPI_WALK_STATE *WalkState, 807 ACPI_PARSE_OBJECT *Origin, 808 UINT32 NumOpcodes); 809 810 void 811 AcpiDmWalkParseTree ( 812 ACPI_PARSE_OBJECT *Op, 813 ASL_WALK_CALLBACK DescendingCallback, 814 ASL_WALK_CALLBACK AscendingCallback, 815 void *Context); 816 817 818 /* 819 * dmopcode 820 */ 821 void 822 AcpiDmDisassembleOneOp ( 823 ACPI_WALK_STATE *WalkState, 824 ACPI_OP_WALK_INFO *Info, 825 ACPI_PARSE_OBJECT *Op); 826 827 UINT32 828 AcpiDmListType ( 829 ACPI_PARSE_OBJECT *Op); 830 831 void 832 AcpiDmMethodFlags ( 833 ACPI_PARSE_OBJECT *Op); 834 835 void 836 AcpiDmDisplayTargetPathname ( 837 ACPI_PARSE_OBJECT *Op); 838 839 void 840 AcpiDmNotifyDescription ( 841 ACPI_PARSE_OBJECT *Op); 842 843 void 844 AcpiDmPredefinedDescription ( 845 ACPI_PARSE_OBJECT *Op); 846 847 void 848 AcpiDmFieldPredefinedDescription ( 849 ACPI_PARSE_OBJECT *Op); 850 851 void 852 AcpiDmFieldFlags ( 853 ACPI_PARSE_OBJECT *Op); 854 855 void 856 AcpiDmAddressSpace ( 857 UINT8 SpaceId); 858 859 void 860 AcpiDmRegionFlags ( 861 ACPI_PARSE_OBJECT *Op); 862 863 void 864 AcpiDmMatchOp ( 865 ACPI_PARSE_OBJECT *Op); 866 867 868 /* 869 * dmnames 870 */ 871 UINT32 872 AcpiDmDumpName ( 873 UINT32 Name); 874 875 ACPI_STATUS 876 AcpiPsDisplayObjectPathname ( 877 ACPI_WALK_STATE *WalkState, 878 ACPI_PARSE_OBJECT *Op); 879 880 void 881 AcpiDmNamestring ( 882 char *Name); 883 884 885 /* 886 * dmbuffer 887 */ 888 void 889 AcpiDmDisasmByteList ( 890 UINT32 Level, 891 UINT8 *ByteData, 892 UINT32 ByteCount); 893 894 void 895 AcpiDmByteList ( 896 ACPI_OP_WALK_INFO *Info, 897 ACPI_PARSE_OBJECT *Op); 898 899 void 900 AcpiDmCheckForHardwareId ( 901 ACPI_PARSE_OBJECT *Op); 902 903 void 904 AcpiDmDecompressEisaId ( 905 UINT32 EncodedId); 906 907 BOOLEAN 908 AcpiDmIsUuidBuffer ( 909 ACPI_PARSE_OBJECT *Op); 910 911 BOOLEAN 912 AcpiDmIsUnicodeBuffer ( 913 ACPI_PARSE_OBJECT *Op); 914 915 BOOLEAN 916 AcpiDmIsStringBuffer ( 917 ACPI_PARSE_OBJECT *Op); 918 919 BOOLEAN 920 AcpiDmIsPldBuffer ( 921 ACPI_PARSE_OBJECT *Op); 922 923 924 /* 925 * dmdeferred 926 */ 927 ACPI_STATUS 928 AcpiDmParseDeferredOps ( 929 ACPI_PARSE_OBJECT *Root); 930 931 932 /* 933 * dmextern 934 */ 935 ACPI_STATUS 936 AcpiDmAddToExternalFileList ( 937 char *PathList); 938 939 void 940 AcpiDmClearExternalFileList ( 941 void); 942 943 void 944 AcpiDmAddOpToExternalList ( 945 ACPI_PARSE_OBJECT *Op, 946 char *Path, 947 UINT8 Type, 948 UINT32 Value, 949 UINT16 Flags); 950 951 void 952 AcpiDmCreateSubobjectForExternal ( 953 UINT8 Type, 954 ACPI_NAMESPACE_NODE **Node, 955 UINT32 Value); 956 957 void 958 AcpiDmAddNodeToExternalList ( 959 ACPI_NAMESPACE_NODE *Node, 960 UINT8 Type, 961 UINT32 Value, 962 UINT16 Flags); 963 964 void 965 AcpiDmAddExternalListToNamespace ( 966 void); 967 968 void 969 AcpiDmAddOneExternalToNamespace ( 970 char *Path, 971 UINT8 Type, 972 UINT32 Value); 973 974 UINT32 975 AcpiDmGetUnresolvedExternalMethodCount ( 976 void); 977 978 void 979 AcpiDmClearExternalList ( 980 void); 981 982 void 983 AcpiDmEmitExternals ( 984 void); 985 986 void 987 AcpiDmEmitExternal ( 988 ACPI_PARSE_OBJECT *NameOp, 989 ACPI_PARSE_OBJECT *TypeOp); 990 991 void 992 AcpiDmUnresolvedWarning ( 993 UINT8 Type); 994 995 void 996 AcpiDmGetExternalsFromFile ( 997 void); 998 999 void 1000 AcpiDmMarkExternalConflict ( 1001 ACPI_NAMESPACE_NODE *Node); 1002 1003 1004 /* 1005 * dmresrc 1006 */ 1007 void 1008 AcpiDmDumpInteger8 ( 1009 UINT8 Value, 1010 const char *Name); 1011 1012 void 1013 AcpiDmDumpInteger16 ( 1014 UINT16 Value, 1015 const char *Name); 1016 1017 void 1018 AcpiDmDumpInteger32 ( 1019 UINT32 Value, 1020 const char *Name); 1021 1022 void 1023 AcpiDmDumpInteger64 ( 1024 UINT64 Value, 1025 const char *Name); 1026 1027 void 1028 AcpiDmResourceTemplate ( 1029 ACPI_OP_WALK_INFO *Info, 1030 ACPI_PARSE_OBJECT *Op, 1031 UINT8 *ByteData, 1032 UINT32 ByteCount); 1033 1034 ACPI_STATUS 1035 AcpiDmIsResourceTemplate ( 1036 ACPI_WALK_STATE *WalkState, 1037 ACPI_PARSE_OBJECT *Op); 1038 1039 void 1040 AcpiDmBitList ( 1041 UINT16 Mask); 1042 1043 void 1044 AcpiDmDescriptorName ( 1045 void); 1046 1047 1048 /* 1049 * dmresrcl 1050 */ 1051 void 1052 AcpiDmWordDescriptor ( 1053 ACPI_OP_WALK_INFO *Info, 1054 AML_RESOURCE *Resource, 1055 UINT32 Length, 1056 UINT32 Level); 1057 1058 void 1059 AcpiDmDwordDescriptor ( 1060 ACPI_OP_WALK_INFO *Info, 1061 AML_RESOURCE *Resource, 1062 UINT32 Length, 1063 UINT32 Level); 1064 1065 void 1066 AcpiDmExtendedDescriptor ( 1067 ACPI_OP_WALK_INFO *Info, 1068 AML_RESOURCE *Resource, 1069 UINT32 Length, 1070 UINT32 Level); 1071 1072 void 1073 AcpiDmQwordDescriptor ( 1074 ACPI_OP_WALK_INFO *Info, 1075 AML_RESOURCE *Resource, 1076 UINT32 Length, 1077 UINT32 Level); 1078 1079 void 1080 AcpiDmMemory24Descriptor ( 1081 ACPI_OP_WALK_INFO *Info, 1082 AML_RESOURCE *Resource, 1083 UINT32 Length, 1084 UINT32 Level); 1085 1086 void 1087 AcpiDmMemory32Descriptor ( 1088 ACPI_OP_WALK_INFO *Info, 1089 AML_RESOURCE *Resource, 1090 UINT32 Length, 1091 UINT32 Level); 1092 1093 void 1094 AcpiDmFixedMemory32Descriptor ( 1095 ACPI_OP_WALK_INFO *Info, 1096 AML_RESOURCE *Resource, 1097 UINT32 Length, 1098 UINT32 Level); 1099 1100 void 1101 AcpiDmGenericRegisterDescriptor ( 1102 ACPI_OP_WALK_INFO *Info, 1103 AML_RESOURCE *Resource, 1104 UINT32 Length, 1105 UINT32 Level); 1106 1107 void 1108 AcpiDmInterruptDescriptor ( 1109 ACPI_OP_WALK_INFO *Info, 1110 AML_RESOURCE *Resource, 1111 UINT32 Length, 1112 UINT32 Level); 1113 1114 void 1115 AcpiDmVendorLargeDescriptor ( 1116 ACPI_OP_WALK_INFO *Info, 1117 AML_RESOURCE *Resource, 1118 UINT32 Length, 1119 UINT32 Level); 1120 1121 void 1122 AcpiDmGpioDescriptor ( 1123 ACPI_OP_WALK_INFO *Info, 1124 AML_RESOURCE *Resource, 1125 UINT32 Length, 1126 UINT32 Level); 1127 1128 void 1129 AcpiDmPinFunctionDescriptor ( 1130 ACPI_OP_WALK_INFO *Info, 1131 AML_RESOURCE *Resource, 1132 UINT32 Length, 1133 UINT32 Level); 1134 1135 void 1136 AcpiDmPinConfigDescriptor ( 1137 ACPI_OP_WALK_INFO *Info, 1138 AML_RESOURCE *Resource, 1139 UINT32 Length, 1140 UINT32 Level); 1141 1142 void 1143 AcpiDmPinGroupDescriptor ( 1144 ACPI_OP_WALK_INFO *Info, 1145 AML_RESOURCE *Resource, 1146 UINT32 Length, 1147 UINT32 Level); 1148 1149 void 1150 AcpiDmPinGroupFunctionDescriptor ( 1151 ACPI_OP_WALK_INFO *Info, 1152 AML_RESOURCE *Resource, 1153 UINT32 Length, 1154 UINT32 Level); 1155 1156 void 1157 AcpiDmPinGroupConfigDescriptor ( 1158 ACPI_OP_WALK_INFO *Info, 1159 AML_RESOURCE *Resource, 1160 UINT32 Length, 1161 UINT32 Level); 1162 1163 void 1164 AcpiDmSerialBusDescriptor ( 1165 ACPI_OP_WALK_INFO *Info, 1166 AML_RESOURCE *Resource, 1167 UINT32 Length, 1168 UINT32 Level); 1169 1170 void 1171 AcpiDmVendorCommon ( 1172 const char *Name, 1173 UINT8 *ByteData, 1174 UINT32 Length, 1175 UINT32 Level); 1176 1177 1178 /* 1179 * dmresrcs 1180 */ 1181 void 1182 AcpiDmIrqDescriptor ( 1183 ACPI_OP_WALK_INFO *Info, 1184 AML_RESOURCE *Resource, 1185 UINT32 Length, 1186 UINT32 Level); 1187 1188 void 1189 AcpiDmDmaDescriptor ( 1190 ACPI_OP_WALK_INFO *Info, 1191 AML_RESOURCE *Resource, 1192 UINT32 Length, 1193 UINT32 Level); 1194 1195 void 1196 AcpiDmFixedDmaDescriptor ( 1197 ACPI_OP_WALK_INFO *Info, 1198 AML_RESOURCE *Resource, 1199 UINT32 Length, 1200 UINT32 Level); 1201 1202 void 1203 AcpiDmIoDescriptor ( 1204 ACPI_OP_WALK_INFO *Info, 1205 AML_RESOURCE *Resource, 1206 UINT32 Length, 1207 UINT32 Level); 1208 1209 void 1210 AcpiDmFixedIoDescriptor ( 1211 ACPI_OP_WALK_INFO *Info, 1212 AML_RESOURCE *Resource, 1213 UINT32 Length, 1214 UINT32 Level); 1215 1216 void 1217 AcpiDmStartDependentDescriptor ( 1218 ACPI_OP_WALK_INFO *Info, 1219 AML_RESOURCE *Resource, 1220 UINT32 Length, 1221 UINT32 Level); 1222 1223 void 1224 AcpiDmEndDependentDescriptor ( 1225 ACPI_OP_WALK_INFO *Info, 1226 AML_RESOURCE *Resource, 1227 UINT32 Length, 1228 UINT32 Level); 1229 1230 void 1231 AcpiDmVendorSmallDescriptor ( 1232 ACPI_OP_WALK_INFO *Info, 1233 AML_RESOURCE *Resource, 1234 UINT32 Length, 1235 UINT32 Level); 1236 1237 1238 /* 1239 * dmutils 1240 */ 1241 void 1242 AcpiDmDecodeAttribute ( 1243 UINT8 Attribute); 1244 1245 void 1246 AcpiDmIndent ( 1247 UINT32 Level); 1248 1249 BOOLEAN 1250 AcpiDmCommaIfListMember ( 1251 ACPI_PARSE_OBJECT *Op); 1252 1253 void 1254 AcpiDmCommaIfFieldMember ( 1255 ACPI_PARSE_OBJECT *Op); 1256 1257 1258 /* 1259 * dmrestag 1260 */ 1261 void 1262 AcpiDmFindResources ( 1263 ACPI_PARSE_OBJECT *Root); 1264 1265 void 1266 AcpiDmCheckResourceReference ( 1267 ACPI_PARSE_OBJECT *Op, 1268 ACPI_WALK_STATE *WalkState); 1269 1270 1271 /* 1272 * dmcstyle 1273 */ 1274 BOOLEAN 1275 AcpiDmCheckForSymbolicOpcode ( 1276 ACPI_PARSE_OBJECT *Op, 1277 ACPI_OP_WALK_INFO *Info); 1278 1279 void 1280 AcpiDmCloseOperator ( 1281 ACPI_PARSE_OBJECT *Op); 1282 1283 1284 /* 1285 * dmtables 1286 */ 1287 ACPI_STATUS 1288 AcpiDmProcessSwitch ( 1289 ACPI_PARSE_OBJECT *Op); 1290 1291 void 1292 AcpiDmClearTempList( 1293 void); 1294 1295 /* 1296 * dmtables 1297 */ 1298 void 1299 AdDisassemblerHeader ( 1300 char *Filename, 1301 UINT8 TableType); 1302 1303 #define ACPI_IS_AML_TABLE 0 1304 #define ACPI_IS_DATA_TABLE 1 1305 1306 1307 /* 1308 * adisasm 1309 */ 1310 ACPI_STATUS 1311 AdAmlDisassemble ( 1312 BOOLEAN OutToFile, 1313 char *Filename, 1314 char *Prefix, 1315 char **OutFilename); 1316 1317 ACPI_STATUS 1318 AdGetLocalTables ( 1319 void); 1320 1321 ACPI_STATUS 1322 AdParseTable ( 1323 ACPI_TABLE_HEADER *Table, 1324 ACPI_OWNER_ID *OwnerId, 1325 BOOLEAN LoadTable, 1326 BOOLEAN External); 1327 1328 ACPI_STATUS 1329 AdDisplayTables ( 1330 char *Filename, 1331 ACPI_TABLE_HEADER *Table); 1332 1333 ACPI_STATUS 1334 AdDisplayStatistics ( 1335 void); 1336 1337 1338 /* 1339 * dmwalk 1340 */ 1341 UINT32 1342 AcpiDmBlockType ( 1343 ACPI_PARSE_OBJECT *Op); 1344 1345 1346 #endif /* __ACDISASM_H__ */ 1347