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