summaryrefslogtreecommitdiffstats
path: root/private/ntos/miniport/trantor/include/status.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/miniport/trantor/include/status.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/ntos/miniport/trantor/include/status.h')
-rw-r--r--private/ntos/miniport/trantor/include/status.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/private/ntos/miniport/trantor/include/status.h b/private/ntos/miniport/trantor/include/status.h
new file mode 100644
index 000000000..a1079b376
--- /dev/null
+++ b/private/ntos/miniport/trantor/include/status.h
@@ -0,0 +1,58 @@
+//-------------------------------------------------------------------------
+//
+// FILE: status.h
+//
+// Contains scsi status messages.
+//
+// Note: These errors are returned by the lower level drivers functions.
+// At an even lower level, the functions either return these values or
+// 0, where 0 indicates no error; but for cases where the card routines
+// are passed a TSRB, 0 means SRB_STATUS_PENDING, and 1 means SRB_STATUS_
+// SUCCESS.
+//
+// Revisions:
+// 03-09-93 KJB First.
+// 03-11-93 JAP Changed #defines to reflect more appropriate meaning
+// 03-23-93 KJB Added RET_STATUS_MISSED_INTERRUPT.
+//
+//-------------------------------------------------------------------------
+
+
+#if DBG
+#define DebugPrint(x) ScsiDebugPrint x
+#else
+#define DebugPrint(x)
+#endif
+
+//
+// Return Value Definitions
+//
+
+#define RET_STATUS_PENDING 0x00
+#define RET_STATUS_SUCCESS 0x01
+#define RET_STATUS_ABORTED 0x02
+#define RET_STATUS_ABORT_FAILED 0x03
+#define RET_STATUS_ERROR 0x04
+#define RET_STATUS_BUSY 0x05
+#define RET_STATUS_INVALID_REQUEST 0x06
+#define RET_STATUS_INVALID_PATH_ID 0x07
+#define RET_STATUS_NO_DEVICE 0x08
+#define RET_STATUS_TIMEOUT 0x09
+#define RET_STATUS_SELECTION_TIMEOUT 0x0A
+#define RET_STATUS_COMMAND_TIMEOUT 0x0B
+#define RET_STATUS_MESSAGE_REJECTED 0x0D
+#define RET_STATUS_BUS_RESET 0x0E
+#define RET_STATUS_PARITY_ERROR 0x0F
+#define RET_STATUS_REQUEST_SENSE_FAILED 0x10
+#define RET_STATUS_NO_HBA 0x11
+#define RET_STATUS_DATA_OVERRUN 0x12
+#define RET_STATUS_UNEXPECTED_BUS_FREE 0x13
+#define RET_STATUS_PHASE_SEQ_FAILURE 0x14
+#define RET_STATUS_BAD_SRB_BLOCK_LENGTH 0x15
+#define RET_STATUS_REQUEST_FLUSHED 0x16
+#define RET_STATUS_INVALID_LUN 0x20
+#define RET_STATUS_INVALID_TARGET_ID 0x21
+#define RET_STATUS_BAD_FUNCTION 0x22
+#define RET_STATUS_ERROR_RECOVERY 0x23
+#define RET_STATUS_MISSED_INTERRUPT 0x101
+