aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/scsi.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-09-15 22:23:48 +0100
committerMichael Brown <mcb30@ipxe.org>2010-09-15 22:23:48 +0100
commit5e697b64a57d18f508bdbe29093e78dc7e4af1be (patch)
treea56efa2076d2cc2745abc0594b930f2e0052dada /src/include/ipxe/scsi.h
parent52e54a8c69351ee1455f8fbf2a9cd5d27d42f7ab (diff)
downloadipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.zip
ipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.tar.gz
ipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.tar.bz2
[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/scsi.h')
-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 b90aa3a..5539b61 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 */