1 /* 2 * ntiologc.h 3 * 4 * This file is part of the ReactOS PSDK package. 5 * 6 * Contributors: 7 * Created by Amine Khaldi. 8 * 9 * THIS SOFTWARE IS NOT COPYRIGHTED 10 * 11 * This source code is offered for use in the public domain. You may 12 * use, modify or distribute it freely. 13 * 14 * This code is distributed in the hope that it will be useful but 15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 16 * DISCLAIMED. This includes but is not limited to warranties of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18 * 19 */ 20 21 #pragma once 22 23 #define FACILITY_RPC_RUNTIME 0x2 24 #define FACILITY_RPC_STUBS 0x3 25 #define FACILITY_IO_ERROR_CODE 0x4 26 #define FACILITY_MCA_ERROR_CODE 0x5 27 28 #define IO_ERR_RETRY_SUCCEEDED ((NTSTATUS)0x00040001L) 29 #define IO_ERR_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC0040002L) 30 #define IO_ERR_CONFIGURATION_ERROR ((NTSTATUS)0xC0040003L) 31 #define IO_ERR_DRIVER_ERROR ((NTSTATUS)0xC0040004L) 32 #define IO_ERR_PARITY ((NTSTATUS)0xC0040005L) 33 #define IO_ERR_SEEK_ERROR ((NTSTATUS)0xC0040006L) 34 #define IO_ERR_BAD_BLOCK ((NTSTATUS)0xC0040007L) 35 #define IO_ERR_OVERRUN_ERROR ((NTSTATUS)0xC0040008L) 36 #define IO_ERR_TIMEOUT ((NTSTATUS)0xC0040009L) 37 #define IO_ERR_SEQUENCE ((NTSTATUS)0xC004000AL) 38 #define IO_ERR_CONTROLLER_ERROR ((NTSTATUS)0xC004000BL) 39 #define IO_ERR_INTERNAL_ERROR ((NTSTATUS)0xC004000CL) 40 #define IO_ERR_INCORRECT_IRQL ((NTSTATUS)0xC004000DL) 41 #define IO_ERR_INVALID_IOBASE ((NTSTATUS)0xC004000EL) 42 #define IO_ERR_NOT_READY ((NTSTATUS)0xC004000FL) 43 #define IO_ERR_INVALID_REQUEST ((NTSTATUS)0xC0040010L) 44 #define IO_ERR_VERSION ((NTSTATUS)0xC0040011L) 45 #define IO_ERR_LAYERED_FAILURE ((NTSTATUS)0xC0040012L) 46 #define IO_ERR_RESET ((NTSTATUS)0xC0040013L) 47 #define IO_ERR_PROTOCOL ((NTSTATUS)0xC0040014L) 48 #define IO_ERR_MEMORY_CONFLICT_DETECTED ((NTSTATUS)0xC0040015L) 49 #define IO_ERR_PORT_CONFLICT_DETECTED ((NTSTATUS)0xC0040016L) 50 #define IO_ERR_DMA_CONFLICT_DETECTED ((NTSTATUS)0xC0040017L) 51 #define IO_ERR_IRQ_CONFLICT_DETECTED ((NTSTATUS)0xC0040018L) 52 #define IO_ERR_BAD_FIRMWARE ((NTSTATUS)0xC0040019L) 53 #define IO_WRN_BAD_FIRMWARE ((NTSTATUS)0x8004001AL) 54 #define IO_ERR_DMA_RESOURCE_CONFLICT ((NTSTATUS)0xC004001BL) 55 #define IO_ERR_INTERRUPT_RESOURCE_CONFLICT ((NTSTATUS)0xC004001CL) 56 #define IO_ERR_MEMORY_RESOURCE_CONFLICT ((NTSTATUS)0xC004001DL) 57 #define IO_ERR_PORT_RESOURCE_CONFLICT ((NTSTATUS)0xC004001EL) 58 #define IO_BAD_BLOCK_WITH_NAME ((NTSTATUS)0xC004001FL) 59 #define IO_WRITE_CACHE_ENABLED ((NTSTATUS)0x80040020L) 60 #define IO_RECOVERED_VIA_ECC ((NTSTATUS)0x80040021L) 61 #define IO_WRITE_CACHE_DISABLED ((NTSTATUS)0x80040022L) 62 #define IO_FILE_QUOTA_THRESHOLD ((NTSTATUS)0x40040024L) 63 #define IO_FILE_QUOTA_LIMIT ((NTSTATUS)0x40040025L) 64 #define IO_FILE_QUOTA_STARTED ((NTSTATUS)0x40040026L) 65 #define IO_FILE_QUOTA_SUCCEEDED ((NTSTATUS)0x40040027L) 66 #define IO_FILE_QUOTA_FAILED ((NTSTATUS)0x80040028L) 67 #define IO_FILE_SYSTEM_CORRUPT ((NTSTATUS)0xC0040029L) 68 #define IO_FILE_QUOTA_CORRUPT ((NTSTATUS)0xC004002AL) 69 #define IO_SYSTEM_SLEEP_FAILED ((NTSTATUS)0xC004002BL) 70 #define IO_DUMP_POINTER_FAILURE ((NTSTATUS)0xC004002CL) 71 #define IO_DUMP_DRIVER_LOAD_FAILURE ((NTSTATUS)0xC004002DL) 72 #define IO_DUMP_INITIALIZATION_FAILURE ((NTSTATUS)0xC004002EL) 73 #define IO_DUMP_DUMPFILE_CONFLICT ((NTSTATUS)0xC004002FL) 74 #define IO_DUMP_DIRECT_CONFIG_FAILED ((NTSTATUS)0xC0040030L) 75 #define IO_DUMP_PAGE_CONFIG_FAILED ((NTSTATUS)0xC0040031L) 76 #define IO_LOST_DELAYED_WRITE ((NTSTATUS)0x80040032L) 77 #define IO_WARNING_PAGING_FAILURE ((NTSTATUS)0x80040033L) 78 #define IO_WRN_FAILURE_PREDICTED ((NTSTATUS)0x80040034L) 79 #define IO_WARNING_INTERRUPT_STILL_PENDING ((NTSTATUS)0x80040035L) 80 #define IO_DRIVER_CANCEL_TIMEOUT ((NTSTATUS)0x80040036L) 81 #define IO_FILE_SYSTEM_CORRUPT_WITH_NAME ((NTSTATUS)0xC0040037L) 82 #define IO_WARNING_ALLOCATION_FAILED ((NTSTATUS)0x80040038L) 83 #define IO_WARNING_LOG_FLUSH_FAILED ((NTSTATUS)0x80040039L) 84 #define IO_WARNING_DUPLICATE_SIGNATURE ((NTSTATUS)0x8004003AL) 85 #define IO_WARNING_DUPLICATE_PATH ((NTSTATUS)0x8004003BL) 86 #define IO_ERR_THREAD_STUCK_IN_DEVICE_DRIVER ((NTSTATUS)0xC004006CL) 87 #define IO_ERR_PORT_TIMEOUT ((NTSTATUS)0xC0040075L) 88 #define IO_WARNING_BUS_RESET ((NTSTATUS)0x80040076L) 89 #define IO_INFO_THROTTLE_COMPLETE ((NTSTATUS)0x40040077L) 90 #define IO_WARNING_RESET ((NTSTATUS)0x80040081L) 91 #define IO_FILE_SYSTEM_REPAIR_SUCCESS ((NTSTATUS)0x80040082L) 92 #define IO_FILE_SYSTEM_REPAIR_FAILED ((NTSTATUS)0xC0040083L) 93 #define IO_WARNING_WRITE_FUA_PROBLEM ((NTSTATUS)0x80040084L) 94 #define IO_CDROM_EXCLUSIVE_LOCK ((NTSTATUS)0x40040085L) 95 #define IO_FILE_SYSTEM_TXF_RECOVERY_FAILURE ((NTSTATUS)0x80040086L) 96 #define IO_FILE_SYSTEM_TXF_LOG_FULL_HANDLING_FAILED ((NTSTATUS)0xC0040087L) 97 #define IO_FILE_SYSTEM_TXF_RESOURCE_MANAGER_RESET ((NTSTATUS)0x80040088L) 98 #define IO_FILE_SYSTEM_TXF_RESOURCE_MANAGER_START_FAILED ((NTSTATUS)0xC0040089L) 99 #define IO_FILE_SYSTEM_TXF_RESOURCE_MANAGER_SHUT_DOWN ((NTSTATUS)0xC004008AL) 100 #define IO_LOST_DELAYED_WRITE_NETWORK_DISCONNECTED ((NTSTATUS)0x8004008BL) 101 #define IO_LOST_DELAYED_WRITE_NETWORK_SERVER_ERROR ((NTSTATUS)0x8004008CL) 102 #define IO_LOST_DELAYED_WRITE_NETWORK_LOCAL_DISK_ERROR ((NTSTATUS)0x8004008DL) 103 #define IO_WARNING_VOLUME_LOST_DISK_EXTENT ((NTSTATUS)0x8004008EL) 104 #define IO_WARNING_DEVICE_HAS_INTERNAL_DUMP ((NTSTATUS)0x8004008FL) 105 #define IO_WARNING_SOFT_THRESHOLD_REACHED ((NTSTATUS)0x80040090L) 106 #define IO_WARNING_SOFT_THRESHOLD_REACHED_EX ((NTSTATUS)0x80040091L) 107 #define IO_WARNING_SOFT_THRESHOLD_REACHED_EX_LUN_LUN ((NTSTATUS)0x80040092L) 108 #define IO_WARNING_SOFT_THRESHOLD_REACHED_EX_LUN_POOL ((NTSTATUS)0x80040093L) 109 #define IO_WARNING_SOFT_THRESHOLD_REACHED_EX_POOL_LUN ((NTSTATUS)0x80040094L) 110 #define IO_WARNING_SOFT_THRESHOLD_REACHED_EX_POOL_POOL ((NTSTATUS)0x80040095L) 111 #define IO_ERROR_DISK_RESOURCES_EXHAUSTED ((NTSTATUS)0xC0040096L) 112 #define IO_WARNING_DISK_CAPACITY_CHANGED ((NTSTATUS)0x80040097L) 113 #define IO_WARNING_DISK_PROVISIONING_TYPE_CHANGED ((NTSTATUS)0x80040098L) 114 #define IO_WARNING_IO_OPERATION_RETRIED ((NTSTATUS)0x80040099L) 115 #define IO_ERROR_IO_HARDWARE_ERROR ((NTSTATUS)0xC004009AL) 116 #define IO_WARNING_COMPLETION_TIME ((NTSTATUS)0x8004009BL) 117 #define IO_WARNING_DUMP_DISABLED_DEVICE_GONE ((NTSTATUS)0x8004009CL) 118 #define IO_WARNING_DISK_SURPRISE_REMOVED ((NTSTATUS)0x8004009DL) 119 #define IO_WARNING_REPEATED_DISK_GUID ((NTSTATUS)0x8004009EL) 120 #define IO_WARNING_DISK_FIRMWARE_UPDATED ((NTSTATUS)0x4004009FL) 121 #define IO_WARNING_ADAPTER_FIRMWARE_UPDATED ((NTSTATUS)0x400400A0L) 122 #define IO_ERROR_DUMP_CREATION_ERROR ((NTSTATUS)0xC00400A1L) 123 124 #define MCA_WARNING_CACHE ((NTSTATUS)0x8005003CL) 125 #define MCA_ERROR_CACHE ((NTSTATUS)0xC005003DL) 126 #define MCA_WARNING_TLB ((NTSTATUS)0x8005003EL) 127 #define MCA_ERROR_TLB ((NTSTATUS)0xC005003FL) 128 #define MCA_WARNING_CPU_BUS ((NTSTATUS)0x80050040L) 129 #define MCA_ERROR_CPU_BUS ((NTSTATUS)0xC0050041L) 130 #define MCA_WARNING_REGISTER_FILE ((NTSTATUS)0x80050042L) 131 #define MCA_ERROR_REGISTER_FILE ((NTSTATUS)0xC0050043L) 132 #define MCA_WARNING_MAS ((NTSTATUS)0x80050044L) 133 #define MCA_ERROR_MAS ((NTSTATUS)0xC0050045L) 134 #define MCA_WARNING_MEM_UNKNOWN ((NTSTATUS)0x80050046L) 135 #define MCA_ERROR_MEM_UNKNOWN ((NTSTATUS)0xC0050047L) 136 #define MCA_WARNING_MEM_1_2 ((NTSTATUS)0x80050048L) 137 #define MCA_ERROR_MEM_1_2 ((NTSTATUS)0xC0050049L) 138 #define MCA_WARNING_MEM_1_2_5 ((NTSTATUS)0x8005004AL) 139 #define MCA_ERROR_MEM_1_2_5 ((NTSTATUS)0xC005004BL) 140 #define MCA_WARNING_MEM_1_2_5_4 ((NTSTATUS)0x8005004CL) 141 #define MCA_ERROR_MEM_1_2_5_4 ((NTSTATUS)0xC005004DL) 142 #define MCA_WARNING_SYSTEM_EVENT ((NTSTATUS)0x8005004EL) 143 #define MCA_ERROR_SYSTEM_EVENT ((NTSTATUS)0xC005004FL) 144 #define MCA_WARNING_PCI_BUS_PARITY ((NTSTATUS)0x80050050L) 145 #define MCA_ERROR_PCI_BUS_PARITY ((NTSTATUS)0xC0050051L) 146 #define MCA_WARNING_PCI_BUS_PARITY_NO_INFO ((NTSTATUS)0x80050052L) 147 #define MCA_ERROR_PCI_BUS_PARITY_NO_INFO ((NTSTATUS)0xC0050053L) 148 #define MCA_WARNING_PCI_BUS_SERR ((NTSTATUS)0x80050054L) 149 #define MCA_ERROR_PCI_BUS_SERR ((NTSTATUS)0xC0050055L) 150 #define MCA_WARNING_PCI_BUS_SERR_NO_INFO ((NTSTATUS)0x80050056L) 151 #define MCA_ERROR_PCI_BUS_SERR_NO_INFO ((NTSTATUS)0xC0050057L) 152 #define MCA_WARNING_PCI_BUS_MASTER_ABORT ((NTSTATUS)0x80050058L) 153 #define MCA_ERROR_PCI_BUS_MASTER_ABORT ((NTSTATUS)0xC0050059L) 154 #define MCA_WARNING_PCI_BUS_MASTER_ABORT_NO_INFO ((NTSTATUS)0x8005005AL) 155 #define MCA_ERROR_PCI_BUS_MASTER_ABORT_NO_INFO ((NTSTATUS)0xC005005BL) 156 #define MCA_WARNING_PCI_BUS_TIMEOUT ((NTSTATUS)0x8005005CL) 157 #define MCA_ERROR_PCI_BUS_TIMEOUT ((NTSTATUS)0xC005005DL) 158 #define MCA_WARNING_PCI_BUS_TIMEOUT_NO_INFO ((NTSTATUS)0x8005005EL) 159 #define MCA_ERROR_PCI_BUS_TIMEOUT_NO_INFO ((NTSTATUS)0xC005005FL) 160 #define MCA_WARNING_PCI_BUS_UNKNOWN ((NTSTATUS)0x80050060L) 161 #define MCA_ERROR_PCI_BUS_UNKNOWN ((NTSTATUS)0xC0050061L) 162 #define MCA_WARNING_PCI_DEVICE ((NTSTATUS)0x80050062L) 163 #define MCA_ERROR_PCI_DEVICE ((NTSTATUS)0xC0050063L) 164 #define MCA_WARNING_SMBIOS ((NTSTATUS)0x80050064L) 165 #define MCA_ERROR_SMBIOS ((NTSTATUS)0xC0050065L) 166 #define MCA_WARNING_PLATFORM_SPECIFIC ((NTSTATUS)0x80050066L) 167 #define MCA_ERROR_PLATFORM_SPECIFIC ((NTSTATUS)0xC0050067L) 168 #define MCA_WARNING_UNKNOWN ((NTSTATUS)0x80050068L) 169 #define MCA_ERROR_UNKNOWN ((NTSTATUS)0xC0050069L) 170 #define MCA_WARNING_UNKNOWN_NO_CPU ((NTSTATUS)0x8005006AL) 171 #define MCA_ERROR_UNKNOWN_NO_CPU ((NTSTATUS)0xC005006BL) 172 #define MCA_WARNING_CMC_THRESHOLD_EXCEEDED ((NTSTATUS)0x8005006DL) 173 #define MCA_WARNING_CPE_THRESHOLD_EXCEEDED ((NTSTATUS)0x8005006EL) 174 #define MCA_WARNING_CPU_THERMAL_THROTTLED ((NTSTATUS)0x8005006FL) 175 #define MCA_INFO_CPU_THERMAL_THROTTLING_REMOVED ((NTSTATUS)0x40050070L) 176 #define MCA_WARNING_CPU ((NTSTATUS)0x80050071L) 177 #define MCA_ERROR_CPU ((NTSTATUS)0xC0050072L) 178 #define MCA_INFO_NO_MORE_CORRECTED_ERROR_LOGS ((NTSTATUS)0x40050073L) 179 #define MCA_INFO_MEMORY_PAGE_MARKED_BAD ((NTSTATUS)0x40050074L) 180 #define MCA_MEMORYHIERARCHY_ERROR ((NTSTATUS)0xC0050078L) 181 #define MCA_TLB_ERROR ((NTSTATUS)0xC0050079L) 182 #define MCA_BUS_ERROR ((NTSTATUS)0xC005007AL) 183 #define MCA_BUS_TIMEOUT_ERROR ((NTSTATUS)0xC005007BL) 184 #define MCA_INTERNALTIMER_ERROR ((NTSTATUS)0xC005007CL) 185 #define MCA_MICROCODE_ROM_PARITY_ERROR ((NTSTATUS)0xC005007EL) 186 #define MCA_EXTERNAL_ERROR ((NTSTATUS)0xC005007FL) 187 #define MCA_FRC_ERROR ((NTSTATUS)0xC0050080L) 188 189 #define STATUS_SEVERITY_SUCCESS 0x0 190 #define STATUS_SEVERITY_INFORMATIONAL 0x1 191 #define STATUS_SEVERITY_WARNING 0x2 192 #define STATUS_SEVERITY_ERROR 0x3 193