|
iPXE
|
Fibre Channel Protocol. More...
Go to the source code of this file.
Data Structures | |
| struct | fcp_cmnd |
| An FCP command IU. More... | |
| struct | fcp_xfer_rdy |
| An FCP transfer ready IU. More... | |
| struct | fcp_rsp |
| An FCP response IU. More... | |
| struct | fcp_prli_service_parameters |
| An FCP PRLI service parameter page. More... | |
| struct | fcp_description |
| An FCP device description. More... | |
Macros | |
| #define | FCP_CMND_WRDATA 0x01 |
| Command includes data-out. More... | |
| #define | FCP_CMND_RDDATA 0x02 |
| Command includes data-in. More... | |
| #define | FCP_TAG_MAGIC 0x18ae0000 |
| FCP tag magic marker. More... | |
| #define | FCP_RSP_RESPONSE_LEN_VALID 0x01 |
| Response length field is valid. More... | |
| #define | FCP_RSP_SENSE_LEN_VALID 0x02 |
| Sense length field is valid. More... | |
| #define | FCP_RSP_RESIDUAL_OVERRUN 0x04 |
| Residual represents overrun. More... | |
| #define | FCP_RSP_RESIDUAL_UNDERRUN 0x08 |
| Residual represents underrun. More... | |
| #define | FCP_PRLI_NO_WRITE_RDY 0x0001 |
| Write FCP_XFER_RDY disabled. More... | |
| #define | FCP_PRLI_NO_READ_RDY 0x0002 |
| Read FCP_XFER_RDY disabled. More... | |
| #define | FCP_PRLI_TARGET 0x0010 |
| Has target functionality. More... | |
| #define | FCP_PRLI_INITIATOR 0x0020 |
| Has initiator functionality. More... | |
| #define | FCP_PRLI_OVERLAY 0x0040 |
| Data overlay allowed. More... | |
| #define | FCP_PRLI_CONF 0x0080 |
| Confirm completion allowed. More... | |
| #define | FCP_PRLI_RETRY 0x0100 |
| Retransmission supported. More... | |
| #define | FCP_PRLI_TASK_RETRY 0x0200 |
| Task retry identification. More... | |
| #define | FCP_PRLI_REC 0x0400 |
| REC ELS supported. More... | |
| #define | FCP_PRLI_ENH_DISC 0x0800 |
| Enhanced discovery supported. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void * | fcp_rsp_response_data (struct fcp_rsp *rsp) |
| Get response data portion of FCP response. More... | |
| static size_t | fcp_rsp_response_data_len (struct fcp_rsp *rsp) |
| Get length of response data portion of FCP response. More... | |
| static void * | fcp_rsp_sense_data (struct fcp_rsp *rsp) |
| Get sense data portion of FCP response. More... | |
| static size_t | fcp_rsp_sense_data_len (struct fcp_rsp *rsp) |
| Get length of sense data portion of FCP response. More... | |
Fibre Channel Protocol.
Definition in file fcp.h.
| #define FCP_RSP_RESPONSE_LEN_VALID 0x01 |
| #define FCP_RSP_SENSE_LEN_VALID 0x02 |
| #define FCP_RSP_RESIDUAL_OVERRUN 0x04 |
| #define FCP_RSP_RESIDUAL_UNDERRUN 0x08 |
| #define FCP_PRLI_NO_WRITE_RDY 0x0001 |
| #define FCP_PRLI_NO_READ_RDY 0x0002 |
| #define FCP_PRLI_INITIATOR 0x0020 |
| #define FCP_PRLI_ENH_DISC 0x0800 |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Get response data portion of FCP response.
| rsp | FCP response |
| response_data | Response data, or NULL if not present |
Definition at line 91 of file fcp.h.
References FCP_RSP_RESPONSE_LEN_VALID, NULL, and rsp.
Referenced by fcpcmd_recv_rsp().
Get length of response data portion of FCP response.
| rsp | FCP response |
| response_data_len | Response data length |
Definition at line 102 of file fcp.h.
References FCP_RSP_RESPONSE_LEN_VALID, ntohl, and rsp.
Referenced by fcp_rsp_sense_data(), and fcpcmd_recv_rsp().
|
inlinestatic |
Get sense data portion of FCP response.
| rsp | FCP response |
| sense_data | Sense data, or NULL if not present |
Definition at line 113 of file fcp.h.
References fcp_rsp_response_data_len(), FCP_RSP_SENSE_LEN_VALID, NULL, and rsp.
Referenced by fcpcmd_recv_rsp().
Get length of sense data portion of FCP response.
| rsp | FCP response |
| sense_data_len | Sense data length |
Definition at line 125 of file fcp.h.
References FCP_RSP_SENSE_LEN_VALID, ntohl, and rsp.
Referenced by fcpcmd_recv_rsp().
1.8.15