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.

253 lines
4.5 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. data.c
  5. Abstract:
  6. Data definitions for discardable/pageable data
  7. Author:
  8. Neil Sandlin (neilsa) Jan 1 2002
  9. Environment:
  10. Kernel mode
  11. Revision History :
  12. --*/
  13. #include "pch.h"
  14. #ifdef ALLOC_DATA_PRAGMA
  15. #pragma data_seg ("INIT")
  16. #endif
  17. //
  18. // Beginning of Init Data
  19. //
  20. //
  21. // Global registry values (in sdbus\\parameters)
  22. //
  23. #define SDBUS_REGISTRY_POWER_POLICY_VALUE L"PowerPolicy"
  24. #define SDBUS_REGISTRY_DEBUG_MASK L"DebugMask"
  25. #define SDBUS_REGISTRY_EVENT_DPC_DELAY L"EventDpcDelay"
  26. //
  27. // Table which defines global registry settings
  28. //
  29. // RegistryName Internal Variable Default Value
  30. // ------------ ----------------- -------------
  31. GLOBAL_REGISTRY_INFORMATION GlobalRegistryInfo[] = {
  32. #if DBG
  33. SDBUS_REGISTRY_DEBUG_MASK, &SdbusDebugMask, 1,
  34. #endif
  35. SDBUS_REGISTRY_POWER_POLICY_VALUE, &SdbusPowerPolicy, 0,
  36. SDBUS_REGISTRY_EVENT_DPC_DELAY, &EventDpcDelay, SDBUS_DEFAULT_EVENT_DPC_DELAY
  37. };
  38. ULONG GlobalInfoCount = sizeof(GlobalRegistryInfo) / sizeof(GLOBAL_REGISTRY_INFORMATION);
  39. //
  40. // end of Init Data
  41. //
  42. #ifdef ALLOC_DATA_PRAGMA
  43. #pragma data_seg ()
  44. #endif
  45. #ifdef ALLOC_DATA_PRAGMA
  46. #pragma data_seg()
  47. #endif
  48. //
  49. // Non-Paged global variables
  50. //
  51. //
  52. // List of FDOs managed by this driver
  53. //
  54. PDEVICE_OBJECT FdoList;
  55. //
  56. // GLobal Flags
  57. //
  58. ULONG SdbusGlobalFlags = 0;
  59. //
  60. // Event used by SdbusWait
  61. //
  62. KEVENT SdbusDelayTimerEvent;
  63. KSPIN_LOCK SdbusGlobalLock;
  64. ULONG EventDpcDelay;
  65. ULONG SdbusPowerPolicy;
  66. #if DBG
  67. ULONG SdbusDebugMask;
  68. #endif
  69. #ifdef ALLOC_DATA_PRAGMA
  70. #pragma data_seg("PAGE")
  71. #endif
  72. //
  73. // Paged const tables
  74. //
  75. const
  76. PCI_CONTROLLER_INFORMATION PciControllerInformation[] = {
  77. // Vendor id Device Id Controller type
  78. // -------------------------------------------------------------------------------
  79. // --------------------------------------------------------------------
  80. // Additional database entries go above this line
  81. //
  82. PCI_INVALID_VENDORID, 0, 0,
  83. };
  84. const
  85. PCI_VENDOR_INFORMATION PciVendorInformation[] = {
  86. PCI_TOSHIBA_VENDORID, &ToshibaSupportFns,
  87. PCI_INVALID_VENDORID, NULL
  88. };
  89. #ifdef ALLOC_DATA_PRAGMA
  90. #pragma data_seg()
  91. #endif
  92. //
  93. // Non-paged const tables
  94. //
  95. const
  96. UCHAR SdbusCmdResponse[MAX_SD_CMD] = {
  97. 0xFF, // 0 - 9
  98. 0xFF,
  99. SDCMD_RESP_2,
  100. SDCMD_RESP_6,
  101. 0xFF,
  102. SDCMD_RESP_4,
  103. 0xFF,
  104. SDCMD_RESP_1B,
  105. 0xFF,
  106. SDCMD_RESP_2,
  107. SDCMD_RESP_2, // 10 - 19
  108. 0xFF,
  109. SDCMD_RESP_1B,
  110. SDCMD_RESP_1,
  111. 0xFF,
  112. 0xFF,
  113. SDCMD_RESP_1,
  114. SDCMD_RESP_1,
  115. SDCMD_RESP_1,
  116. 0xFF,
  117. 0xFF, // 20 - 29
  118. 0xFF,
  119. 0xFF,
  120. 0xFF,
  121. SDCMD_RESP_1,
  122. SDCMD_RESP_1,
  123. 0xFF,
  124. SDCMD_RESP_1,
  125. SDCMD_RESP_1B,
  126. SDCMD_RESP_1B,
  127. SDCMD_RESP_1, // 30 - 39
  128. 0xFF,
  129. SDCMD_RESP_1,
  130. SDCMD_RESP_1,
  131. 0xFF,
  132. 0xFF,
  133. 0xFF,
  134. 0xFF,
  135. SDCMD_RESP_1B,
  136. 0xFF,
  137. 0xFF, // 40 - 49
  138. 0xFF,
  139. SDCMD_RESP_1,
  140. 0xFF,
  141. 0xFF,
  142. 0xFF,
  143. 0xFF,
  144. 0xFF,
  145. 0xFF,
  146. 0xFF,
  147. 0xFF, // 50 - 59
  148. 0xFF,
  149. SDCMD_RESP_5,
  150. SDCMD_RESP_5,
  151. 0xFF,
  152. SDCMD_RESP_1,
  153. SDCMD_RESP_1
  154. };
  155. const
  156. UCHAR SdbusACmdResponse[MAX_SD_ACMD] = {
  157. 0xFF, // 0 - 9
  158. 0xFF,
  159. 0xFF,
  160. 0xFF,
  161. 0xFF,
  162. 0xFF,
  163. SDCMD_RESP_1,
  164. 0xFF,
  165. 0xFF,
  166. 0xFF,
  167. 0xFF, // 10 - 19
  168. 0xFF,
  169. 0xFF,
  170. SDCMD_RESP_1,
  171. 0xFF,
  172. 0xFF,
  173. 0xFF,
  174. 0xFF,
  175. 0xFF,
  176. 0xFF,
  177. 0xFF, // 20 - 29
  178. 0xFF,
  179. SDCMD_RESP_1,
  180. SDCMD_RESP_1,
  181. 0xFF,
  182. 0xFF,
  183. 0xFF,
  184. 0xFF,
  185. 0xFF,
  186. 0xFF,
  187. 0xFF, // 30 - 39
  188. 0xFF,
  189. 0xFF,
  190. 0xFF,
  191. 0xFF,
  192. 0xFF,
  193. 0xFF,
  194. 0xFF,
  195. 0xFF,
  196. 0xFF,
  197. 0xFF, // 40 - 49
  198. SDCMD_RESP_3,
  199. SDCMD_RESP_1,
  200. 0xFF,
  201. 0xFF,
  202. 0xFF,
  203. 0xFF,
  204. 0xFF,
  205. 0xFF,
  206. 0xFF,
  207. 0xFF, // 50 - 59
  208. SDCMD_RESP_1
  209. };