diff options
Diffstat (limited to 'source/tools/acpihelp/ahmain.c')
-rw-r--r-- | source/tools/acpihelp/ahmain.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/source/tools/acpihelp/ahmain.c b/source/tools/acpihelp/ahmain.c index e45a0b6..8a6787e 100644 --- a/source/tools/acpihelp/ahmain.c +++ b/source/tools/acpihelp/ahmain.c @@ -66,12 +66,18 @@ AhDisplayUsage ( ACPI_USAGE_HEADER ("acpihelp <options> [NamePrefix | HexValue]"); ACPI_OPTION ("-h", "Display help"); - ACPI_OPTION ("-i", "Display known ACPI Device IDs (_HID)"); + + printf ("\nACPI Names and Symbols:\n"); ACPI_OPTION ("-k [NamePrefix]", "Find/Display ASL non-operator keyword(s)"); ACPI_OPTION ("-m [NamePrefix]", "Find/Display AML opcode name(s)"); - ACPI_OPTION ("-o [HexValue]", "Decode hex AML opcode"); ACPI_OPTION ("-p [NamePrefix]", "Find/Display ASL predefined method name(s)"); ACPI_OPTION ("-s [NamePrefix]", "Find/Display ASL operator name(s)"); + + printf ("\nACPI Values:\n"); + ACPI_OPTION ("-e [HexValue]", "Decode ACPICA exception code"); + ACPI_OPTION ("-i", "Display known ACPI Device IDs (_HID)"); + ACPI_OPTION ("-o [HexValue]", "Decode hex AML opcode"); + printf ("\nNamePrefix/HexValue not specified means \"Display All\"\n"); printf ("\nDefault search with NamePrefix and no options:\n"); printf (" Find ASL operator names - if NamePrefix does not start with underscore\n"); @@ -108,8 +114,12 @@ main ( /* Command line options */ - while ((j = AcpiGetopt (argc, argv, "hikmops")) != EOF) switch (j) + while ((j = AcpiGetopt (argc, argv, "ehikmops")) != EOF) switch (j) { + case 'e': + DecodeType = AH_DECODE_EXCEPTION; + break; + case 'i': DecodeType = AH_DISPLAY_DEVICE_IDS; break; @@ -170,6 +180,10 @@ main ( AhDisplayDeviceIds (); break; + case AH_DECODE_EXCEPTION: + AhDecodeException (Name); + break; + default: if (!Name) { |