diff options
author | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> | 2016-02-11 01:32:23 (GMT) |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-24 02:27:02 (GMT) |
commit | 55c9b1e539900ab8ad99744ca8ae827e2e6e5f82 (patch) | |
tree | 264863eb03a55af3097b06455e729bca38844d2f /mm/cma_debug.c | |
parent | 5de5f1f67060d61669a177bebab980ca913c0b8c (diff) | |
download | linux-55c9b1e539900ab8ad99744ca8ae827e2e6e5f82.tar.xz |
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>
Diffstat (limited to 'mm/cma_debug.c')
0 files changed, 0 insertions, 0 deletions