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.

140 lines
3.5 KiB

  1. //**************************************************************************
  2. //
  3. // Title : Includes.h
  4. //
  5. // Date : 1997.06.26 1st making
  6. //
  7. // Author : Toshiba [PCS](PSY) Hideki Yagi
  8. //
  9. // Copyright 1997 Toshiba Corporation. All Rights Reserved.
  10. //
  11. // -------------------------------------------------------------------------
  12. //
  13. // Change log :
  14. //
  15. // Date Revision Description
  16. // ------------ ---------- -----------------------------------------------
  17. // 1997.06.26 000.0000 1st making.
  18. // 1997.11.28 000.1000 Modifyed for Memphis WDM mini driver.
  19. //
  20. //**************************************************************************
  21. //
  22. // This pragma is need to compile at warning level 4
  23. #pragma warning(disable:4214 4201 4115 4200 4100 4514 4057 4127 4702 4710)
  24. extern "C"
  25. {
  26. //#include "wdmwarn4.h"
  27. #include "strmini.h"
  28. #include "ks.h"
  29. #include "wdm.h"
  30. }
  31. #include "ksmedia.h"
  32. #define PURE =0
  33. #define TVALD 1 //K.O 990819
  34. // 1998.6.11 seichan
  35. // HAL�̃p���[�`�F�b�N���t���O�ɂ����čs���悤�ɂ���
  36. #define POWERCHECK_BY_FLAG
  37. // K.Ishizaki
  38. // Redefine debug routines
  39. #if DBG
  40. #ifdef DBG_CTRL
  41. BOOLEAN Dbg_Printf_Enable = FALSE;
  42. BOOLEAN Dbg_Break_Enable = FALSE;
  43. DWORD Dbg_Print_Level = 0;
  44. DWORD Dbg_Print_Flags = 0;
  45. #ifndef TVALD
  46. BOOLEAN Dbg_Tvald = FALSE;
  47. #endif
  48. #else
  49. extern BOOLEAN Dbg_Printf_Enable;
  50. extern BOOLEAN Dbg_Break_Enable;
  51. extern DWORD Dbg_Print_Level;
  52. extern DWORD Dbg_Print_Flags;
  53. #ifndef TVALD
  54. extern BOOLEAN Dbg_Tvald;
  55. #endif
  56. #endif
  57. #define DBG_PRINTF(a) \
  58. do { \
  59. if (Dbg_Printf_Enable) { \
  60. DbgPrint##a ; \
  61. } \
  62. } while (0)
  63. #define DBG_BREAK() \
  64. do { \
  65. if (Dbg_Break_Enable) { \
  66. { __asm int 3 } \
  67. } \
  68. } while (0)
  69. #define DBG_HAL 0x00000001
  70. #define DBG_HAL_STREAM 0x00000002
  71. #define DBG_BOARD 0x00000100
  72. #define DBG_STREAM 0x00000200
  73. #define DBG_TRANSFER 0x00000400
  74. #define DBG_STATE 0x00000800
  75. #define DBG_CLASS_OTHER 0x00001000
  76. #define DBG_WRAPPER 0x00010000
  77. #define DBG_WRP_DATA 0x00020000
  78. #define DBG_WRP_CTRL 0x00040000
  79. #define DBG_SCHD 0x00080000
  80. #define DBG_EVENT 0x00100000
  81. #define DBG_TMP0 0x01000000
  82. #define DBG_TMP1 0x02000000
  83. #define DBG_TMP2 0x04000000
  84. #define DBG_TMP3 0x08000000
  85. #define DvdDebug(f, l, m) \
  86. do { \
  87. if ((Dbg_Print_Flags & f) && (l <= Dbg_Print_Level)) { \
  88. DbgPrint##m ; \
  89. } \
  90. } while (0)
  91. #else
  92. #ifdef DBG_CTRL
  93. BOOLEAN Dbg_Printf_Enable = FALSE;
  94. BOOLEAN Dbg_Break_Enable = FALSE;
  95. DWORD Dbg_Print_Level = 0;
  96. DWORD Dbg_Print_Flags = 0;
  97. #ifndef TVALD
  98. BOOLEAN Dbg_Tvald = FALSE;
  99. #endif
  100. #else
  101. extern BOOLEAN Dbg_Printf_Enable;
  102. extern BOOLEAN Dbg_Break_Enable;
  103. extern DWORD Dbg_Print_Level;
  104. extern DWORD Dbg_Print_Flags;
  105. #ifndef TVALD
  106. extern BOOLEAN Dbg_Tvald;
  107. #endif
  108. #endif
  109. #define DBG_PRINTF(a) do { ; } while (0)
  110. #define DBG_BREAK() do { ; } while (0)
  111. #define DvdDebug(f, l, m) do { ; } while (0)
  112. #endif
  113. #include "crtdbg.h"
  114. #include "toollib.h"
  115. #include "halif.h"
  116. #include "clibif.h"
  117. #define PC_TECRA750 0x0000
  118. #define PC_TECRA780 0x0001
  119. #define PC_TECRA8000 0x0002
  120. #define PC_PORTEGE7000 0x0003