Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
fc_fcp.h File Reference
#include <scsi/scsi.h>

Go to the source code of this file.

Data Structures

struct  fcp_cmnd
 
struct  fcp_cmnd32
 
struct  fcp_txrdy
 
struct  fcp_resp
 
struct  fcp_resp_ext
 
struct  fcp_resp_rsp_info
 
struct  fcp_resp_with_ext
 
struct  fcp_srr
 

Macros

#define FCP_SPPF_TASK_RETRY_ID   0x0200 /* task retry ID requested */
 
#define FCP_SPPF_RETRY   0x0100 /* retry supported */
 
#define FCP_SPPF_CONF_COMPL   0x0080 /* confirmed completion allowed */
 
#define FCP_SPPF_OVLY_ALLOW   0x0040 /* data overlay allowed */
 
#define FCP_SPPF_INIT_FCN   0x0020 /* initiator function */
 
#define FCP_SPPF_TARG_FCN   0x0010 /* target function */
 
#define FCP_SPPF_RD_XRDY_DIS   0x0002 /* disable XFER_RDY for reads */
 
#define FCP_SPPF_WR_XRDY_DIS   0x0001 /* disable XFER_RDY for writes */
 
#define FCP_CMND_LEN   32 /* expected length of structure */
 
#define FCP_CMND32_LEN   48 /* expected length of structure */
 
#define FCP_CMND32_ADD_LEN   (16 / 4) /* Additional cdb length */
 
#define FCP_PTA_SIMPLE   0 /* simple task attribute */
 
#define FCP_PTA_HEADQ   1 /* head of queue task attribute */
 
#define FCP_PTA_ORDERED   2 /* ordered task attribute */
 
#define FCP_PTA_ACA   4 /* auto. contingent allegiance */
 
#define FCP_PTA_MASK   7 /* mask for task attribute field */
 
#define FCP_PRI_SHIFT   3 /* priority field starts in bit 3 */
 
#define FCP_PRI_RESVD_MASK   0x80 /* reserved bits in priority field */
 
#define FCP_TMF_CLR_ACA   0x40 /* clear ACA condition */
 
#define FCP_TMF_TGT_RESET
 
#define FCP_TMF_LUN_RESET   0x10 /* logical unit reset task management */
 
#define FCP_TMF_CLR_TASK_SET   0x04 /* clear task set */
 
#define FCP_TMF_ABT_TASK_SET   0x02 /* abort task set */
 
#define FCP_CFL_LEN_MASK   0xfc /* mask for additional length */
 
#define FCP_CFL_LEN_SHIFT   2 /* shift bits for additional length */
 
#define FCP_CFL_RDDATA   0x02 /* read data */
 
#define FCP_CFL_WRDATA   0x01 /* write data */
 
#define FCP_TXRDY_LEN   12 /* expected length of structure */
 
#define FCP_RESP_LEN   12 /* expected length of structure */
 
#define FCP_RESP_EXT_LEN   12 /* expected length of the structure */
 
#define FCP_RESP_RSP_INFO_LEN4   4 /* without reserved field */
 
#define FCP_RESP_RSP_INFO_LEN8   8 /* with reserved field */
 
#define FCP_RESP_WITH_EXT   (FCP_RESP_LEN + FCP_RESP_EXT_LEN)
 
#define FCP_BIDI_RSP   0x80 /* bidirectional read response */
 
#define FCP_BIDI_READ_UNDER   0x40 /* bidir. read less than requested */
 
#define FCP_BIDI_READ_OVER   0x20 /* DL insufficient for full transfer */
 
#define FCP_CONF_REQ   0x10 /* confirmation requested */
 
#define FCP_RESID_UNDER   0x08 /* transfer shorter than expected */
 
#define FCP_RESID_OVER   0x04 /* DL insufficient for full transfer */
 
#define FCP_SNS_LEN_VAL   0x02 /* SNS_LEN field is valid */
 
#define FCP_RSP_LEN_VAL   0x01 /* RSP_LEN field is valid */
 
#define FCP_FEAT_TARG   (1 << 0) /* target function supported */
 
#define FCP_FEAT_INIT   (1 << 1) /* initiator function supported */
 

Enumerations

enum  fcp_resp_rsp_codes {
  FCP_TMF_CMPL = 0, FCP_DATA_LEN_INVALID = 1, FCP_CMND_FIELDS_INVALID = 2, FCP_DATA_PARAM_MISMATCH = 3,
  FCP_TMF_REJECTED = 4, FCP_TMF_FAILED = 5, FCP_TMF_INVALID_LUN = 9, FCP_TMF_CMPL = 0,
  FCP_DATA_LEN_INVALID = 1, FCP_CMND_FIELDS_INVALID = 2, FCP_DATA_PARAM_MISMATCH = 3, FCP_TMF_REJECTED = 4,
  FCP_TMF_FAILED = 5, FCP_TMF_INVALID_LUN = 9
}
 

Macro Definition Documentation

#define FCP_BIDI_READ_OVER   0x20 /* DL insufficient for full transfer */

Definition at line 176 of file fc_fcp.h.

#define FCP_BIDI_READ_UNDER   0x40 /* bidir. read less than requested */

Definition at line 175 of file fc_fcp.h.

#define FCP_BIDI_RSP   0x80 /* bidirectional read response */

Definition at line 174 of file fc_fcp.h.

#define FCP_CFL_LEN_MASK   0xfc /* mask for additional length */

Definition at line 98 of file fc_fcp.h.

#define FCP_CFL_LEN_SHIFT   2 /* shift bits for additional length */

Definition at line 99 of file fc_fcp.h.

#define FCP_CFL_RDDATA   0x02 /* read data */

