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.

79 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. :ts=4
  4. Module Name:
  5. log.h
  6. Abstract:
  7. debug macros
  8. Environment:
  9. Kernel & user mode
  10. Revision History:
  11. 10-27-95 : created
  12. --*/
  13. #ifndef __LOG_H__
  14. #define __LOG_H__
  15. //-----------------
  16. // FANNY_DEBUG #defines
  17. #define ZSIG_OPEN 0x4F000000 // O
  18. #define ZSIG_CLOSE 0x43000000 // C
  19. //#define ZSIG_HANDSHAKE_SET 0x48000000 // H
  20. #define ZSIG_PURGE 0x50000000 // P
  21. #define ZSIG_HANDLE_REDUCED_BUFFER 0x52000000 // R
  22. #define ZSIG_WRITE 0x57000000 // W
  23. //#define ZSIG_START_WRITE 0x57010000 // W
  24. //#define ZSIG_GIVE_WRITE_TO_ISR 0x57020000 // W
  25. //#define ZSIG_TX_START 0x57030000 // W
  26. //#define ZSIG_WRITE_TO_FW 0x57040000 // W
  27. //#define ZSIG_WRITE_COMPLETE_QUEUE 0x57080000 // W
  28. //#define ZSIG_WRITE_COMPLETE 0x57090000 // W
  29. #define ZSIG_TRANSMIT 0x54000000 // T
  30. //-----------------
  31. #define LOG_MISC 0x00000001 //debug log entries
  32. #define LOG_CNT 0x00000002
  33. //
  34. // Assert Macros
  35. //
  36. #if DBG
  37. ULONG
  38. CyzDbgPrintEx(IN ULONG Level, PCHAR Format, ...);
  39. #define LOGENTRY(mask, sig, info1, info2, info3) \
  40. SerialDebugLogEntry(mask, sig, (ULONG_PTR)info1, \
  41. (ULONG_PTR)info2, \
  42. (ULONG_PTR)info3)
  43. VOID
  44. SerialDebugLogEntry(IN ULONG Mask, IN ULONG Sig, IN ULONG_PTR Info1,
  45. IN ULONG_PTR Info2, IN ULONG_PTR Info3);
  46. VOID
  47. SerialLogInit();
  48. VOID
  49. SerialLogFree();
  50. #else
  51. #define LOGENTRY(mask, sig, info1, info2, info3)
  52. __inline ULONG CyzDbgPrintEx(IN ULONG Level, PCHAR Format, ...) { return 0; }
  53. #endif
  54. #endif // __LOG_H__