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.

348 lines
7.9 KiB

  1. /*--------------------------------------------------------------------------
  2. *
  3. * Copyright (C) Cyclades Corporation, 1996-2000.
  4. * All rights reserved.
  5. *
  6. * Cyclom-Y Port Driver
  7. *
  8. * This file: cyylog.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 _CYYLOG_
  28. #define _CYYLOG_
  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: CYY_CCR_NOT_ZERO
  71. //
  72. // MessageText:
  73. //
  74. // CCR not zero.
  75. //
  76. #define CYY_CCR_NOT_ZERO ((NTSTATUS)0x80041000L)
  77. //
  78. // MessageId: CYY_UNABLE_TO_GET_BUS_TYPE
  79. //
  80. // MessageText:
  81. //
  82. // Unable to know if the Cyclom-Y card is ISA or PCI.
  83. //
  84. #define CYY_UNABLE_TO_GET_BUS_TYPE ((NTSTATUS)0xC0041001L)
  85. //
  86. // MessageId: CYY_UNABLE_TO_GET_BUS_NUMBER
  87. //
  88. // MessageText:
  89. //
  90. // Unable to get Cyclom-Y card PCI slot information.
  91. //
  92. #define CYY_UNABLE_TO_GET_BUS_NUMBER ((NTSTATUS)0xC0041002L)
  93. //
  94. // MessageId: CYY_UNABLE_TO_GET_HW_ID
  95. //
  96. // MessageText:
  97. //
  98. // Unable to get Hardware ID information.
  99. //
  100. #define CYY_UNABLE_TO_GET_HW_ID ((NTSTATUS)0xC0041003L)
  101. //
  102. // MessageId: CYY_NO_SYMLINK_CREATED
  103. //
  104. // MessageText:
  105. //
  106. // Unable to create the symbolic link for %2.
  107. //
  108. #define CYY_NO_SYMLINK_CREATED ((NTSTATUS)0x80041004L)
  109. //
  110. // MessageId: CYY_NO_DEVICE_MAP_CREATED
  111. //
  112. // MessageText:
  113. //
  114. // Unable to create the device map entry for %2.
  115. //
  116. #define CYY_NO_DEVICE_MAP_CREATED ((NTSTATUS)0x80041005L)
  117. //
  118. // MessageId: CYY_NO_DEVICE_MAP_DELETED
  119. //
  120. // MessageText:
  121. //
  122. // Unable to delete the device map entry for %2.
  123. //
  124. #define CYY_NO_DEVICE_MAP_DELETED ((NTSTATUS)0x80041006L)
  125. //
  126. // MessageId: CYY_UNREPORTED_IRQL_CONFLICT
  127. //
  128. // MessageText:
  129. //
  130. // Another driver on the system, which did not report its resources, has already claimed the interrupt used by %2.
  131. //
  132. #define CYY_UNREPORTED_IRQL_CONFLICT ((NTSTATUS)0xC0041007L)
  133. //
  134. // MessageId: CYY_INSUFFICIENT_RESOURCES
  135. //
  136. // MessageText:
  137. //
  138. // Not enough resources were available for the driver.
  139. //
  140. #define CYY_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0041008L)
  141. //
  142. // MessageId: CYY_BOARD_NOT_MAPPED
  143. //
  144. // MessageText:
  145. //
  146. // The Board Memory for %2 could not be translated to something the memory management system could understand.
  147. //
  148. #define CYY_BOARD_NOT_MAPPED ((NTSTATUS)0xC004100AL)
  149. //
  150. // MessageId: CYY_RUNTIME_NOT_MAPPED
  151. //
  152. // MessageText:
  153. //
  154. // The Runtime Registers for %2 could not be translated to something the memory management system could understand.
  155. //
  156. #define CYY_RUNTIME_NOT_MAPPED ((NTSTATUS)0xC004100BL)
  157. //
  158. // MessageId: CYY_INVALID_RUNTIME_REGISTERS
  159. //
  160. // MessageText:
  161. //
  162. // Invalid Runtime Registers base address for %2.
  163. //
  164. #define CYY_INVALID_RUNTIME_REGISTERS ((NTSTATUS)0xC0041010L)
  165. //
  166. // MessageId: CYY_INVALID_BOARD_MEMORY
  167. //
  168. // MessageText:
  169. //
  170. // Invalid Board Memory address for %2.
  171. //
  172. #define CYY_INVALID_BOARD_MEMORY ((NTSTATUS)0xC0041011L)
  173. //
  174. // MessageId: CYY_INVALID_INTERRUPT
  175. //
  176. // MessageText:
  177. //
  178. // Invalid Interrupt Vector for %2.
  179. //
  180. #define CYY_INVALID_INTERRUPT ((NTSTATUS)0xC0041012L)
  181. //
  182. // MessageId: CYY_PORT_INDEX_TOO_HIGH
  183. //
  184. // MessageText:
  185. //
  186. // Port Number for %2 is larger than the maximum number of ports in a cyclom-y card.
  187. //
  188. #define CYY_PORT_INDEX_TOO_HIGH ((NTSTATUS)0xC0041015L)
  189. //
  190. // MessageId: CYY_UNKNOWN_BUS
  191. //
  192. // MessageText:
  193. //
  194. // The bus type for %2 is not recognizable.
  195. //
  196. #define CYY_UNKNOWN_BUS ((NTSTATUS)0xC0041016L)
  197. //
  198. // MessageId: CYY_BUS_NOT_PRESENT
  199. //
  200. // MessageText:
  201. //
  202. // The bus type for %2 is not available on this computer.
  203. //
  204. #define CYY_BUS_NOT_PRESENT ((NTSTATUS)0xC0041017L)
  205. //
  206. // MessageId: CYY_RUNTIME_MEMORY_TOO_HIGH
  207. //
  208. // MessageText:
  209. //
  210. // The Runtime Registers for %2 is way too high in physical memory.
  211. //
  212. #define CYY_RUNTIME_MEMORY_TOO_HIGH ((NTSTATUS)0xC004101AL)
  213. //
  214. // MessageId: CYY_BOARD_MEMORY_TOO_HIGH
  215. //
  216. // MessageText:
  217. //
  218. // The Board Memory for %2 is way too high in physical memory.
  219. //
  220. #define CYY_BOARD_MEMORY_TOO_HIGH ((NTSTATUS)0xC004101BL)
  221. //
  222. // MessageId: CYY_BOTH_MEMORY_CONFLICT
  223. //
  224. // MessageText:
  225. //
  226. // The Runtime Registers for %2 overlaps the Board Memory for the device.
  227. //
  228. #define CYY_BOTH_MEMORY_CONFLICT ((NTSTATUS)0xC004101CL)
  229. //
  230. // MessageId: CYY_MULTI_INTERRUPT_CONFLICT
  231. //
  232. // MessageText:
  233. //
  234. // Two ports, %2 and %3, on a single cyclom-y card can't have two different interrupts.
  235. //
  236. #define CYY_MULTI_INTERRUPT_CONFLICT ((NTSTATUS)0xC0041021L)
  237. //
  238. // MessageId: CYY_MULTI_RUNTIME_CONFLICT
  239. //
  240. // MessageText:
  241. //
  242. // Two ports, %2 and %3, on a single cyclom-y card can't have two different Runtime Registers memory range.
  243. //
  244. #define CYY_MULTI_RUNTIME_CONFLICT ((NTSTATUS)0xC0041022L)
  245. //
  246. // MessageId: CYY_HARDWARE_FAILURE
  247. //
  248. // MessageText:
  249. //
  250. // The cyyport driver detected a hardware failure on device %2 and will disable this device.
  251. //
  252. #define CYY_HARDWARE_FAILURE ((NTSTATUS)0xC004102DL)
  253. //
  254. // MessageId: CYY_GFRCR_FAILURE
  255. //
  256. // MessageText:
  257. //
  258. // CD1400 not present or failure to read GFRCR register for %2.
  259. //
  260. #define CYY_GFRCR_FAILURE ((NTSTATUS)0xC0041030L)
  261. //
  262. // MessageId: CYY_CCR_FAILURE
  263. //
  264. // MessageText:
  265. //
  266. // Failure to read CCR register in the CD1400 for %2.
  267. //
  268. #define CYY_CCR_FAILURE ((NTSTATUS)0xC0041031L)
  269. //
  270. // MessageId: CYY_BAD_CD1400_REVISION
  271. //
  272. // MessageText:
  273. //
  274. // Invalid CD1400 revision number for %2.
  275. //
  276. #define CYY_BAD_CD1400_REVISION ((NTSTATUS)0xC0041032L)
  277. //
  278. // MessageId: CYY_DEVICE_CREATION_FAILURE
  279. //
  280. // MessageText:
  281. //
  282. // Failure to create new device object.
  283. //
  284. #define CYY_DEVICE_CREATION_FAILURE ((NTSTATUS)0xC0041033L)
  285. //
  286. // MessageId: CYY_NO_PHYSICAL_DEVICE_OBJECT
  287. //
  288. // MessageText:
  289. //
  290. // No physical device object.
  291. //
  292. #define CYY_NO_PHYSICAL_DEVICE_OBJECT ((NTSTATUS)0xC0041034L)
  293. //
  294. // MessageId: CYY_BAD_HW_ID
  295. //
  296. // MessageText:
  297. //
  298. // Invalid Hardware ID.
  299. //
  300. #define CYY_BAD_HW_ID ((NTSTATUS)0xC0041035L)
  301. //
  302. // MessageId: CYY_LOWER_DRIVERS_FAILED_START
  303. //
  304. // MessageText:
  305. //
  306. // Lower drivers failed to start.
  307. //
  308. #define CYY_LOWER_DRIVERS_FAILED_START ((NTSTATUS)0xC0041036L)
  309. #endif /* _CYYLOG_ */