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.

455 lines
11 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Abstract:
  3. Constant definitions for the I/O error code log values.
  4. --*/
  5. #ifndef _MXLOG_
  6. #define _MXLOG_
  7. //
  8. // Status values are 32 bit values layed out as follows:
  9. //
  10. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  11. // 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
  12. // +---+-+-------------------------+-------------------------------+
  13. // |Sev|C| Facility | Code |
  14. // +---+-+-------------------------+-------------------------------+
  15. //
  16. // where
  17. //
  18. // Sev - is the severity code
  19. //
  20. // 00 - Success
  21. // 01 - Informational
  22. // 10 - Warning
  23. // 11 - Error
  24. //
  25. // C - is the Customer code flag
  26. //
  27. // Facility - is the facility code
  28. //
  29. // Code - is the facility's status code
  30. //
  31. //
  32. // Values are 32 bit values layed out as follows:
  33. //
  34. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  35. // 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
  36. // +---+-+-+-----------------------+-------------------------------+
  37. // |Sev|C|R| Facility | Code |
  38. // +---+-+-+-----------------------+-------------------------------+
  39. //
  40. // where
  41. //
  42. // Sev - is the severity code
  43. //
  44. // 00 - Success
  45. // 01 - Informational
  46. // 10 - Warning
  47. // 11 - Error
  48. //
  49. // C - is the Customer code flag
  50. //
  51. // R - is a reserved bit
  52. //
  53. // Facility - is the facility code
  54. //
  55. // Code - is the facility's status code
  56. //
  57. //
  58. // Define the facility codes
  59. //
  60. #define FACILITY_SERIAL_ERROR_CODE 0x6
  61. #define FACILITY_RPC_STUBS 0x3
  62. #define FACILITY_RPC_RUNTIME 0x2
  63. #define FACILITY_IO_ERROR_CODE 0x4
  64. //
  65. // Define the severity codes
  66. //
  67. #define STATUS_SEVERITY_WARNING 0x2
  68. #define STATUS_SEVERITY_SUCCESS 0x0
  69. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  70. #define STATUS_SEVERITY_ERROR 0x3
  71. //
  72. // MessageId: SERIAL_KERNEL_DEBUGGER_ACTIVE
  73. //
  74. // MessageText:
  75. //
  76. // The kernel debugger is already using %2.
  77. //
  78. #define SERIAL_KERNEL_DEBUGGER_ACTIVE ((NTSTATUS)0x40060001L)
  79. //
  80. // MessageId: SERIAL_FIFO_PRESENT
  81. //
  82. // MessageText:
  83. //
  84. // While validating that %2 was really a serial port.
  85. //
  86. #define SERIAL_FIFO_PRESENT ((NTSTATUS)0x40060002L)
  87. //
  88. // MessageId: SERIAL_USER_OVERRIDE
  89. //
  90. // MessageText:
  91. //
  92. // User configuration data for parameter %2 overriding firmware configuration data.
  93. //
  94. #define SERIAL_USER_OVERRIDE ((NTSTATUS)0x40060003L)
  95. //
  96. // MessageId: SERIAL_NO_SYMLINK_CREATED
  97. //
  98. // MessageText:
  99. //
  100. // Unable to create the symbolic link for %2.
  101. //
  102. #define SERIAL_NO_SYMLINK_CREATED ((NTSTATUS)0x80060004L)
  103. //
  104. // MessageId: SERIAL_NO_DEVICE_MAP_CREATED
  105. //
  106. // MessageText:
  107. //
  108. // Unable to create the device map entry for %2.
  109. //
  110. #define SERIAL_NO_DEVICE_MAP_CREATED ((NTSTATUS)0x80060005L)
  111. //
  112. // MessageId: SERIAL_NO_DEVICE_MAP_DELETED
  113. //
  114. // MessageText:
  115. //
  116. // Unable to delete the device map entry for %2.
  117. //
  118. #define SERIAL_NO_DEVICE_MAP_DELETED ((NTSTATUS)0x80060006L)
  119. //
  120. // MessageId: SERIAL_UNREPORTED_IRQL_CONFLICT
  121. //
  122. // MessageText:
  123. //
  124. // Another driver on the system, which did not report its resources, has already claimed the interrupt used by %2.
  125. //
  126. #define SERIAL_UNREPORTED_IRQL_CONFLICT ((NTSTATUS)0xC0060007L)
  127. //
  128. // MessageId: SERIAL_INSUFFICIENT_RESOURCES
  129. //
  130. // MessageText:
  131. //
  132. // Not enough resources were available for the driver.
  133. //
  134. #define SERIAL_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0060008L)
  135. //
  136. // MessageId: SERIAL_UNSUPPORTED_CLOCK_RATE
  137. //
  138. // MessageText:
  139. //
  140. // The baud clock rate configuration is not supported on device %2.
  141. //
  142. #define SERIAL_UNSUPPORTED_CLOCK_RATE ((NTSTATUS)0xC0060009L)
  143. //
  144. // MessageId: SERIAL_REGISTERS_NOT_MAPPED
  145. //
  146. // MessageText:
  147. //
  148. // The hardware locations for %2 could not be translated to something the memory management system could understand.
  149. //
  150. #define SERIAL_REGISTERS_NOT_MAPPED ((NTSTATUS)0xC006000AL)
  151. //
  152. // MessageId: SERIAL_RESOURCE_CONFLICT
  153. //
  154. // MessageText:
  155. //
  156. // The hardware resources for %2 are already in use by another device.
  157. //
  158. #define SERIAL_RESOURCE_CONFLICT ((NTSTATUS)0xC006000BL)
  159. //
  160. // MessageId: SERIAL_NO_BUFFER_ALLOCATED
  161. //
  162. // MessageText:
  163. //
  164. // No memory could be allocated in which to place new data for %2.
  165. //
  166. #define SERIAL_NO_BUFFER_ALLOCATED ((NTSTATUS)0xC006000CL)
  167. //
  168. // MessageId: SERIAL_IER_INVALID
  169. //
  170. // MessageText:
  171. //
  172. // While validating that %2 was really a serial port, the interrupt enable register contained enabled bits in a must be zero bitfield.
  173. // The device is assumed not to be a serial port and will be deleted.
  174. //
  175. #define SERIAL_IER_INVALID ((NTSTATUS)0xC006000DL)
  176. //
  177. // MessageId: SERIAL_MCR_INVALID
  178. //
  179. // MessageText:
  180. //
  181. // While validating that %2 was really a serial port, the modem control register contained enabled bits in a must be zero bitfield.
  182. // The device is assumed not to be a serial port and will be deleted.
  183. //
  184. #define SERIAL_MCR_INVALID ((NTSTATUS)0xC006000EL)
  185. //
  186. // MessageId: SERIAL_IIR_INVALID
  187. //
  188. // MessageText:
  189. //
  190. // While validating that %2 was really a serial port, the interrupt id register contained enabled bits in a must be zero bitfield.
  191. // The device is assumed not to be a serial port and will be deleted.
  192. //
  193. #define SERIAL_IIR_INVALID ((NTSTATUS)0xC006000FL)
  194. //
  195. // MessageId: SERIAL_DL_INVALID
  196. //
  197. // MessageText:
  198. //
  199. // While validating that %2 was really a serial port, the baud rate register could not be set consistantly.
  200. // The device is assumed not to be a serial port and will be deleted.
  201. //
  202. #define SERIAL_DL_INVALID ((NTSTATUS)0xC0060010L)
  203. //
  204. // MessageId: SERIAL_NOT_ENOUGH_CONFIG_INFO
  205. //
  206. // MessageText:
  207. //
  208. // Some firmware configuration information was incomplete.
  209. //
  210. #define SERIAL_NOT_ENOUGH_CONFIG_INFO ((NTSTATUS)0xC0060011L)
  211. //
  212. // MessageId: SERIAL_NO_PARAMETERS_INFO
  213. //
  214. // MessageText:
  215. //
  216. // No Parameters subkey was found for user defined data. This is odd, and it also means no user configuration can be found.
  217. //
  218. #define SERIAL_NO_PARAMETERS_INFO ((NTSTATUS)0xC0060012L)
  219. //
  220. // MessageId: SERIAL_UNABLE_TO_ACCESS_CONFIG
  221. //
  222. // MessageText:
  223. //
  224. // Specific user configuration data is unretrievable.
  225. //
  226. #define SERIAL_UNABLE_TO_ACCESS_CONFIG ((NTSTATUS)0xC0060013L)
  227. //
  228. // MessageId: SERIAL_INVALID_PORT_INDEX
  229. //
  230. // MessageText:
  231. //
  232. // On parameter %2 which indicates a multiport card, must have a port index specified greater than 0.
  233. //
  234. #define SERIAL_INVALID_PORT_INDEX ((NTSTATUS)0xC0060014L)
  235. //
  236. // MessageId: SERIAL_PORT_INDEX_TOO_HIGH
  237. //
  238. // MessageText:
  239. //
  240. // On parameter %2 which indicates a multiport card, the port index for the multiport card is too large.
  241. //
  242. #define SERIAL_PORT_INDEX_TOO_HIGH ((NTSTATUS)0xC0060015L)
  243. //
  244. // MessageId: SERIAL_UNKNOWN_BUS
  245. //
  246. // MessageText:
  247. //
  248. // The bus type for %2 is not recognizable.
  249. //
  250. #define SERIAL_UNKNOWN_BUS ((NTSTATUS)0xC0060016L)
  251. //
  252. // MessageId: SERIAL_BUS_NOT_PRESENT
  253. //
  254. // MessageText:
  255. //
  256. // The bus type for %2 is not available on this computer.
  257. //
  258. #define SERIAL_BUS_NOT_PRESENT ((NTSTATUS)0xC0060017L)
  259. //
  260. // MessageId: SERIAL_BUS_INTERRUPT_CONFLICT
  261. //
  262. // MessageText:
  263. //
  264. // The bus specified for %2 does not support the specified method of interrupt.
  265. //
  266. #define SERIAL_BUS_INTERRUPT_CONFLICT ((NTSTATUS)0xC0060018L)
  267. //
  268. // MessageId: SERIAL_INVALID_USER_CONFIG
  269. //
  270. // MessageText:
  271. //
  272. // Can not find any configured MOXA Smartio/Industio series board.
  273. //
  274. #define SERIAL_INVALID_USER_CONFIG ((NTSTATUS)0xC0060019L)
  275. //
  276. // MessageId: SERIAL_DEVICE_TOO_HIGH
  277. //
  278. // MessageText:
  279. //
  280. // The user specified port for %2 is way too high in physical memory.
  281. //
  282. #define SERIAL_DEVICE_TOO_HIGH ((NTSTATUS)0xC006001AL)
  283. //
  284. // MessageId: SERIAL_STATUS_TOO_HIGH
  285. //
  286. // MessageText:
  287. //
  288. // The status port for %2 is way too high in physical memory.
  289. //
  290. #define SERIAL_STATUS_TOO_HIGH ((NTSTATUS)0xC006001BL)
  291. //
  292. // MessageId: SERIAL_STATUS_CONTROL_CONFLICT
  293. //
  294. // MessageText:
  295. //
  296. // The status port for %2 overlaps the control registers for the device.
  297. //
  298. #define SERIAL_STATUS_CONTROL_CONFLICT ((NTSTATUS)0xC006001CL)
  299. //
  300. // MessageId: SERIAL_CONTROL_OVERLAP
  301. //
  302. // MessageText:
  303. //
  304. // The control registers for %2 overlaps with the %3 control registers.
  305. //
  306. #define SERIAL_CONTROL_OVERLAP ((NTSTATUS)0xC006001DL)
  307. //
  308. // MessageId: SERIAL_STATUS_OVERLAP
  309. //
  310. // MessageText:
  311. //
  312. // The status register for %2 overlaps the %3 control registers.
  313. //
  314. #define SERIAL_STATUS_OVERLAP ((NTSTATUS)0xC006001EL)
  315. //
  316. // MessageId: SERIAL_STATUS_STATUS_OVERLAP
  317. //
  318. // MessageText:
  319. //
  320. // The status register for %2 overlaps with the %3 status register.
  321. //
  322. #define SERIAL_STATUS_STATUS_OVERLAP ((NTSTATUS)0xC006001FL)
  323. //
  324. // MessageId: SERIAL_CONTROL_STATUS_OVERLAP
  325. //
  326. // MessageText:
  327. //
  328. // The control registers for %2 overlaps the %3 status register.
  329. //
  330. #define SERIAL_CONTROL_STATUS_OVERLAP ((NTSTATUS)0xC0060020L)
  331. //
  332. // MessageId: SERIAL_MULTI_INTERRUPT_CONFLICT
  333. //
  334. // MessageText:
  335. //
  336. // Two ports, %2 and %3, on a single multiport card can't have two different interrupts.
  337. //
  338. #define SERIAL_MULTI_INTERRUPT_CONFLICT ((NTSTATUS)0xC0060021L)
  339. //
  340. // MessageId: SERIAL_DISABLED_PORT
  341. //
  342. // MessageText:
  343. //
  344. // Disabling %2 as requested by the configuration data.
  345. //
  346. #define SERIAL_DISABLED_PORT ((NTSTATUS)0x40060022L)
  347. //
  348. // MessageId: SERIAL_GARBLED_PARAMETER
  349. //
  350. // MessageText:
  351. //
  352. // Parameter %2 data is unretrievable from the registry.
  353. //
  354. #define SERIAL_GARBLED_PARAMETER ((NTSTATUS)0xC0060023L)
  355. //
  356. // MessageId: SERIAL_DLAB_INVALID
  357. //
  358. // MessageText:
  359. //
  360. // While validating that %2 was really a serial port, the contents of the divisor latch register was identical to the interrupt enable and the recieve registers.
  361. // The device is assumed not to be a serial port and will be deleted.
  362. //
  363. #define SERIAL_DLAB_INVALID ((NTSTATUS)0xC0060024L)
  364. //
  365. // MessageId: SERIAL_INVALID_MOXA_BOARDS
  366. //
  367. // MessageText:
  368. //
  369. // Can not find any MOXA Smartio/Industio series board.
  370. //
  371. #define SERIAL_INVALID_MOXA_BOARDS ((NTSTATUS)0xC0060025L)
  372. //
  373. // MessageId: SERIAL_INVALID_COM_NUMBER
  374. //
  375. // MessageText:
  376. //
  377. // The COM number(COM %2) of the %3 board conflicts with others.
  378. //
  379. #define SERIAL_INVALID_COM_NUMBER ((NTSTATUS)0xC0060026L)
  380. //
  381. // MessageId: SERIAL_PORT_FOUND
  382. //
  383. // MessageText:
  384. //
  385. // Serial port %2, has been enabled.
  386. //
  387. #define SERIAL_PORT_FOUND ((NTSTATUS)0x40060027L)
  388. //
  389. // MessageId: SERIAL_INVALID_IRQ_NUMBER
  390. //
  391. // MessageText:
  392. //
  393. // %2, with first serial port %3, IRQ number is invalid.
  394. //
  395. #define SERIAL_INVALID_IRQ_NUMBER ((NTSTATUS)0xC0060028L)
  396. //
  397. // MessageId: SERIAL_INVALID_ASIC_BOARD
  398. //
  399. // MessageText:
  400. //
  401. // Can not find the configured %2 board (CAP=%3)!
  402. //
  403. #define SERIAL_INVALID_ASIC_BOARD ((NTSTATUS)0xC0060029L)
  404. #endif /* _MXLOG_ */