From 5e697b64a57d18f508bdbe29093e78dc7e4af1be Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 15 Sep 2010 22:23:48 +0100 Subject: [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 --- src/include/ipxe/scsi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/ipxe') 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 */ -- cgit v1.2.3-55-g7522