linux/drivers/scsi/ibmvscsi
Tyrel Datwyler 55c9b1e539 ibmvscsi: Add and use enums for valid CRQ header values
The PAPR defines four valid header values for the first byte of a CRQ
message. Namely, an unused/empty message (0x00), a valid
command/response entry (0x80), a valid initialization entry (0xC0), and
a valid transport event (0xFF). Further, initialization responses have
two formats namely initialize (0x01) and initialize complete
(0x02). Define these values as enums and use them in the code in
place of their magic number equivalents.

Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Reported-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-02-23 21:27:02 -05:00
..
Makefile ibmvstgt: remove 2014-07-17 22:07:43 +02:00
ibmvfc.c scsi: use host wide tags by default 2015-11-09 17:11:57 -08:00
ibmvfc.h ibmvfc: fix little endian issues 2014-07-25 17:16:55 -04:00
ibmvscsi.c ibmvscsi: Add and use enums for valid CRQ header values 2016-02-23 21:27:02 -05:00
ibmvscsi.h ibmvscsi: set max_lun to 32 2015-11-11 21:01:15 -05:00
viosrp.h ibmvscsi: Add and use enums for valid CRQ header values 2016-02-23 21:27:02 -05:00