acinterp.h revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609
/******************************************************************************
*
* Name: acinterp.h - Interpreter subcomponent prototypes and defines
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2016, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer,
* without modification.
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
* substantially similar to the "NO WARRANTY" disclaimer below
* ("Disclaimer") and any redistribution must be conditioned upon
* including a substantially similar Disclaimer requirement for further
* binary redistribution.
* 3. Neither the names of the above-listed copyright holders nor the names
* of any contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*
* NO WARRANTY
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*/
#ifndef __ACINTERP_H__
#define __ACINTERP_H__
/* Macros for tables used for debug output */
/*
* If possible, pack the following structures to byte alignment, since we
* don't care about performance for debug output. Two cases where we cannot
* pack the structures:
*
* 1) Hardware does not support misaligned memory transfers
* 2) Compiler does not support pointers within packed structures
*/
#if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
#pragma pack(1)
#endif
typedef const struct acpi_exdump_info
{
const char *Name;
/* Values for the Opcode field above */
#define ACPI_EXD_INIT 0
#define ACPI_EXD_TYPE 1
#define ACPI_EXD_UINT8 2
#define ACPI_EXD_UINT16 3
#define ACPI_EXD_UINT32 4
#define ACPI_EXD_UINT64 5
#define ACPI_EXD_LITERAL 6
#define ACPI_EXD_POINTER 7
#define ACPI_EXD_ADDRESS 8
#define ACPI_EXD_STRING 9
#define ACPI_EXD_BUFFER 10
#define ACPI_EXD_PACKAGE 11
#define ACPI_EXD_FIELD 12
#define ACPI_EXD_REFERENCE 13
/* restore default alignment */
#pragma pack()
/*
* exconvrt - object conversion
*/
/* Types for ->String conversion */
#define ACPI_EXPLICIT_BYTE_COPY 0x00000000
#define ACPI_EXPLICIT_CONVERT_HEX 0x00000001
#define ACPI_IMPLICIT_CONVERT_HEX 0x00000002
#define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003
/*
* exdebug - AML debug object
*/
void
void
void
void
void
void
char *Pathname);
/*
* exfield - ACPI AML (p-code) execution - field manipulation
*/
UINT32 *DatumCount);
void
void *Buffer,
void
void *Buffer,
/*
* exfldio - low level field I/O
*/
void *Buffer,
void *Buffer,
/*
* exmisc - misc support routines
*/
/*
*/
/*
* exmutex - mutex support
*/
void
void
/*
* exprep - ACPI AML execution - prep utilities
*/
/*
* exsystem - Interface to OS services
*/
/*
* exoparg1 - ACPI AML execution, 1 operand
*/
/*
* exoparg2 - ACPI AML execution, 2 operands
*/
/*
* exoparg3 - ACPI AML execution, 3 operands
*/
/*
* exoparg6 - ACPI AML execution, 6 operands
*/
/*
* exresolv - Object resolution and get value functions
*/
/*
* exresnte - resolve namespace node
*/
/*
* exresop - resolve operand to value
*/
/*
* exdump - Interpreter debug output routines
*/
void
void
const char *OpcodeName,
void
void
/*
* exnames - AML namestring support
*/
char **OutNameString,
/*
* exstore - Object store support
*/
#define ACPI_IMPLICIT_CONVERSION TRUE
#define ACPI_NO_IMPLICIT_CONVERSION FALSE
/*
*/
/*
*/
/*
* excopy - object copy
*/
/*
* exutils - interpreter/scanner utilities
*/
void
void);
void
void);
void
void
void
char *Dest,
void
char *Dest,
void
char *Dest,
/*
* exregion - default OpRegion handlers
*/
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
void *HandlerContext,
void *RegionContext);
#endif /* __INTERP_H__ */