aboutsummaryrefslogtreecommitdiff
path: root/include/sg_io_linux.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2012-09-14 13:54:54 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2012-09-14 13:54:54 +0000
commit19776eb6029a597dcec752989933a8c12a9be0a8 (patch)
treea47771fc5b10eaaec7595eb1ee9e13776c08cd8e /include/sg_io_linux.h
parent52fe5c60cd78fa77004d9ca022ac238721d3ad4d (diff)
downloadsg3_utils-19776eb6029a597dcec752989933a8c12a9be0a8.tar.gz
a little more Linux host byte work: extra values
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@454 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_io_linux.h')
-rw-r--r--include/sg_io_linux.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/sg_io_linux.h b/include/sg_io_linux.h
index 772c78bb..7d8e1e3d 100644
--- a/include/sg_io_linux.h
+++ b/include/sg_io_linux.h
@@ -2,14 +2,14 @@
#define SG_IO_LINUX_H
/*
- * Copyright (c) 2004-2010 Douglas Gilbert.
+ * Copyright (c) 2004-2012 Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
/*
- * Version 1.02 [20090708]
+ * Version 1.03 [20120914]
*/
/*
@@ -49,6 +49,18 @@ extern "C" {
#define DID_REQUEUE 0x0d /* Requeue command (no immediate retry) also
* without decrementing the retry count */
#endif
+#ifndef DID_TRANSPORT_DISRUPTED
+#define DID_TRANSPORT_DISRUPTED 0xe
+#endif
+#ifndef DID_TRANSPORT_FAILFAST
+#define DID_TRANSPORT_FAILFAST 0xf
+#endif
+#ifndef DID_TARGET_FAILURE
+#define DID_TARGET_FAILURE 0x10
+#endif
+#ifndef DID_NEXUS_FAILURE
+#define DID_NEXUS_FAILURE 0x11
+#endif
/* These defines are to isolate applications from kernel define changes */
#define SG_LIB_DID_OK DID_OK
@@ -65,6 +77,10 @@ extern "C" {
#define SG_LIB_DID_SOFT_ERROR DID_SOFT_ERROR
#define SG_LIB_DID_IMM_RETRY DID_IMM_RETRY
#define SG_LIB_DID_REQUEUE DID_REQUEUE
+#define SG_LIB_TRANSPORT_DISRUPTED DID_TRANSPORT_DISRUPTED
+#define SG_LIB_DID_TRANSPORT_FAILFAST DID_TRANSPORT_FAILFAST
+#define SG_LIB_DID_TARGET_FAILURE DID_TARGET_FAILURE
+#define SG_LIB_DID_NEXUS_FAILURE DID_NEXUS_FAILURE
/* The following are 'driver_status' codes */
#ifndef DRIVER_OK