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.

231 lines
5.2 KiB

  1. /*--------------------------------------------------------------------------
  2. *
  3. * Copyright (C) Cyclades Corporation, 1996-2000.
  4. * All rights reserved.
  5. *
  6. * Cyclom-Y Enumerator Driver
  7. *
  8. * This file: log.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_INSUFFICIENT_RESOURCES
  71. //
  72. // MessageText:
  73. //
  74. // Not enough resources were available for the driver.
  75. //
  76. #define CYY_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0041000L)
  77. //
  78. // MessageId: CYY_BOARD_NOT_MAPPED
  79. //
  80. // MessageText:
  81. //
  82. // The Board Memory could not be translated to something the memory management system could understand.
  83. //
  84. #define CYY_BOARD_NOT_MAPPED ((NTSTATUS)0xC0041001L)
  85. //
  86. // MessageId: CYY_RUNTIME_NOT_MAPPED
  87. //
  88. // MessageText:
  89. //
  90. // The Runtime Registers could not be translated to something the memory management system could understand.
  91. //
  92. #define CYY_RUNTIME_NOT_MAPPED ((NTSTATUS)0xC0041002L)
  93. //
  94. // MessageId: CYY_INVALID_RUNTIME_REGISTERS
  95. //
  96. // MessageText:
  97. //
  98. // Invalid Runtime Registers base address.
  99. //
  100. #define CYY_INVALID_RUNTIME_REGISTERS ((NTSTATUS)0xC0041003L)
  101. //
  102. // MessageId: CYY_INVALID_BOARD_MEMORY
  103. //
  104. // MessageText:
  105. //
  106. // Invalid Board Memory address.
  107. //
  108. #define CYY_INVALID_BOARD_MEMORY ((NTSTATUS)0xC0041004L)
  109. //
  110. // MessageId: CYY_INVALID_INTERRUPT
  111. //
  112. // MessageText:
  113. //
  114. // Invalid Interrupt Vector.
  115. //
  116. #define CYY_INVALID_INTERRUPT ((NTSTATUS)0xC0041005L)
  117. //
  118. // MessageId: CYY_UNKNOWN_BUS
  119. //
  120. // MessageText:
  121. //
  122. // The bus type is not recognizable.
  123. //
  124. #define CYY_UNKNOWN_BUS ((NTSTATUS)0xC0041006L)
  125. //
  126. // MessageId: CYY_BUS_NOT_PRESENT
  127. //
  128. // MessageText:
  129. //
  130. // The bus type is not available on this computer.
  131. //
  132. #define CYY_BUS_NOT_PRESENT ((NTSTATUS)0xC0041007L)
  133. //
  134. // MessageId: CYY_GFRCR_FAILURE
  135. //
  136. // MessageText:
  137. //
  138. // CD1400 not present or failure to read GFRCR register.
  139. //
  140. #define CYY_GFRCR_FAILURE ((NTSTATUS)0xC0041008L)
  141. //
  142. // MessageId: CYY_CCR_FAILURE
  143. //
  144. // MessageText:
  145. //
  146. // Failure to read CCR register in the CD1400.
  147. //
  148. #define CYY_CCR_FAILURE ((NTSTATUS)0xC0041009L)
  149. //
  150. // MessageId: CYY_BAD_CD1400_REVISION
  151. //
  152. // MessageText:
  153. //
  154. // Invalid CD1400 revision number.
  155. //
  156. #define CYY_BAD_CD1400_REVISION ((NTSTATUS)0xC004100AL)
  157. //
  158. // MessageId: CYY_NO_HW_RESOURCES
  159. //
  160. // MessageText:
  161. //
  162. // No hardware resources available.
  163. //
  164. #define CYY_NO_HW_RESOURCES ((NTSTATUS)0xC004100BL)
  165. //
  166. // MessageId: CYY_DEVICE_CREATION_FAILURE
  167. //
  168. // MessageText:
  169. //
  170. // IoCreateDevice failed.
  171. //
  172. #define CYY_DEVICE_CREATION_FAILURE ((NTSTATUS)0xC004100CL)
  173. //
  174. // MessageId: CYY_REGISTER_INTERFACE_FAILURE
  175. //
  176. // MessageText:
  177. //
  178. // IoRegisterDeviceInterface failed.
  179. //
  180. #define CYY_REGISTER_INTERFACE_FAILURE ((NTSTATUS)0xC004100DL)
  181. //
  182. // MessageId: CYY_GET_BUS_TYPE_FAILURE
  183. //
  184. // MessageText:
  185. //
  186. // IoGetDeviceProperty LegacyBusType failed.
  187. //
  188. #define CYY_GET_BUS_TYPE_FAILURE ((NTSTATUS)0xC004100EL)
  189. //
  190. // MessageId: CYY_GET_UINUMBER_FAILURE
  191. //
  192. // MessageText:
  193. //
  194. // IoGetDeviceProperty DevicePropertyUINumber failed.
  195. //
  196. #define CYY_GET_UINUMBER_FAILURE ((NTSTATUS)0x8004100FL)
  197. //
  198. // MessageId: CYY_SET_INTERFACE_STATE_FAILURE
  199. //
  200. // MessageText:
  201. //
  202. // IoSetDeviceInterfaceState failed.
  203. //
  204. #define CYY_SET_INTERFACE_STATE_FAILURE ((NTSTATUS)0xC0041010L)
  205. #endif /* _CYYLOG_ */