diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-05-17 23:13:40 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-05-17 23:13:40 +0000 |
commit | b7f987c19dad2c6d33c64e7f96a9b4deca9e2650 (patch) | |
tree | 740dae2325e162bb086ea6e7e5d481c4b669e232 /source/tools/acpihelp/ahmain.c | |
parent | b4a951799e313e9ec15d955b72dd3097e4880724 (diff) |
Notes
Diffstat (limited to 'source/tools/acpihelp/ahmain.c')
-rw-r--r-- | source/tools/acpihelp/ahmain.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/tools/acpihelp/ahmain.c b/source/tools/acpihelp/ahmain.c index 5f46ec35da7f..31748b2412c5 100644 --- a/source/tools/acpihelp/ahmain.c +++ b/source/tools/acpihelp/ahmain.c @@ -103,6 +103,7 @@ main ( int j; + ACPI_DEBUG_INITIALIZE (); /* For debug version only */ printf (ACPI_COMMON_SIGNON ("ACPI Help Utility")); DecodeType = AH_DECODE_DEFAULT; @@ -117,35 +118,43 @@ main ( while ((j = AcpiGetopt (argc, argv, "ehikmops")) != EOF) switch (j) { case 'e': + DecodeType = AH_DECODE_EXCEPTION; break; case 'i': + DecodeType = AH_DISPLAY_DEVICE_IDS; break; case 'k': + DecodeType = AH_DECODE_ASL_KEYWORD; break; case 'm': + DecodeType = AH_DECODE_AML; break; case 'o': + DecodeType = AH_DECODE_AML_OPCODE; break; case 'p': + DecodeType = AH_DECODE_PREDEFINED_NAME; break; case 's': + DecodeType = AH_DECODE_ASL; break; case 'h': default: + AhDisplayUsage (); return (-1); } @@ -157,34 +166,42 @@ main ( switch (DecodeType) { case AH_DECODE_AML: + AhFindAmlOpcode (Name); break; case AH_DECODE_AML_OPCODE: + AhDecodeAmlOpcode (Name); break; case AH_DECODE_PREDEFINED_NAME: + AhFindPredefinedNames (Name); break; case AH_DECODE_ASL: + AhFindAslOperators (Name); break; case AH_DECODE_ASL_KEYWORD: + AhFindAslKeywords (Name); break; case AH_DISPLAY_DEVICE_IDS: + AhDisplayDeviceIds (); break; case AH_DECODE_EXCEPTION: + AhDecodeException (Name); break; default: + if (!Name) { AhFindAslOperators (Name); |