38#define FCP_CMND_WRDATA 0x01
41#define FCP_CMND_RDDATA 0x02
44#define FCP_TAG_MAGIC 0x18ae0000
75#define FCP_RSP_RESPONSE_LEN_VALID 0x01
78#define FCP_RSP_SENSE_LEN_VALID 0x02
81#define FCP_RSP_RESIDUAL_OVERRUN 0x04
84#define FCP_RSP_RESIDUAL_UNDERRUN 0x08
94 ( ( (
void * )
rsp ) + sizeof ( *
rsp ) ) :
NULL );
116 ( ( (
void * )
rsp ) + sizeof ( *
rsp ) +
138#define FCP_PRLI_NO_WRITE_RDY 0x0001
141#define FCP_PRLI_NO_READ_RDY 0x0002
144#define FCP_PRLI_TARGET 0x0010
147#define FCP_PRLI_INITIATOR 0x0020
150#define FCP_PRLI_OVERLAY 0x0040
153#define FCP_PRLI_CONF 0x0080
156#define FCP_PRLI_RETRY 0x0100
159#define FCP_PRLI_TASK_RETRY 0x0200
162#define FCP_PRLI_REC 0x0400
165#define FCP_PRLI_ENH_DISC 0x0800
#define NULL
NULL pointer (VOID *)
Fibre Channel Extended Link Services.
#define FCP_RSP_RESPONSE_LEN_VALID
Response length field is valid.
static size_t fcp_rsp_sense_data_len(struct fcp_rsp *rsp)
Get length of sense data portion of FCP response.
#define FCP_RSP_SENSE_LEN_VALID
Sense length field is valid.
static size_t fcp_rsp_response_data_len(struct fcp_rsp *rsp)
Get length of response data portion of FCP response.
static void * fcp_rsp_sense_data(struct fcp_rsp *rsp)
Get sense data portion of FCP response.
static void * fcp_rsp_response_data(struct fcp_rsp *rsp)
Get response data portion of FCP response.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
uint8_t flags
Task management flags.
uint8_t ref
Command reference number.
union scsi_cdb cdb
SCSI CDB.
uint8_t priority
Priority and task attributes.
struct scsi_lun lun
SCSI LUN.
An FCP device description.
struct fc_name wwn
Fibre Channel WWN.
struct scsi_lun lun
SCSI LUN.
An FCP PRLI service parameter page.
uint32_t sense_len
Sense data length.
uint32_t response_len
Response data length.
uint8_t reserved[8]
Reserved.
uint32_t residual
Residual data count.
uint8_t status
SCSI status code.
uint16_t retry_delay
Retry delay timer.
An FCP transfer ready IU.
uint32_t reserved
Reserved.
uint32_t offset
Relative offset of data.
uint32_t len
Burst length.
A SCSI Command Data Block.