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.

56 lines
1.4 KiB

  1. //depot/Lab01_N/drivers/storage/kdext/minipkd/help.c#2 - edit change 1877 (text)
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1992 - 1999
  4. Module Name:
  5. help.c
  6. Abstract:
  7. SCSI Miniport debugger extension
  8. Author:
  9. John Strange (JohnStra) 12-April-2000
  10. Environment:
  11. User Mode.
  12. Revision History:
  13. --*/
  14. #include "pch.h"
  15. typedef struct {
  16. char *extname;
  17. char *extdesc;
  18. } exthelp;
  19. exthelp extensions[] = {
  20. {"help", "displays this message"},
  21. {"adapters", "dumps all the HBAs"},
  22. {"adapter <adapter>", "dumps the specified Adapter Extension"},
  23. {"exports <adapter>", "dumps the miniport exports for the given adapter"},
  24. {"lun <lun>", "dumps the specified Logical Unit Extension"},
  25. {"portconfig <portconfig>", "dumps the specified PORT_CONFIGURATION_INFORMATION"},
  26. {"srb <srb>", "dumps the specified SCSI_REQUEST_BLOCK"},
  27. {NULL, NULL}};
  28. DECLARE_API (help)
  29. {
  30. int i = 0;
  31. dprintf("\nSCSI Miniport Debugger Extension\n");
  32. while(extensions[i].extname != NULL) {
  33. dprintf("%-25s - \t%s\n",
  34. extensions[i].extname,
  35. extensions[i].extdesc);
  36. i++;
  37. }
  38. dprintf("\n");
  39. return S_OK;
  40. }