summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2010-09-15 23:23:48 +0200
committerMichael Brown2010-09-15 23:23:48 +0200
commit5e697b64a57d18f508bdbe29093e78dc7e4af1be (patch)
treea56efa2076d2cc2745abc0594b930f2e0052dada /src/include/ipxe
parent[infiniband] Match GID/GUID terminology as used in the IBA (diff)
downloadipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.tar.gz
ipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.tar.xz
ipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.zip
[scsi] Include sense key within error number reported to user
The sense key gives a first idea of what the problem might be, and so is potentially useful in diagnosing problems in a non-debug build. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/scsi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/scsi.h b/src/include/ipxe/scsi.h
index b90aa3aa0..5539b61d0 100644
--- a/src/include/ipxe/scsi.h
+++ b/src/include/ipxe/scsi.h
@@ -267,6 +267,9 @@ struct scsi_sns {
uint32_t info;
};
+/** SCSI sense key mask */
+#define SCSI_SENSE_KEY_MASK 0x0f
+
/** A SCSI response information unit */
struct scsi_rsp {
/** SCSI status code */