Source code of Windows XP (NT5)
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.

99 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1997-1998 Microsoft Corporation, All Rights Reserved
  3. Copyright (c) 1993 Logitech Inc.
  4. Module Name:
  5. debug.h
  6. Abstract:
  7. Debugging support.
  8. Environment:
  9. Kernel mode only.
  10. Notes:
  11. Revision History:
  12. --*/
  13. #ifndef DEBUG_H
  14. #define DEBUG_H
  15. #if DBG
  16. #define DEFAULT_DEBUG_FLAGS 0x88880808
  17. #define DBG_ALWAYS 0x00000000
  18. #define DBG_STARTUP_SHUTDOWN_MASK 0x0000000F
  19. #define DBG_SS_NOISE 0x00000001
  20. #define DBG_SS_TRACE 0x00000002
  21. #define DBG_SS_INFO 0x00000004
  22. #define DBG_SS_ERROR 0x00000008
  23. #define DBG_HANDLER_MASK 0x000000F0
  24. #define DBG_HANDLER_NOISE 0x00000010
  25. #define DBG_HANDLER_TRACE 0x00000020
  26. #define DBG_HANDLER_INFO 0x00000040
  27. #define DBG_HANDLER_ERROR 0x00000080
  28. #define DBG_IOCTL_MASK 0x00000F00
  29. #define DBG_IOCTL_NOISE 0x00000100
  30. #define DBG_IOCTL_TRACE 0x00000200
  31. #define DBG_IOCTL_INFO 0x00000400
  32. #define DBG_IOCTL_ERROR 0x00000800
  33. #define DBG_UART_MASK 0x0000F000
  34. #define DBG_UART_NOISE 0x00001000
  35. #define DBG_UART_TRACE 0x00002000
  36. #define DBG_UART_INFO 0x00004000
  37. #define DBG_UART_ERROR 0x00008000
  38. #define DBG_CC_MASK 0x000F0000
  39. #define DBG_CC_NOISE 0x00010000
  40. #define DBG_CC_TRACE 0x00020000
  41. #define DBG_CC_INFO 0x00040000
  42. #define DBG_CC_ERROR 0x00080000
  43. #define DBG_POWER_MASK 0x00F00000
  44. #define DBG_POWER_NOISE 0x00100000
  45. #define DBG_POWER_TRACE 0x00200000
  46. #define DBG_POWER_INFO 0x00400000
  47. #define DBG_POWER_ERROR 0x00800000
  48. #define DBG_PNP_MASK 0x0F000000
  49. #define DBG_PNP_NOISE 0x01000000
  50. #define DBG_PNP_TRACE 0x02000000
  51. #define DBG_PNP_INFO 0x04000000
  52. #define DBG_PNP_ERROR 0x08000000
  53. #define DBG_READ_MASK 0xF0000000
  54. #define DBG_READ_NOISE 0x10000000
  55. #define DBG_READ_TRACE 0x20000000
  56. #define DBG_READ_INFO 0x40000000
  57. #define DBG_READ_ERROR 0x80000000
  58. #define Print(_ext_, _flags_, _x_) \
  59. if ((_ext_)->DebugFlags & (_flags_) || !(_flags_)) { \
  60. DbgPrint ("sermouse: "); \
  61. DbgPrint _x_; \
  62. }
  63. #define TRAP() DbgBreakPoint()
  64. #else // MOUSER_VERBOSE
  65. #define DEFAULT_DEBUG_FLAGS 0x0
  66. #define Print(_e_,_l_,_x_)
  67. #define TRAP()
  68. #endif // DBG
  69. #endif // DEBUG_H