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.

103 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. This module contains the enumerated for the ACPI driver, NT version
  7. Author:
  8. Stephane Plante (splante)
  9. Environment:
  10. NT Kernel Model Driver only
  11. --*/
  12. #ifndef _DEBUG_H_
  13. #define _DEBUG_H_
  14. //
  15. // These are the file indexes for when someone calls ACPIInternalError
  16. // They merely specifiy which file and which line of code the driver
  17. // died in. They are a strict result of inconsistencies in the ACPI
  18. // driver, which happen is someone really confuses it.
  19. //
  20. #define ACPI_DISPATCH 0x0001
  21. #define ACPI_CALLBACK 0x0002
  22. #define ACPI_AMLISUPP 0x0003
  23. #define ACPI_DETECT 0x0004
  24. #define ACPI_IRQARB 0x0005
  25. #define ACPI_GET 0x0006
  26. #define ACPI_THERMAL 0x0007
  27. #define ACPI_RANGESUP 0x0008
  28. #define ACPI_INTERNAL 0x0009
  29. #define ACPI_BUS 0x000A
  30. #define ACPI_SYSPOWER 0x000B
  31. #define ACPI_DEVPOWER 0x000C
  32. #define ACPI_ROOT 0x000D
  33. #define ACPI_WORKER 0x000E
  34. #define ACPI_CANNOT_HANDLE_LOW_MEMORY 0x000F // BUGBUG - code that calls this should be fixed and this code then removed.
  35. #define ACPIInternalError(a) _ACPIInternalError( (a << 16) | __LINE__ )
  36. VOID
  37. _ACPIInternalError(
  38. IN ULONG Bugcode
  39. );
  40. #if DBG
  41. VOID
  42. ACPIDebugResourceDescriptor(
  43. IN PIO_RESOURCE_DESCRIPTOR Descriptor,
  44. IN ULONG ListCount,
  45. IN ULONG DescCount
  46. );
  47. VOID
  48. ACPIDebugResourceList(
  49. IN PIO_RESOURCE_LIST List,
  50. IN ULONG Count
  51. );
  52. VOID
  53. ACPIDebugResourceRequirementsList(
  54. IN PIO_RESOURCE_REQUIREMENTS_LIST List,
  55. IN PDEVICE_EXTENSION DeviceExtension
  56. );
  57. VOID
  58. ACPIDebugCmResourceList(
  59. IN PCM_RESOURCE_LIST List,
  60. IN PDEVICE_EXTENSION DeviceExtension
  61. );
  62. PCCHAR
  63. ACPIDebugGetIrpText(
  64. UCHAR MajorFunction,
  65. UCHAR MinorFunction
  66. );
  67. VOID
  68. ACPIDebugDeviceCapabilities(
  69. IN PDEVICE_EXTENSION DeviceExtension,
  70. IN PDEVICE_CAPABILITIES DeviceCapabilities,
  71. IN PUCHAR Message
  72. );
  73. VOID
  74. ACPIDebugPowerCapabilities(
  75. IN PDEVICE_EXTENSION DeviceExtension,
  76. IN PUCHAR Message
  77. );
  78. #endif
  79. #endif