Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. help.c
  5. Abstract:
  6. WinDbg Extension Api for interpretting ACPI data structures
  7. Author:
  8. Stephane Plante (splante) 21-Mar-1997
  9. Based on Code by:
  10. Peter Wieland (peterwie) 16-Oct-1995
  11. Environment:
  12. User Mode.
  13. Revision History:
  14. --*/
  15. #include "pch.h"
  16. EXTERNAL_HELP_TABLE extensions[] = {
  17. { "accfield", "Dumps an Access Field Record from the AML stack" },
  18. { "acpiext", "Dumps the ACPI Device Extension\n"
  19. "\t\t\t Arguments: <address> <flags>\n"
  20. "\t\t\t Flags: 0x1,0x2,0x4,0x8 - Verbosity Bits\n"
  21. "\t\t\t 0x10 - Recurse" },
  22. { "amli", "\tInvoke AMLI debugger\n"
  23. "\t\t\t Usage: amli <cmd> [arguments ...]" },
  24. { "call", "\tDumps an Call Record from the AML stack" },
  25. { "context", "Dumps an AML Stcak Context\n"
  26. "\t\t\t Arguments: <address> <flags>\n"
  27. "\t\t\t Flags: 0x00 - 0xff - Verbosity Bits" },
  28. { "dm", "\tDumps Memory to File: <Address> <Length> <File>" },
  29. { "dsdt", "\tDumps the Differentiated System Description Table\n"
  30. "\t\t\t Arguments: <address> [savefile]" },
  31. { "facs", "\tMoved to kdexts.dll" },
  32. { "fadt", "\tMoved to kdexts.dll" },
  33. { "hdr", "\tDumps the header at the specified address" },
  34. { "kb", "\tDumps the AML Stack Trace (no nested terms)" },
  35. { "kv", "\tDumps the AML Stack Trace (nested terms)" },
  36. { "inf", "\tMoved to kdexts.dll -- see acpiinf" },
  37. { "mapic", "Moved to kdexts.dll" },
  38. { "node", "\tDumps a Device Power Node" },
  39. { "nsobj", "Moved to kdexts.dll" },
  40. { "nstree", "Moved to kdexts.dll" },
  41. { "objdata", "Dumps the result of an AML call" },
  42. { "pnpreslist", "Dumps an ACPI PnP Resource Buffer" },
  43. { "polist", "Dumps the ACPI Driver's Power Queues"},
  44. { "ponodes", "Dumps the ACPI Driver's Power Node List"},
  45. { "rsdt", "\tMoved to kdexts.dll" },
  46. { "scope", "Dumps a Scope Record from the AML stack" },
  47. { "ssdt", "\tDumps the Secondary System Description Table" },
  48. { "term", "\tDums an Term Record from the AML stack" },
  49. { "unasm", "Unassembles a section of AML" },
  50. { NULL, NULL }
  51. };
  52. DECLARE_API( help )
  53. {
  54. int i = 0;
  55. dprintf("\nACPI Debugger Extension\n");
  56. while(extensions[i].ExternalName != NULL) {
  57. dprintf("\t%s - \t%s\n", extensions[i].ExternalName, extensions[i].ExternalDescription);
  58. i++;
  59. }
  60. return;
  61. }