Restructuring of the AML opcode handling routines

date	2001.10.09.22.42.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:19:04 +00:00
parent 76fdb05be8
commit b2ff787030

View File

@ -3,7 +3,7 @@
* Name: amlcode.h - Definitions for AML, as included in "definition blocks"
* Declarations and definitions contained herein are derived
* directly from the ACPI specification.
* $Revision: 1.56 $
* $Revision: 1.57 $
*
*****************************************************************************/
@ -388,6 +388,7 @@
#define AML_FLAGS_EXEC_2A_1T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL /* Dyadic2R */
#define AML_FLAGS_EXEC_2A_2T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL
#define AML_FLAGS_EXEC_3A_0T_0R AML_HAS_ARGS
#define AML_FLAGS_EXEC_3A_1T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL
#define AML_FLAGS_EXEC_6A_0T_1R AML_HAS_ARGS | AML_HAS_RETVAL
@ -404,28 +405,29 @@
#define AML_TYPE_EXEC_2A_1T_1R 0x06 /* Dyadic2R */
#define AML_TYPE_EXEC_2A_2T_1R 0x07
#define AML_TYPE_EXEC_3A_0T_0R 0x08
#define AML_TYPE_EXEC_6A_0T_1R 0x09
#define AML_TYPE_EXEC_3A_1T_1R 0x09
#define AML_TYPE_EXEC_6A_0T_1R 0x0A
/* End of types used in dispatch table */
#define AML_TYPE_LITERAL 0x0A
#define AML_TYPE_CONSTANT 0x0B
#define AML_TYPE_METHOD_ARGUMENT 0x0C
#define AML_TYPE_LOCAL_VARIABLE 0x0D
#define AML_TYPE_DATA_TERM 0x0E
#define AML_TYPE_LITERAL 0x0B
#define AML_TYPE_CONSTANT 0x0C
#define AML_TYPE_METHOD_ARGUMENT 0x0D
#define AML_TYPE_LOCAL_VARIABLE 0x0E
#define AML_TYPE_DATA_TERM 0x0F
/* Generic for an op that returns a value */
#define AML_TYPE_METHOD_CALL 0x0F
#define AML_TYPE_METHOD_CALL 0x10
/* Misc */
#define AML_TYPE_CREATE_FIELD 0x10
#define AML_TYPE_CONTROL 0x11
#define AML_TYPE_NAMED_OBJECT 0x12
#define AML_TYPE_RETURN 0x13
#define AML_TYPE_CREATE_FIELD 0x11
#define AML_TYPE_CONTROL 0x12
#define AML_TYPE_NAMED_OBJECT 0x13
#define AML_TYPE_RETURN 0x14
#define AML_TYPE_UNDEFINED 0x14
#define AML_TYPE_BOGUS 0x15
#define AML_TYPE_UNDEFINED 0x15
#define AML_TYPE_BOGUS 0x16
/*
@ -444,12 +446,6 @@
#define AML_CLASS_UNKNOWN 0x0A
/*
#define ACPI_GET_OP_TYPE(a) ((a)->Type)
#define ACPI_GET_OP_CLASS(a) ((a)->Class)
#define ACPI_GET_OP_FLAGS(a) ((a)->Flags)
*/
/* Predefined Operation Region SpaceIDs */
typedef enum
@ -547,18 +543,5 @@ typedef enum
#define USER_REGION_BEGIN 0x80
/*
* AML tables
*/
#ifdef DEFINE_AML_GLOBALS
/* External declarations for the AML tables */
extern UINT8 AcpiGbl_Aml [NUM_OPCODES];
extern UINT16 AcpiGbl_Pfx [NUM_OPCODES];
#endif /* DEFINE_AML_GLOBALS */
#endif /* __AMLCODE_H__ */