diff options
Diffstat (limited to 'source/tools/acpihelp/acpihelp.h')
-rw-r--r-- | source/tools/acpihelp/acpihelp.h | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/source/tools/acpihelp/acpihelp.h b/source/tools/acpihelp/acpihelp.h index 83a10eac5ef2..e1b061dde611 100644 --- a/source/tools/acpihelp/acpihelp.h +++ b/source/tools/acpihelp/acpihelp.h @@ -62,16 +62,22 @@ #include <errno.h> -#define AH_DECODE_DEFAULT 0 -#define AH_DECODE_ASL 1 -#define AH_DECODE_ASL_KEYWORD 2 -#define AH_DECODE_PREDEFINED_NAME 3 -#define AH_DECODE_AML 4 -#define AH_DECODE_AML_OPCODE 5 -#define AH_DISPLAY_DEVICE_IDS 6 -#define AH_DECODE_EXCEPTION 7 -#define AH_DECODE_ASL_AML 8 -#define AH_DISPLAY_UUIDS 9 +typedef enum +{ + AH_DECODE_DEFAULT = 0, + AH_DECODE_ASL, + AH_DECODE_ASL_KEYWORD, + AH_DECODE_PREDEFINED_NAME, + AH_DECODE_AML, + AH_DECODE_AML_OPCODE, + AH_DISPLAY_DEVICE_IDS, + AH_DECODE_EXCEPTION, + AH_DECODE_ASL_AML, + AH_DISPLAY_UUIDS, + AH_DISPLAY_TABLES, + AH_DISPLAY_DIRECTIVES + +} AH_OPTION_TYPES; #define AH_MAX_ASL_LINE_LENGTH 70 #define AH_MAX_AML_LINE_LENGTH 100 @@ -106,11 +112,19 @@ typedef struct ah_asl_keyword } AH_ASL_KEYWORD; +typedef struct ah_directive_info +{ + char *Name; + char *Operands; + +} AH_DIRECTIVE_INFO; extern const AH_AML_OPCODE AmlOpcodeInfo[]; extern const AH_ASL_OPERATOR AslOperatorInfo[]; extern const AH_ASL_KEYWORD AslKeywordInfo[]; extern const AH_UUID AcpiUuids[]; +extern const AH_DIRECTIVE_INFO PreprocessorDirectives[]; +extern const AH_TABLE AcpiSupportedTables[]; extern BOOLEAN AhDisplayAll; void @@ -150,7 +164,19 @@ AhDisplayDeviceIds ( char *Name); void +AhDisplayTables ( + void); + +const AH_TABLE * +AcpiAhGetTableInfo ( + char *Signature); + +void AhDisplayUuids ( void); +void +AhDisplayDirectives ( + void); + #endif /* __ACPIHELP_H */ |