10Sstevel@tonic-gate /****************************************************************************** 20Sstevel@tonic-gate * 30Sstevel@tonic-gate * Name: acdisasm.h - AML disassembler 4*2623Smyers * $Revision: 1.35 $ 50Sstevel@tonic-gate * 60Sstevel@tonic-gate *****************************************************************************/ 70Sstevel@tonic-gate 80Sstevel@tonic-gate /****************************************************************************** 90Sstevel@tonic-gate * 100Sstevel@tonic-gate * 1. Copyright Notice 110Sstevel@tonic-gate * 121560Smyers * Some or all of this work - Copyright (c) 1999 - 2006, Intel Corp. 130Sstevel@tonic-gate * All rights reserved. 140Sstevel@tonic-gate * 150Sstevel@tonic-gate * 2. License 160Sstevel@tonic-gate * 170Sstevel@tonic-gate * 2.1. This is your license from Intel Corp. under its intellectual property 180Sstevel@tonic-gate * rights. You may have additional license terms from the party that provided 190Sstevel@tonic-gate * you this software, covering your right to use that party's intellectual 200Sstevel@tonic-gate * property rights. 210Sstevel@tonic-gate * 220Sstevel@tonic-gate * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 230Sstevel@tonic-gate * copy of the source code appearing in this file ("Covered Code") an 240Sstevel@tonic-gate * irrevocable, perpetual, worldwide license under Intel's copyrights in the 250Sstevel@tonic-gate * base code distributed originally by Intel ("Original Intel Code") to copy, 260Sstevel@tonic-gate * make derivatives, distribute, use and display any portion of the Covered 270Sstevel@tonic-gate * Code in any form, with the right to sublicense such rights; and 280Sstevel@tonic-gate * 290Sstevel@tonic-gate * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 300Sstevel@tonic-gate * license (with the right to sublicense), under only those claims of Intel 310Sstevel@tonic-gate * patents that are infringed by the Original Intel Code, to make, use, sell, 320Sstevel@tonic-gate * offer to sell, and import the Covered Code and derivative works thereof 330Sstevel@tonic-gate * solely to the minimum extent necessary to exercise the above copyright 340Sstevel@tonic-gate * license, and in no event shall the patent license extend to any additions 350Sstevel@tonic-gate * to or modifications of the Original Intel Code. No other license or right 360Sstevel@tonic-gate * is granted directly or by implication, estoppel or otherwise; 370Sstevel@tonic-gate * 380Sstevel@tonic-gate * The above copyright and patent license is granted only if the following 390Sstevel@tonic-gate * conditions are met: 400Sstevel@tonic-gate * 410Sstevel@tonic-gate * 3. Conditions 420Sstevel@tonic-gate * 430Sstevel@tonic-gate * 3.1. Redistribution of Source with Rights to Further Distribute Source. 440Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 450Sstevel@tonic-gate * Code or modification with rights to further distribute source must include 460Sstevel@tonic-gate * the above Copyright Notice, the above License, this list of Conditions, 470Sstevel@tonic-gate * and the following Disclaimer and Export Compliance provision. In addition, 480Sstevel@tonic-gate * Licensee must cause all Covered Code to which Licensee contributes to 490Sstevel@tonic-gate * contain a file documenting the changes Licensee made to create that Covered 500Sstevel@tonic-gate * Code and the date of any change. Licensee must include in that file the 510Sstevel@tonic-gate * documentation of any changes made by any predecessor Licensee. Licensee 520Sstevel@tonic-gate * must include a prominent statement that the modification is derived, 530Sstevel@tonic-gate * directly or indirectly, from Original Intel Code. 540Sstevel@tonic-gate * 550Sstevel@tonic-gate * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 560Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 570Sstevel@tonic-gate * Code or modification without rights to further distribute source must 580Sstevel@tonic-gate * include the following Disclaimer and Export Compliance provision in the 590Sstevel@tonic-gate * documentation and/or other materials provided with distribution. In 600Sstevel@tonic-gate * addition, Licensee may not authorize further sublicense of source of any 610Sstevel@tonic-gate * portion of the Covered Code, and must include terms to the effect that the 620Sstevel@tonic-gate * license from Licensee to its licensee is limited to the intellectual 630Sstevel@tonic-gate * property embodied in the software Licensee provides to its licensee, and 640Sstevel@tonic-gate * not to intellectual property embodied in modifications its licensee may 650Sstevel@tonic-gate * make. 660Sstevel@tonic-gate * 670Sstevel@tonic-gate * 3.3. Redistribution of Executable. Redistribution in executable form of any 680Sstevel@tonic-gate * substantial portion of the Covered Code or modification must reproduce the 690Sstevel@tonic-gate * above Copyright Notice, and the following Disclaimer and Export Compliance 700Sstevel@tonic-gate * provision in the documentation and/or other materials provided with the 710Sstevel@tonic-gate * distribution. 720Sstevel@tonic-gate * 730Sstevel@tonic-gate * 3.4. Intel retains all right, title, and interest in and to the Original 740Sstevel@tonic-gate * Intel Code. 750Sstevel@tonic-gate * 760Sstevel@tonic-gate * 3.5. Neither the name Intel nor any other trademark owned or controlled by 770Sstevel@tonic-gate * Intel shall be used in advertising or otherwise to promote the sale, use or 780Sstevel@tonic-gate * other dealings in products derived from or relating to the Covered Code 790Sstevel@tonic-gate * without prior written authorization from Intel. 800Sstevel@tonic-gate * 810Sstevel@tonic-gate * 4. Disclaimer and Export Compliance 820Sstevel@tonic-gate * 830Sstevel@tonic-gate * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 840Sstevel@tonic-gate * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 850Sstevel@tonic-gate * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 860Sstevel@tonic-gate * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 870Sstevel@tonic-gate * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 880Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 890Sstevel@tonic-gate * PARTICULAR PURPOSE. 900Sstevel@tonic-gate * 910Sstevel@tonic-gate * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 920Sstevel@tonic-gate * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 930Sstevel@tonic-gate * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 940Sstevel@tonic-gate * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 950Sstevel@tonic-gate * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 960Sstevel@tonic-gate * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 970Sstevel@tonic-gate * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 980Sstevel@tonic-gate * LIMITED REMEDY. 990Sstevel@tonic-gate * 1000Sstevel@tonic-gate * 4.3. Licensee shall not export, either directly or indirectly, any of this 1010Sstevel@tonic-gate * software or system incorporating such software without first obtaining any 1020Sstevel@tonic-gate * required license or other approval from the U. S. Department of Commerce or 1030Sstevel@tonic-gate * any other agency or department of the United States Government. In the 1040Sstevel@tonic-gate * event Licensee exports any such software from the United States or 1050Sstevel@tonic-gate * re-exports any such software from a foreign destination, Licensee shall 1060Sstevel@tonic-gate * ensure that the distribution and export/re-export of the software is in 1070Sstevel@tonic-gate * compliance with all laws, regulations, orders, or other restrictions of the 1080Sstevel@tonic-gate * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1090Sstevel@tonic-gate * any of its subsidiaries will export/re-export any technical data, process, 1100Sstevel@tonic-gate * software, or service, directly or indirectly, to any country for which the 1110Sstevel@tonic-gate * United States government or any agency thereof requires an export license, 1120Sstevel@tonic-gate * other governmental approval, or letter of assurance, without first obtaining 1130Sstevel@tonic-gate * such license, approval or letter. 1140Sstevel@tonic-gate * 1150Sstevel@tonic-gate *****************************************************************************/ 1160Sstevel@tonic-gate 1170Sstevel@tonic-gate #ifndef __ACDISASM_H__ 1180Sstevel@tonic-gate #define __ACDISASM_H__ 1190Sstevel@tonic-gate 1200Sstevel@tonic-gate #include "amlresrc.h" 1210Sstevel@tonic-gate 1220Sstevel@tonic-gate 1230Sstevel@tonic-gate #define BLOCK_NONE 0 1240Sstevel@tonic-gate #define BLOCK_PAREN 1 1250Sstevel@tonic-gate #define BLOCK_BRACE 2 1260Sstevel@tonic-gate #define BLOCK_COMMA_LIST 4 127*2623Smyers #define ACPI_DEFAULT_RESNAME *(UINT32 *) "__RD" 1280Sstevel@tonic-gate 1290Sstevel@tonic-gate typedef struct acpi_external_list 1300Sstevel@tonic-gate { 1310Sstevel@tonic-gate char *Path; 132*2623Smyers char *InternalPath; 1330Sstevel@tonic-gate struct acpi_external_list *Next; 134*2623Smyers UINT32 Value; 135*2623Smyers UINT16 Length; 136*2623Smyers UINT8 Type; 1370Sstevel@tonic-gate 1380Sstevel@tonic-gate } ACPI_EXTERNAL_LIST; 1390Sstevel@tonic-gate 1400Sstevel@tonic-gate extern ACPI_EXTERNAL_LIST *AcpiGbl_ExternalList; 1411560Smyers 142*2623Smyers typedef const struct acpi_dmtable_info 143*2623Smyers { 144*2623Smyers UINT8 Opcode; 145*2623Smyers UINT8 Offset; 146*2623Smyers char *Name; 147*2623Smyers 148*2623Smyers } ACPI_DMTABLE_INFO; 1491560Smyers 150*2623Smyers /* 151*2623Smyers * Values for Opcode above. 152*2623Smyers * Note: 0-7 must not change, used as a flag shift value 153*2623Smyers */ 154*2623Smyers #define ACPI_DMT_FLAG0 0 155*2623Smyers #define ACPI_DMT_FLAG1 1 156*2623Smyers #define ACPI_DMT_FLAG2 2 157*2623Smyers #define ACPI_DMT_FLAG3 3 158*2623Smyers #define ACPI_DMT_FLAG4 4 159*2623Smyers #define ACPI_DMT_FLAG5 5 160*2623Smyers #define ACPI_DMT_FLAG6 6 161*2623Smyers #define ACPI_DMT_FLAG7 7 162*2623Smyers #define ACPI_DMT_FLAGS0 8 163*2623Smyers #define ACPI_DMT_FLAGS2 9 164*2623Smyers #define ACPI_DMT_UINT8 10 165*2623Smyers #define ACPI_DMT_UINT16 11 166*2623Smyers #define ACPI_DMT_UINT24 12 167*2623Smyers #define ACPI_DMT_UINT32 13 168*2623Smyers #define ACPI_DMT_UINT56 14 169*2623Smyers #define ACPI_DMT_UINT64 15 170*2623Smyers #define ACPI_DMT_STRING 16 171*2623Smyers #define ACPI_DMT_NAME4 17 172*2623Smyers #define ACPI_DMT_NAME6 18 173*2623Smyers #define ACPI_DMT_NAME8 19 174*2623Smyers #define ACPI_DMT_CHKSUM 20 175*2623Smyers #define ACPI_DMT_SPACEID 21 176*2623Smyers #define ACPI_DMT_GAS 22 177*2623Smyers #define ACPI_DMT_MADT 23 178*2623Smyers #define ACPI_DMT_SRAT 24 179*2623Smyers #define ACPI_DMT_EXIT 25 180*2623Smyers 181*2623Smyers typedef 182*2623Smyers void (*ACPI_TABLE_HANDLER) ( 183*2623Smyers ACPI_TABLE_HEADER *Table); 184*2623Smyers 185*2623Smyers typedef struct acpi_dmtable_data 186*2623Smyers { 187*2623Smyers char *Signature; 188*2623Smyers ACPI_DMTABLE_INFO *TableInfo; 189*2623Smyers ACPI_TABLE_HANDLER TableHandler; 190*2623Smyers 191*2623Smyers } ACPI_DMTABLE_DATA; 1920Sstevel@tonic-gate 1930Sstevel@tonic-gate 1940Sstevel@tonic-gate typedef struct acpi_op_walk_info 1950Sstevel@tonic-gate { 1960Sstevel@tonic-gate UINT32 Level; 197*2623Smyers UINT32 LastLevel; 198*2623Smyers UINT32 Count; 1990Sstevel@tonic-gate UINT32 BitOffset; 2001560Smyers UINT32 Flags; 201347Smyers ACPI_WALK_STATE *WalkState; 2020Sstevel@tonic-gate 2030Sstevel@tonic-gate } ACPI_OP_WALK_INFO; 2040Sstevel@tonic-gate 2050Sstevel@tonic-gate typedef 2060Sstevel@tonic-gate ACPI_STATUS (*ASL_WALK_CALLBACK) ( 2070Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op, 2080Sstevel@tonic-gate UINT32 Level, 2090Sstevel@tonic-gate void *Context); 2100Sstevel@tonic-gate 211*2623Smyers typedef struct acpi_resource_tag 212*2623Smyers { 213*2623Smyers UINT32 BitIndex; 214*2623Smyers char *Tag; 215*2623Smyers 216*2623Smyers } ACPI_RESOURCE_TAG; 217*2623Smyers 218*2623Smyers /* Strings used for decoding flags to ASL keywords */ 219*2623Smyers 220*2623Smyers extern const char *AcpiGbl_WordDecode[]; 221*2623Smyers extern const char *AcpiGbl_IrqDecode[]; 222*2623Smyers extern const char *AcpiGbl_LockRule[]; 223*2623Smyers extern const char *AcpiGbl_AccessTypes[]; 224*2623Smyers extern const char *AcpiGbl_UpdateRules[]; 225*2623Smyers extern const char *AcpiGbl_MatchOps[]; 226*2623Smyers 227*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf0[]; 228*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1[]; 229*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2[]; 230*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf3[]; 231*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[]; 232*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[]; 233*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoBoot[]; 234*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[]; 235*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[]; 236*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[]; 237*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[]; 238*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[]; 239*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[]; 240*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[]; 241*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoGas[]; 242*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[]; 243*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[]; 244*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[]; 245*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[]; 246*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[]; 247*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[]; 248*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[]; 249*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[]; 250*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[]; 251*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[]; 252*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[]; 253*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[]; 254*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[]; 255*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[]; 256*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[]; 257*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[]; 258*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[]; 259*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[]; 260*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[]; 261*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[]; 262*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[]; 263*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[]; 264*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[]; 265*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[]; 266*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpa[]; 267*2623Smyers extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[]; 268*2623Smyers 269*2623Smyers 270*2623Smyers /* 271*2623Smyers * dmtable 272*2623Smyers */ 273*2623Smyers void 274*2623Smyers AcpiDmDumpDataTable ( 275*2623Smyers ACPI_TABLE_HEADER *Table); 276*2623Smyers 277*2623Smyers void 278*2623Smyers AcpiDmDumpTable ( 279*2623Smyers UINT32 TableLength, 280*2623Smyers UINT32 TableOffset, 281*2623Smyers void *Table, 282*2623Smyers UINT32 SubTableLength, 283*2623Smyers ACPI_DMTABLE_INFO *Info); 284*2623Smyers 285*2623Smyers void 286*2623Smyers AcpiDmLineHeader ( 287*2623Smyers UINT32 Offset, 288*2623Smyers UINT32 ByteLength, 289*2623Smyers char *Name); 290*2623Smyers 291*2623Smyers void 292*2623Smyers AcpiDmLineHeader2 ( 293*2623Smyers UINT32 Offset, 294*2623Smyers UINT32 ByteLength, 295*2623Smyers char *Name, 296*2623Smyers UINT32 Value); 297*2623Smyers 298*2623Smyers 299*2623Smyers /* 300*2623Smyers * dmtbdump 301*2623Smyers */ 302*2623Smyers void 303*2623Smyers AcpiDmDumpAsf ( 304*2623Smyers ACPI_TABLE_HEADER *Table); 305*2623Smyers 306*2623Smyers void 307*2623Smyers AcpiDmDumpCpep ( 308*2623Smyers ACPI_TABLE_HEADER *Table); 309*2623Smyers 310*2623Smyers void 311*2623Smyers AcpiDmDumpFadt ( 312*2623Smyers ACPI_TABLE_HEADER *Table); 313*2623Smyers 314*2623Smyers void 315*2623Smyers AcpiDmDumpSrat ( 316*2623Smyers ACPI_TABLE_HEADER *Table); 317*2623Smyers 318*2623Smyers void 319*2623Smyers AcpiDmDumpMcfg ( 320*2623Smyers ACPI_TABLE_HEADER *Table); 321*2623Smyers 322*2623Smyers void 323*2623Smyers AcpiDmDumpMadt ( 324*2623Smyers ACPI_TABLE_HEADER *Table); 325*2623Smyers 326*2623Smyers UINT32 327*2623Smyers AcpiDmDumpRsdp ( 328*2623Smyers ACPI_TABLE_HEADER *Table); 329*2623Smyers 330*2623Smyers void 331*2623Smyers AcpiDmDumpRsdt ( 332*2623Smyers ACPI_TABLE_HEADER *Table); 333*2623Smyers 334*2623Smyers void 335*2623Smyers AcpiDmDumpSlit ( 336*2623Smyers ACPI_TABLE_HEADER *Table); 337*2623Smyers 338*2623Smyers void 339*2623Smyers AcpiDmDumpXsdt ( 340*2623Smyers ACPI_TABLE_HEADER *Table); 341*2623Smyers 3420Sstevel@tonic-gate 3430Sstevel@tonic-gate /* 3440Sstevel@tonic-gate * dmwalk 3450Sstevel@tonic-gate */ 3460Sstevel@tonic-gate void 3470Sstevel@tonic-gate AcpiDmDisassemble ( 3480Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 3490Sstevel@tonic-gate ACPI_PARSE_OBJECT *Origin, 3500Sstevel@tonic-gate UINT32 NumOpcodes); 3510Sstevel@tonic-gate 352*2623Smyers void 353*2623Smyers AcpiDmWalkParseTree ( 354*2623Smyers ACPI_PARSE_OBJECT *Op, 355*2623Smyers ASL_WALK_CALLBACK DescendingCallback, 356*2623Smyers ASL_WALK_CALLBACK AscendingCallback, 357*2623Smyers void *Context); 358*2623Smyers 3590Sstevel@tonic-gate 3600Sstevel@tonic-gate /* 3610Sstevel@tonic-gate * dmopcode 3620Sstevel@tonic-gate */ 3630Sstevel@tonic-gate void 3640Sstevel@tonic-gate AcpiDmDisassembleOneOp ( 3650Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 3660Sstevel@tonic-gate ACPI_OP_WALK_INFO *Info, 3670Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 3680Sstevel@tonic-gate 3690Sstevel@tonic-gate void 3700Sstevel@tonic-gate AcpiDmDecodeInternalObject ( 3710Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 3720Sstevel@tonic-gate 3730Sstevel@tonic-gate UINT32 3740Sstevel@tonic-gate AcpiDmListType ( 3750Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 3760Sstevel@tonic-gate 3770Sstevel@tonic-gate void 3780Sstevel@tonic-gate AcpiDmMethodFlags ( 3790Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 3800Sstevel@tonic-gate 3810Sstevel@tonic-gate void 3820Sstevel@tonic-gate AcpiDmFieldFlags ( 3830Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 3840Sstevel@tonic-gate 3850Sstevel@tonic-gate void 3860Sstevel@tonic-gate AcpiDmAddressSpace ( 3870Sstevel@tonic-gate UINT8 SpaceId); 3880Sstevel@tonic-gate 3890Sstevel@tonic-gate void 3900Sstevel@tonic-gate AcpiDmRegionFlags ( 3910Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 3920Sstevel@tonic-gate 3930Sstevel@tonic-gate void 3940Sstevel@tonic-gate AcpiDmMatchOp ( 3950Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 3960Sstevel@tonic-gate 3970Sstevel@tonic-gate BOOLEAN 3980Sstevel@tonic-gate AcpiDmCommaIfListMember ( 3990Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4000Sstevel@tonic-gate 4010Sstevel@tonic-gate void 4020Sstevel@tonic-gate AcpiDmCommaIfFieldMember ( 4030Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4040Sstevel@tonic-gate 4050Sstevel@tonic-gate 4060Sstevel@tonic-gate /* 4070Sstevel@tonic-gate * dmnames 4080Sstevel@tonic-gate */ 4090Sstevel@tonic-gate UINT32 4100Sstevel@tonic-gate AcpiDmDumpName ( 4110Sstevel@tonic-gate char *Name); 4120Sstevel@tonic-gate 4130Sstevel@tonic-gate ACPI_STATUS 4140Sstevel@tonic-gate AcpiPsDisplayObjectPathname ( 4150Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 4160Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4170Sstevel@tonic-gate 4180Sstevel@tonic-gate void 4190Sstevel@tonic-gate AcpiDmNamestring ( 4200Sstevel@tonic-gate char *Name); 4210Sstevel@tonic-gate 4220Sstevel@tonic-gate 4230Sstevel@tonic-gate /* 4240Sstevel@tonic-gate * dmobject 4250Sstevel@tonic-gate */ 4260Sstevel@tonic-gate void 4270Sstevel@tonic-gate AcpiDmDisplayInternalObject ( 4280Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 4290Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4300Sstevel@tonic-gate 4310Sstevel@tonic-gate void 4320Sstevel@tonic-gate AcpiDmDisplayArguments ( 4330Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4340Sstevel@tonic-gate 4350Sstevel@tonic-gate void 4360Sstevel@tonic-gate AcpiDmDisplayLocals ( 4370Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4380Sstevel@tonic-gate 4390Sstevel@tonic-gate void 4400Sstevel@tonic-gate AcpiDmDumpMethodInfo ( 4410Sstevel@tonic-gate ACPI_STATUS Status, 4420Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 4430Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4440Sstevel@tonic-gate 4450Sstevel@tonic-gate 4460Sstevel@tonic-gate /* 4470Sstevel@tonic-gate * dmbuffer 4480Sstevel@tonic-gate */ 4490Sstevel@tonic-gate void 4500Sstevel@tonic-gate AcpiDmDisasmByteList ( 4510Sstevel@tonic-gate UINT32 Level, 4520Sstevel@tonic-gate UINT8 *ByteData, 4530Sstevel@tonic-gate UINT32 ByteCount); 4540Sstevel@tonic-gate 4550Sstevel@tonic-gate void 4560Sstevel@tonic-gate AcpiDmByteList ( 4570Sstevel@tonic-gate ACPI_OP_WALK_INFO *Info, 4580Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4590Sstevel@tonic-gate 4600Sstevel@tonic-gate void 461347Smyers AcpiDmIsEisaId ( 4620Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4630Sstevel@tonic-gate 4640Sstevel@tonic-gate void 4650Sstevel@tonic-gate AcpiDmEisaId ( 4660Sstevel@tonic-gate UINT32 EncodedId); 4670Sstevel@tonic-gate 4680Sstevel@tonic-gate BOOLEAN 4690Sstevel@tonic-gate AcpiDmIsUnicodeBuffer ( 4700Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4710Sstevel@tonic-gate 4720Sstevel@tonic-gate BOOLEAN 4730Sstevel@tonic-gate AcpiDmIsStringBuffer ( 4740Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 4750Sstevel@tonic-gate 4760Sstevel@tonic-gate 4770Sstevel@tonic-gate /* 4780Sstevel@tonic-gate * dmresrc 4790Sstevel@tonic-gate */ 4800Sstevel@tonic-gate void 4811560Smyers AcpiDmDumpInteger8 ( 4821560Smyers UINT8 Value, 4831560Smyers char *Name); 4841560Smyers 4851560Smyers void 4861560Smyers AcpiDmDumpInteger16 ( 4871560Smyers UINT16 Value, 4881560Smyers char *Name); 4891560Smyers 4901560Smyers void 4911560Smyers AcpiDmDumpInteger32 ( 4921560Smyers UINT32 Value, 4931560Smyers char *Name); 4941560Smyers 4951560Smyers void 4961560Smyers AcpiDmDumpInteger64 ( 4971560Smyers UINT64 Value, 4981560Smyers char *Name); 4991560Smyers 5001560Smyers void 5011560Smyers AcpiDmResourceTemplate ( 5020Sstevel@tonic-gate ACPI_OP_WALK_INFO *Info, 503*2623Smyers ACPI_PARSE_OBJECT *Op, 5040Sstevel@tonic-gate UINT8 *ByteData, 5050Sstevel@tonic-gate UINT32 ByteCount); 5060Sstevel@tonic-gate 5070Sstevel@tonic-gate BOOLEAN 5081560Smyers AcpiDmIsResourceTemplate ( 5090Sstevel@tonic-gate ACPI_PARSE_OBJECT *Op); 5100Sstevel@tonic-gate 5110Sstevel@tonic-gate void 5120Sstevel@tonic-gate AcpiDmIndent ( 5130Sstevel@tonic-gate UINT32 Level); 5140Sstevel@tonic-gate 5150Sstevel@tonic-gate void 5160Sstevel@tonic-gate AcpiDmBitList ( 5170Sstevel@tonic-gate UINT16 Mask); 5180Sstevel@tonic-gate 5190Sstevel@tonic-gate void 5200Sstevel@tonic-gate AcpiDmDecodeAttribute ( 5210Sstevel@tonic-gate UINT8 Attribute); 5220Sstevel@tonic-gate 523*2623Smyers void 524*2623Smyers AcpiDmDescriptorName ( 525*2623Smyers void); 526*2623Smyers 5270Sstevel@tonic-gate 5280Sstevel@tonic-gate /* 5290Sstevel@tonic-gate * dmresrcl 5300Sstevel@tonic-gate */ 5310Sstevel@tonic-gate void 5320Sstevel@tonic-gate AcpiDmWordDescriptor ( 533941Smyers AML_RESOURCE *Resource, 5340Sstevel@tonic-gate UINT32 Length, 5350Sstevel@tonic-gate UINT32 Level); 5360Sstevel@tonic-gate 5370Sstevel@tonic-gate void 5380Sstevel@tonic-gate AcpiDmDwordDescriptor ( 539941Smyers AML_RESOURCE *Resource, 5400Sstevel@tonic-gate UINT32 Length, 5410Sstevel@tonic-gate UINT32 Level); 5420Sstevel@tonic-gate 5430Sstevel@tonic-gate void 5440Sstevel@tonic-gate AcpiDmExtendedDescriptor ( 545941Smyers AML_RESOURCE *Resource, 5460Sstevel@tonic-gate UINT32 Length, 5470Sstevel@tonic-gate UINT32 Level); 5480Sstevel@tonic-gate 5490Sstevel@tonic-gate void 5500Sstevel@tonic-gate AcpiDmQwordDescriptor ( 551941Smyers AML_RESOURCE *Resource, 5520Sstevel@tonic-gate UINT32 Length, 5530Sstevel@tonic-gate UINT32 Level); 5540Sstevel@tonic-gate 5550Sstevel@tonic-gate void 5560Sstevel@tonic-gate AcpiDmMemory24Descriptor ( 557941Smyers AML_RESOURCE *Resource, 5580Sstevel@tonic-gate UINT32 Length, 5590Sstevel@tonic-gate UINT32 Level); 5600Sstevel@tonic-gate 5610Sstevel@tonic-gate void 5620Sstevel@tonic-gate AcpiDmMemory32Descriptor ( 563941Smyers AML_RESOURCE *Resource, 5640Sstevel@tonic-gate UINT32 Length, 5650Sstevel@tonic-gate UINT32 Level); 5660Sstevel@tonic-gate 5670Sstevel@tonic-gate void 568941Smyers AcpiDmFixedMemory32Descriptor ( 569941Smyers AML_RESOURCE *Resource, 5700Sstevel@tonic-gate UINT32 Length, 5710Sstevel@tonic-gate UINT32 Level); 5720Sstevel@tonic-gate 5730Sstevel@tonic-gate void 5740Sstevel@tonic-gate AcpiDmGenericRegisterDescriptor ( 575941Smyers AML_RESOURCE *Resource, 5760Sstevel@tonic-gate UINT32 Length, 5770Sstevel@tonic-gate UINT32 Level); 5780Sstevel@tonic-gate 5790Sstevel@tonic-gate void 5800Sstevel@tonic-gate AcpiDmInterruptDescriptor ( 581941Smyers AML_RESOURCE *Resource, 5820Sstevel@tonic-gate UINT32 Length, 5830Sstevel@tonic-gate UINT32 Level); 5840Sstevel@tonic-gate 5850Sstevel@tonic-gate void 5860Sstevel@tonic-gate AcpiDmVendorLargeDescriptor ( 587941Smyers AML_RESOURCE *Resource, 5880Sstevel@tonic-gate UINT32 Length, 5890Sstevel@tonic-gate UINT32 Level); 5900Sstevel@tonic-gate 5911560Smyers void 5921560Smyers AcpiDmVendorCommon ( 5931560Smyers char *Name, 5941560Smyers UINT8 *ByteData, 5951560Smyers UINT32 Length, 5961560Smyers UINT32 Level); 5971560Smyers 5980Sstevel@tonic-gate 5990Sstevel@tonic-gate /* 6000Sstevel@tonic-gate * dmresrcs 6010Sstevel@tonic-gate */ 6020Sstevel@tonic-gate void 6030Sstevel@tonic-gate AcpiDmIrqDescriptor ( 604941Smyers AML_RESOURCE *Resource, 6050Sstevel@tonic-gate UINT32 Length, 6060Sstevel@tonic-gate UINT32 Level); 6070Sstevel@tonic-gate 6080Sstevel@tonic-gate void 6090Sstevel@tonic-gate AcpiDmDmaDescriptor ( 610941Smyers AML_RESOURCE *Resource, 6110Sstevel@tonic-gate UINT32 Length, 6120Sstevel@tonic-gate UINT32 Level); 6130Sstevel@tonic-gate 6140Sstevel@tonic-gate void 6150Sstevel@tonic-gate AcpiDmIoDescriptor ( 616941Smyers AML_RESOURCE *Resource, 6170Sstevel@tonic-gate UINT32 Length, 6180Sstevel@tonic-gate UINT32 Level); 6190Sstevel@tonic-gate 6200Sstevel@tonic-gate void 6210Sstevel@tonic-gate AcpiDmFixedIoDescriptor ( 622941Smyers AML_RESOURCE *Resource, 6230Sstevel@tonic-gate UINT32 Length, 6240Sstevel@tonic-gate UINT32 Level); 6250Sstevel@tonic-gate 6260Sstevel@tonic-gate void 6270Sstevel@tonic-gate AcpiDmStartDependentDescriptor ( 628941Smyers AML_RESOURCE *Resource, 6290Sstevel@tonic-gate UINT32 Length, 6300Sstevel@tonic-gate UINT32 Level); 6310Sstevel@tonic-gate 6320Sstevel@tonic-gate void 6330Sstevel@tonic-gate AcpiDmEndDependentDescriptor ( 634941Smyers AML_RESOURCE *Resource, 6350Sstevel@tonic-gate UINT32 Length, 6360Sstevel@tonic-gate UINT32 Level); 6370Sstevel@tonic-gate 6380Sstevel@tonic-gate void 6390Sstevel@tonic-gate AcpiDmVendorSmallDescriptor ( 640941Smyers AML_RESOURCE *Resource, 6410Sstevel@tonic-gate UINT32 Length, 6420Sstevel@tonic-gate UINT32 Level); 6430Sstevel@tonic-gate 6440Sstevel@tonic-gate 6450Sstevel@tonic-gate /* 6460Sstevel@tonic-gate * dmutils 6470Sstevel@tonic-gate */ 6480Sstevel@tonic-gate void 6490Sstevel@tonic-gate AcpiDmAddToExternalList ( 650*2623Smyers char *Path, 651*2623Smyers UINT8 Type, 652*2623Smyers UINT32 Value); 653*2623Smyers 654*2623Smyers /* 655*2623Smyers * dmrestag 656*2623Smyers */ 657*2623Smyers void 658*2623Smyers AcpiDmFindResources ( 659*2623Smyers ACPI_PARSE_OBJECT *Root); 660*2623Smyers 661*2623Smyers void 662*2623Smyers AcpiDmCheckResourceReference ( 663*2623Smyers ACPI_PARSE_OBJECT *Op, 664*2623Smyers ACPI_WALK_STATE *WalkState); 6650Sstevel@tonic-gate 6660Sstevel@tonic-gate #endif /* __ACDISASM_H__ */ 667