Remove references to the second byte of a CCB containing the LUN, as this
is valid only for SCSI-2 and older devices. Rename the second byte of the VERIFY CCB from 'lun' to 'byte2'. Submitted by: ken MFC after: 2 weeks
This commit is contained in:
parent
6c3f1a47fe
commit
23e0012d02
@ -188,7 +188,7 @@ struct format_ipat_descriptor
|
||||
struct scsi_read_format_capacities
|
||||
{
|
||||
uint8_t opcode; /* READ_FORMAT_CAPACITIES */
|
||||
uint8_t byte2; /* top 3 bits contain LUN */
|
||||
uint8_t byte2;
|
||||
#define SRFC_LUN_MASK 0xE0
|
||||
uint8_t reserved0[5];
|
||||
uint8_t alloc_length[2];
|
||||
@ -198,11 +198,11 @@ struct scsi_read_format_capacities
|
||||
struct scsi_verify
|
||||
{
|
||||
uint8_t opcode; /* VERIFY */
|
||||
uint8_t lun; /* All other bits should be zero */
|
||||
uint8_t byte2;
|
||||
#define SVFY_LUN_MASK 0xE0
|
||||
#define SVFY_RELADR 0x01
|
||||
#define SVFY_BYTECHK 0x02
|
||||
#define SVFY_DPO 0x10
|
||||
#define SVFY_LUN_MASK 0xE0 /* Top 3 MSBs are LUN */
|
||||
uint8_t addr[4]; /* LBA to begin verification at */
|
||||
uint8_t reserved0[1];
|
||||
uint8_t len[2]; /* number of blocks to verify */
|
||||
@ -212,7 +212,7 @@ struct scsi_verify
|
||||
struct scsi_write_and_verify
|
||||
{
|
||||
uint8_t opcode; /* WRITE_AND_VERIFY */
|
||||
uint8_t byte2; /* top 3 bits are the LUN */
|
||||
uint8_t byte2;
|
||||
#define SWVY_LUN_MASK 0xE0
|
||||
#define SWVY_RELADR 0x01
|
||||
#define SWVY_BYTECHK 0x02
|
||||
|
Loading…
x
Reference in New Issue
Block a user