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.

126 lines
3.1 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: MXENUM_INSUFFICIENT_RESOURCES
  73. //
  74. // MessageText:
  75. //
  76. // Not enough resources were available for the driver.
  77. //
  78. #define MXENUM_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0060001L)
  79. //
  80. // MessageId: MXENUM_NOT_INTELLIO_BOARDS
  81. //
  82. // MessageText:
  83. //
  84. // Find a board but not Moxa's Intellio Family board,so disable it.
  85. //
  86. #define MXENUM_NOT_INTELLIO_BOARDS ((NTSTATUS)0xC0060002L)
  87. //
  88. // MessageId: MXENUM_DRIVER_START
  89. //
  90. // MessageText:
  91. //
  92. // Moxa Intellio Family driver started
  93. //
  94. #define MXENUM_DRIVER_START ((NTSTATUS)0x40060003L)
  95. //
  96. // MessageId: MXENUM_DOWNLOAD_OK
  97. //
  98. // MessageText:
  99. //
  100. // MOXA Intellio %2 series board found and downloaded successfully.
  101. //
  102. #define MXENUM_DOWNLOAD_OK ((NTSTATUS)0x40060036L)
  103. //
  104. // MessageId: MXENUM_DOWNLOAD_FAIL
  105. //
  106. // MessageText:
  107. //
  108. // MOXA Intellio %2 series board downloaded unsuccessfully (%3).
  109. //
  110. #define MXENUM_DOWNLOAD_FAIL ((NTSTATUS)0xC0060037L)
  111. #endif /* _MXLOG_ */