Definition at line 100 of file fc_fcp.h.

#define FCP_CFL_WRDATA   0x01 /* write data */

Definition at line 101 of file fc_fcp.h.

#define FCP_CMND32_ADD_LEN   (16 / 4) /* Additional cdb length */

Definition at line 72 of file fc_fcp.h.

#define FCP_CMND32_LEN   48 /* expected length of structure */

Definition at line 71 of file fc_fcp.h.

#define FCP_CMND_LEN   32 /* expected length of structure */

Definition at line 59 of file fc_fcp.h.

#define FCP_CONF_REQ   0x10 /* confirmation requested */

Definition at line 177 of file fc_fcp.h.

#define FCP_FEAT_INIT   (1 << 1) /* initiator function supported */

Definition at line 213 of file fc_fcp.h.

#define FCP_FEAT_TARG   (1 << 0) /* target function supported */

Definition at line 212 of file fc_fcp.h.

#define FCP_PRI_RESVD_MASK   0x80 /* reserved bits in priority field */

Definition at line 83 of file fc_fcp.h.

#define FCP_PRI_SHIFT   3 /* priority field starts in bit 3 */

Definition at line 82 of file fc_fcp.h.

#define FCP_PTA_ACA   4 /* auto. contingent allegiance */

Definition at line 80 of file fc_fcp.h.

#define FCP_PTA_HEADQ   1 /* head of queue task attribute */

Definition at line 78 of file fc_fcp.h.

#define FCP_PTA_MASK   7 /* mask for task attribute field */

Definition at line 81 of file fc_fcp.h.

#define FCP_PTA_ORDERED   2 /* ordered task attribute */

Definition at line 79 of file fc_fcp.h.

#define FCP_PTA_SIMPLE   0 /* simple task attribute */

Definition at line 77 of file fc_fcp.h.

#define FCP_RESID_OVER   0x04 /* DL insufficient for full transfer */

Definition at line 179 of file fc_fcp.h.

#define FCP_RESID_UNDER   0x08 /* transfer shorter than expected */

Definition at line 178 of file fc_fcp.h.

#define FCP_RESP_EXT_LEN   12 /* expected length of the structure */

Definition at line 153 of file fc_fcp.h.

#define FCP_RESP_LEN   12 /* expected length of structure */

Definition at line 140 of file fc_fcp.h.

#define FCP_RESP_RSP_INFO_LEN4   4 /* without reserved field */

Definition at line 161 of file fc_fcp.h.

#define FCP_RESP_RSP_INFO_LEN8   8 /* with reserved field */

Definition at line 162 of file fc_fcp.h.

#define FCP_RESP_WITH_EXT   (FCP_RESP_LEN + FCP_RESP_EXT_LEN)

Definition at line 169 of file fc_fcp.h.

#define FCP_RSP_LEN_VAL   0x01 /* RSP_LEN field is valid */

Definition at line 181 of file fc_fcp.h.

#define FCP_SNS_LEN_VAL   0x02 /* SNS_LEN field is valid */

Definition at line 180 of file fc_fcp.h.

#define FCP_SPPF_CONF_COMPL   0x0080 /* confirmed completion allowed */

Definition at line 39 of file fc_fcp.h.

#define FCP_SPPF_INIT_FCN   0x0020 /* initiator function */

Definition at line 41 of file fc_fcp.h.

#define FCP_SPPF_OVLY_ALLOW   0x0040 /* data overlay allowed */

Definition at line 40 of file fc_fcp.h.

#define FCP_SPPF_RD_XRDY_DIS   0x0002 /* disable XFER_RDY for reads */

Definition at line 43 of file fc_fcp.h.

#define FCP_SPPF_RETRY   0x0100 /* retry supported */

Definition at line 38 of file fc_fcp.h.

#define FCP_SPPF_TARG_FCN   0x0010 /* target function */

Definition at line 42 of file fc_fcp.h.

#define FCP_SPPF_TASK_RETRY_ID   0x0200 /* task retry ID requested */

Definition at line 37 of file fc_fcp.h.

#define FCP_SPPF_WR_XRDY_DIS   0x0001 /* disable XFER_RDY for writes */

Definition at line 44 of file fc_fcp.h.

#define FCP_TMF_ABT_TASK_SET   0x02 /* abort task set */

Definition at line 92 of file fc_fcp.h.

#define FCP_TMF_CLR_ACA   0x40 /* clear ACA condition */

Definition at line 88 of file fc_fcp.h.

#define FCP_TMF_CLR_TASK_SET   0x04 /* clear task set */

Definition at line 91 of file fc_fcp.h.

#define FCP_TMF_LUN_RESET   0x10 /* logical unit reset task management */

Definition at line 90 of file fc_fcp.h.

#define FCP_TMF_TGT_RESET
Value:
0x20 /* target reset task management,
deprecated as of FCP-3 */

Definition at line 89 of file fc_fcp.h.

#define FCP_TXRDY_LEN   12 /* expected length of structure */

Definition at line 112 of file fc_fcp.h.

Enumeration Type Documentation

Enumerator:
FCP_TMF_CMPL 
FCP_DATA_LEN_INVALID 
FCP_CMND_FIELDS_INVALID 
FCP_DATA_PARAM_MISMATCH 
FCP_TMF_REJECTED 
FCP_TMF_FAILED 
FCP_TMF_INVALID_LUN 
FCP_TMF_CMPL 
FCP_DATA_LEN_INVALID 
FCP_CMND_FIELDS_INVALID 
FCP_DATA_PARAM_MISMATCH 
FCP_TMF_REJECTED 
FCP_TMF_FAILED 
FCP_TMF_INVALID_LUN 

Definition at line 186 of file fc_fcp.h.