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.

393 lines
9.2 KiB

  1. /*--------------------------------------------------------------------------
  2. *
  3. * Copyright (C) Cyclades Corporation, 1997-2000.
  4. * All rights reserved.
  5. *
  6. * Cyclades-Z Port Driver
  7. *
  8. * This file: cyzlog.mc
  9. *
  10. * Description: Messages that goes to the eventlog.
  11. *
  12. * Notes: This code supports Windows 2000 and i386 processor.
  13. *
  14. * Complies with Cyclades SW Coding Standard rev 1.3.
  15. *
  16. *--------------------------------------------------------------------------
  17. */
  18. /*-------------------------------------------------------------------------
  19. *
  20. * Change History
  21. *
  22. *--------------------------------------------------------------------------
  23. *
  24. *
  25. *--------------------------------------------------------------------------
  26. */
  27. #ifndef _CYZLOG_
  28. #define _CYZLOG_
  29. //
  30. // Values are 32 bit values layed out as follows:
  31. //
  32. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  33. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  34. // +---+-+-+-----------------------+-------------------------------+
  35. // |Sev|C|R| Facility | Code |
  36. // +---+-+-+-----------------------+-------------------------------+
  37. //
  38. // where
  39. //
  40. // Sev - is the severity code
  41. //
  42. // 00 - Success
  43. // 01 - Informational
  44. // 10 - Warning
  45. // 11 - Error
  46. //
  47. // C - is the Customer code flag
  48. //
  49. // R - is a reserved bit
  50. //
  51. // Facility - is the facility code
  52. //
  53. // Code - is the facility's status code
  54. //
  55. //
  56. // Define the facility codes
  57. //
  58. #define FACILITY_SERIAL_ERROR_CODE 0x6
  59. #define FACILITY_RPC_STUBS 0x3
  60. #define FACILITY_RPC_RUNTIME 0x2
  61. #define FACILITY_IO_ERROR_CODE 0x4
  62. //
  63. // Define the severity codes
  64. //
  65. #define STATUS_SEVERITY_WARNING 0x2
  66. #define STATUS_SEVERITY_SUCCESS 0x0
  67. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  68. #define STATUS_SEVERITY_ERROR 0x3
  69. //
  70. // MessageId: CYZ_COMMAND_FAILURE
  71. //
  72. // MessageText:
  73. //
  74. // Cyclades-Z Command Failure.
  75. //
  76. #define CYZ_COMMAND_FAILURE ((NTSTATUS)0x80041000L)
  77. //
  78. // MessageId: CYZ_UNABLE_TO_GET_BUS_NUMBER
  79. //
  80. // MessageText:
  81. //
  82. // Unable to get Cyclades-Z card PCI slot information.
  83. //
  84. #define CYZ_UNABLE_TO_GET_BUS_NUMBER ((NTSTATUS)0xC0041002L)
  85. //
  86. // MessageId: CYZ_UNABLE_TO_GET_HW_ID
  87. //
  88. // MessageText:
  89. //
  90. // Unable to get Hardware ID information.
  91. //
  92. #define CYZ_UNABLE_TO_GET_HW_ID ((NTSTATUS)0xC0041003L)
  93. //
  94. // MessageId: CYZ_NO_SYMLINK_CREATED
  95. //
  96. // MessageText:
  97. //
  98. // Unable to create the symbolic link for %2.
  99. //
  100. #define CYZ_NO_SYMLINK_CREATED ((NTSTATUS)0x80041004L)
  101. //
  102. // MessageId: CYZ_NO_DEVICE_MAP_CREATED
  103. //
  104. // MessageText:
  105. //
  106. // Unable to create the device map entry for %2.
  107. //
  108. #define CYZ_NO_DEVICE_MAP_CREATED ((NTSTATUS)0x80041005L)
  109. //
  110. // MessageId: CYZ_NO_DEVICE_MAP_DELETED
  111. //
  112. // MessageText:
  113. //
  114. // Unable to delete the device map entry for %2.
  115. //
  116. #define CYZ_NO_DEVICE_MAP_DELETED ((NTSTATUS)0x80041006L)
  117. //
  118. // MessageId: CYZ_UNREPORTED_IRQL_CONFLICT
  119. //
  120. // MessageText:
  121. //
  122. // Another driver on the system, which did not report its resources, has already claimed the interrupt used by %2.
  123. //
  124. #define CYZ_UNREPORTED_IRQL_CONFLICT ((NTSTATUS)0xC0041007L)
  125. //
  126. // MessageId: CYZ_INSUFFICIENT_RESOURCES
  127. //
  128. // MessageText:
  129. //
  130. // Not enough resources were available for the driver.
  131. //
  132. #define CYZ_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0041008L)
  133. //
  134. // MessageId: CYZ_BOARD_NOT_MAPPED
  135. //
  136. // MessageText:
  137. //
  138. // The Board Memory for %2 could not be translated to something the memory management system could understand.
  139. //
  140. #define CYZ_BOARD_NOT_MAPPED ((NTSTATUS)0xC004100AL)
  141. //
  142. // MessageId: CYZ_RUNTIME_NOT_MAPPED
  143. //
  144. // MessageText:
  145. //
  146. // The Runtime Registers for %2 could not be translated to something the memory management system could understand.
  147. //
  148. #define CYZ_RUNTIME_NOT_MAPPED ((NTSTATUS)0xC004100BL)
  149. //
  150. // MessageId: CYZ_INVALID_RUNTIME_REGISTERS
  151. //
  152. // MessageText:
  153. //
  154. // Invalid Runtime Registers base address for %2.
  155. //
  156. #define CYZ_INVALID_RUNTIME_REGISTERS ((NTSTATUS)0xC0041010L)
  157. //
  158. // MessageId: CYZ_INVALID_BOARD_MEMORY
  159. //
  160. // MessageText:
  161. //
  162. // Invalid Board Memory address for %2.
  163. //
  164. #define CYZ_INVALID_BOARD_MEMORY ((NTSTATUS)0xC0041011L)
  165. //
  166. // MessageId: CYZ_INVALID_INTERRUPT
  167. //
  168. // MessageText:
  169. //
  170. // Invalid Interrupt Vector for %2.
  171. //
  172. #define CYZ_INVALID_INTERRUPT ((NTSTATUS)0xC0041012L)
  173. //
  174. // MessageId: CYZ_PORT_INDEX_TOO_HIGH
  175. //
  176. // MessageText:
  177. //
  178. // Port Number for %2 is larger than the maximum number of ports in a cyclades-z card.
  179. //
  180. #define CYZ_PORT_INDEX_TOO_HIGH ((NTSTATUS)0xC0041015L)
  181. //
  182. // MessageId: CYZ_UNKNOWN_BUS
  183. //
  184. // MessageText:
  185. //
  186. // The bus type for %2 is not recognizable.
  187. //
  188. #define CYZ_UNKNOWN_BUS ((NTSTATUS)0xC0041016L)
  189. //
  190. // MessageId: CYZ_BUS_NOT_PRESENT
  191. //
  192. // MessageText:
  193. //
  194. // The bus type for %2 is not available on this computer.
  195. //
  196. #define CYZ_BUS_NOT_PRESENT ((NTSTATUS)0xC0041017L)
  197. //
  198. // MessageId: CYZ_RUNTIME_MEMORY_TOO_HIGH
  199. //
  200. // MessageText:
  201. //
  202. // The Runtime Registers for %2 is way too high in physical memory.
  203. //
  204. #define CYZ_RUNTIME_MEMORY_TOO_HIGH ((NTSTATUS)0xC004101AL)
  205. //
  206. // MessageId: CYZ_BOARD_MEMORY_TOO_HIGH
  207. //
  208. // MessageText:
  209. //
  210. // The Board Memory for %2 is way too high in physical memory.
  211. //
  212. #define CYZ_BOARD_MEMORY_TOO_HIGH ((NTSTATUS)0xC004101BL)
  213. //
  214. // MessageId: CYZ_BOTH_MEMORY_CONFLICT
  215. //
  216. // MessageText:
  217. //
  218. // The Runtime Registers for %2 overlaps the Board Memory for the device.
  219. //
  220. #define CYZ_BOTH_MEMORY_CONFLICT ((NTSTATUS)0xC004101CL)
  221. //
  222. // MessageId: CYZ_MULTI_INTERRUPT_CONFLICT
  223. //
  224. // MessageText:
  225. //
  226. // Two ports, %2 and %3, on a single cyclades-z card can't have two different interrupts.
  227. //
  228. #define CYZ_MULTI_INTERRUPT_CONFLICT ((NTSTATUS)0xC0041021L)
  229. //
  230. // MessageId: CYZ_MULTI_RUNTIME_CONFLICT
  231. //
  232. // MessageText:
  233. //
  234. // Two ports, %2 and %3, on a single cyclades-z card can't have two different Runtime Registers memory range.
  235. //
  236. #define CYZ_MULTI_RUNTIME_CONFLICT ((NTSTATUS)0xC0041022L)
  237. //
  238. // MessageId: CYZ_HARDWARE_FAILURE
  239. //
  240. // MessageText:
  241. //
  242. // The cyzport driver detected a hardware failure on device %2 and will disable this device.
  243. //
  244. #define CYZ_HARDWARE_FAILURE ((NTSTATUS)0xC004102DL)
  245. //
  246. // MessageId: CYZ_FIRMWARE_CMDERROR
  247. //
  248. // MessageText:
  249. //
  250. // Firmware received invalid command.
  251. //
  252. #define CYZ_FIRMWARE_CMDERROR ((NTSTATUS)0xC0041030L)
  253. //
  254. // MessageId: CYZ_FIRMWARE_FATAL
  255. //
  256. // MessageText:
  257. //
  258. // Firmware found fatal error.
  259. //
  260. #define CYZ_FIRMWARE_FATAL ((NTSTATUS)0xC0041031L)
  261. //
  262. // MessageId: CYZ_DEVICE_CREATION_FAILURE
  263. //
  264. // MessageText:
  265. //
  266. // Failure to create new device object.
  267. //
  268. #define CYZ_DEVICE_CREATION_FAILURE ((NTSTATUS)0xC0041033L)
  269. //
  270. // MessageId: CYZ_NO_PHYSICAL_DEVICE_OBJECT
  271. //
  272. // MessageText:
  273. //
  274. // No physical device object.
  275. //
  276. #define CYZ_NO_PHYSICAL_DEVICE_OBJECT ((NTSTATUS)0xC0041034L)
  277. //
  278. // MessageId: CYZ_LOWER_DRIVERS_FAILED_START
  279. //
  280. // MessageText:
  281. //
  282. // Lower drivers failed to start.
  283. //
  284. #define CYZ_LOWER_DRIVERS_FAILED_START ((NTSTATUS)0xC0041035L)
  285. //
  286. // MessageId: CYZ_INCOMPATIBLE_FIRMWARE
  287. //
  288. // MessageText:
  289. //
  290. // This cyzport driver requires zlogic.cyz version %2 or above.
  291. //
  292. #define CYZ_INCOMPATIBLE_FIRMWARE ((NTSTATUS)0xC0041036L)
  293. //
  294. // MessageId: CYZ_BOARD_CTRL_NOT_MAPPED
  295. //
  296. // MessageText:
  297. //
  298. // The Board Memory BoardCtrl for %2 could not be translated to something the memory management system could understand.
  299. //
  300. #define CYZ_BOARD_CTRL_NOT_MAPPED ((NTSTATUS)0xC0041037L)
  301. //
  302. // MessageId: CYZ_CH_CTRL_NOT_MAPPED
  303. //
  304. // MessageText:
  305. //
  306. // The Board Memory ChCtrl for %2 could not be translated to something the memory management system could understand.
  307. //
  308. #define CYZ_CH_CTRL_NOT_MAPPED ((NTSTATUS)0xC0041038L)
  309. //
  310. // MessageId: CYZ_BUF_CTRL_NOT_MAPPED
  311. //
  312. // MessageText:
  313. //
  314. // The Board Memory BufCtrl for %2 could not be translated to something the memory management system could understand.
  315. //
  316. #define CYZ_BUF_CTRL_NOT_MAPPED ((NTSTATUS)0xC0041039L)
  317. //
  318. // MessageId: CYZ_TX_BUF_NOT_MAPPED
  319. //
  320. // MessageText:
  321. //
  322. // The Board Memory TxBuf for %2 could not be translated to something the memory management system could understand.
  323. //
  324. #define CYZ_TX_BUF_NOT_MAPPED ((NTSTATUS)0xC004103AL)
  325. //
  326. // MessageId: CYZ_RX_BUF_NOT_MAPPED
  327. //
  328. // MessageText:
  329. //
  330. // The Board Memory RxBuf for %2 could not be translated to something the memory management system could understand.
  331. //
  332. #define CYZ_RX_BUF_NOT_MAPPED ((NTSTATUS)0xC004103BL)
  333. //
  334. // MessageId: CYZ_INT_QUEUE_NOT_MAPPED
  335. //
  336. // MessageText:
  337. //
  338. // The Board Memory IntQueue for %2 could not be translated to something the memory management system could understand.
  339. //
  340. #define CYZ_INT_QUEUE_NOT_MAPPED ((NTSTATUS)0xC004103CL)
  341. //
  342. // MessageId: CYZ_BAD_HW_ID
  343. //
  344. // MessageText:
  345. //
  346. // Invalid Hardware ID.
  347. //
  348. #define CYZ_BAD_HW_ID ((NTSTATUS)0xC004103DL)
  349. #endif /* _CYZLOG_ */