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

Go to the source code of this file.

Data Structures

struct  fcpio_tag
 
struct  fcpio_header
 
struct  fcpio_icmnd_16
 
struct  fcpio_icmnd_32
 
struct  fcpio_itmf
 
struct  fcpio_tdata
 
struct  fcpio_txrdy
 
struct  fcpio_trsp
 
struct  fcpio_ttmf_ack
 
struct  fcpio_tabort
 
struct  fcpio_reset
 
struct  fcpio_flogi_reg
 
struct  fcpio_echo
 
struct  fcpio_lunmap_req
 
struct  fcpio_flogi_fip_reg
 
struct  fcpio_host_req
 
struct  fcpio_icmnd_cmpl
 
struct  fcpio_itmf_cmpl
 
struct  fcpio_tcmnd_16
 
struct  fcpio_tcmnd_32
 
struct  fcpio_tdrsp_cmpl
 
struct  fcpio_ttmf
 
struct  fcpio_tabort_cmpl
 
struct  fcpio_ack
 
struct  fcpio_reset_cmpl
 
struct  fcpio_flogi_reg_cmpl
 
struct  fcpio_echo_cmpl
 
struct  fcpio_lunmap_chng
 
struct  fcpio_lunmap_req_cmpl
 
struct  fcpio_fw_req
 
struct  fcpio_lunmap_entry
 
struct  fcpio_lunmap_tbl
 

Macros

#define FCPIO_HOST_EXCH_RANGE_START   0x1000
 
#define FCPIO_HOST_EXCH_RANGE_END   0x1fff
 
#define FCPIO_HOST_SEQ_ID_RANGE_START   0x80
 
#define FCPIO_HOST_SEQ_ID_RANGE_END   0xff
 
#define CDB_16   16
 
#define CDB_32   32
 
#define LUN_ADDRESS   8
 
#define FCPIO_ICMND_SRFLAG_RETRY   0x01 /* Enable Retry handling on exchange */
 
#define FCPIO_ICMND_PTA_SIMPLE   0 /* simple task attribute */
 
#define FCPIO_ICMND_PTA_HEADQ   1 /* head of queue task attribute */
 
#define FCPIO_ICMND_PTA_ORDERED   2 /* ordered task attribute */
 
#define FCPIO_ICMND_PTA_ACA   4 /* auto contingent allegiance */
 
#define FCPIO_ICMND_PRI_SHIFT   3 /* priority field starts in bit 3 */
 
#define FCPIO_ICMND_RDDATA   0x02 /* read data */
 
#define FCPIO_ICMND_WRDATA   0x01 /* write data */
 
#define FCPIO_TDATA_SCSI_RSP   0x01 /* send a scsi resp. after last frame */
 
#define FCPIO_TRSP_RESID_UNDER   0x08 /* residual is valid and is underflow */
 
#define FCPIO_TRSP_RESID_OVER   0x04 /* residual is valid and is overflow */
 
#define FCPIO_HOST_REQ_LEN   128 /* expected length of host requests */
 
#define FCPIO_ICMND_CMPL_RESID_UNDER   0x08 /* resid under and valid */
 
#define FCPIO_ICMND_CMPL_RESID_OVER   0x04 /* resid over and valid */
 
#define FCPIO_TCMND_PTA_SIMPLE   0 /* simple task attribute */
 
#define FCPIO_TCMND_PTA_HEADQ   1 /* head of queue task attribute */
 
#define FCPIO_TCMND_PTA_ORDERED   2 /* ordered task attribute */
 
#define FCPIO_TCMND_PTA_ACA   4 /* auto contingent allegiance */
 
#define FCPIO_TCMND_PRI_SHIFT   3 /* priority field starts in bit 3 */
 
#define FCPIO_TCMND_RDDATA   0x02 /* read data */
 
#define FCPIO_TCMND_WRDATA   0x01 /* write data */
 
#define FCPIO_TTMF_CLR_ACA   0x40 /* Clear ACA condition */
 
#define FCPIO_TTMF_LUN_RESET   0x10 /* logical unit reset task mgmt */
 
#define FCPIO_TTMF_CLR_TASK_SET   0x04 /* clear task set */
 
#define FCPIO_TTMF_ABT_TASK_SET   0x02 /* abort task set */
 
#define FCPIO_TTMF_ABT_TASK   0x01 /* abort task */
 
#define FCPIO_FW_REQ_LEN   64 /* expected length of fw requests */
 
#define FCPIO_LUNMAP_TABLE_SIZE   256
 
#define FCPIO_FLAGS_LUNMAP_VALID   0x80
 
#define FCPIO_FLAGS_BOOT   0x01
 

Enumerations

enum  fcpio_type {
  FCPIO_ICMND_16 = 0x1, FCPIO_ICMND_32, FCPIO_ICMND_CMPL, FCPIO_ITMF,
  FCPIO_ITMF_CMPL, FCPIO_TCMND_16 = 0x11, FCPIO_TCMND_32, FCPIO_TDATA,
  FCPIO_TXRDY, FCPIO_TRSP, FCPIO_TDRSP_CMPL, FCPIO_TTMF,
  FCPIO_TTMF_ACK, FCPIO_TABORT, FCPIO_TABORT_CMPL, FCPIO_ACK = 0x20,
  FCPIO_RESET, FCPIO_RESET_CMPL, FCPIO_FLOGI_REG, FCPIO_FLOGI_REG_CMPL,
  FCPIO_ECHO, FCPIO_ECHO_CMPL, FCPIO_LUNMAP_CHNG, FCPIO_LUNMAP_REQ,
  FCPIO_LUNMAP_REQ_CMPL, FCPIO_FLOGI_FIP_REG, FCPIO_FLOGI_FIP_REG_CMPL
}
 
enum  fcpio_status {
  FCPIO_SUCCESS = 0, FCPIO_INVALID_HEADER, FCPIO_OUT_OF_RESOURCE, FCPIO_INVALID_PARAM,
  FCPIO_REQ_NOT_SUPPORTED, FCPIO_IO_NOT_FOUND, FCPIO_ABORTED = 0x41, FCPIO_TIMEOUT,
  FCPIO_SGL_INVALID, FCPIO_MSS_INVALID, FCPIO_DATA_CNT_MISMATCH, FCPIO_FW_ERR,
  FCPIO_ITMF_REJECTED, FCPIO_ITMF_FAILED, FCPIO_ITMF_INCORRECT_LUN, FCPIO_CMND_REJECTED,
  FCPIO_NO_PATH_AVAIL, FCPIO_PATH_FAILED, FCPIO_LUNMAP_CHNG_PEND
}
 
enum  fcpio_itmf_tm_req_type {
  FCPIO_ITMF_ABT_TASK_TERM = 0x01, FCPIO_ITMF_ABT_TASK, FCPIO_ITMF_ABT_TASK_SET, FCPIO_ITMF_CLR_TASK_SET,
  FCPIO_ITMF_LUN_RESET, FCPIO_ITMF_CLR_ACA
}
 
enum  fcpio_flogi_reg_format_type { FCPIO_FLOGI_REG_DEF_DEST = 0, FCPIO_FLOGI_REG_GW_DEST }
 

Macro Definition Documentation

#define CDB_16   16

Definition at line 194 of file fcpio.h.

#define CDB_32   32

Definition at line 195 of file fcpio.h.

#define FCPIO_FLAGS_BOOT   0x01

Definition at line 765 of file fcpio.h.

#define FCPIO_FLAGS_LUNMAP_VALID   0x80

Definition at line 764 of file fcpio.h.

#define FCPIO_FW_REQ_LEN   64 /* expected length of fw requests */

Definition at line 683 of file fcpio.h.

#define FCPIO_HOST_EXCH_RANGE_END   0x1fff

Definition at line 32 of file fcpio.h.

#define FCPIO_HOST_EXCH_RANGE_START   0x1000

Definition at line 31 of file fcpio.h.

#define FCPIO_HOST_REQ_LEN   128 /* expected length of host requests */

Definition at line 459 of file fcpio.h.

#define FCPIO_HOST_SEQ_ID_RANGE_END   0xff

Definition at line 34 of file fcpio.h.

#define FCPIO_HOST_SEQ_ID_RANGE_START   0x80

Definition at line 33 of file fcpio.h.

#define FCPIO_ICMND_CMPL_RESID_OVER   0x04 /* resid over and valid */

Definition at line 514 of file fcpio.h.

#define FCPIO_ICMND_CMPL_RESID_UNDER   0x08 /* resid under and valid */

Definition at line 513 of file fcpio.h.

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

Definition at line 238 of file fcpio.h.

#define FCPIO_ICMND_PTA_ACA   4 /* auto contingent allegiance */

Definition at line 237 of file fcpio.h.

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

Definition at line 235 of file fcpio.h.

#define FCPIO_ICMND_PTA_ORDERED   2 /* ordered task attribute */

Definition at line 236 of file fcpio.h.

#define FCPIO_ICMND_PTA_SIMPLE   0 /* simple task attribute */

Definition at line 234 of file fcpio.h.

#define FCPIO_ICMND_RDDATA   0x02 /* read data */

Definition at line 243 of file fcpio.h.

#define FCPIO_ICMND_SRFLAG_RETRY   0x01 /* Enable Retry handling on exchange */

Definition at line 229 of file fcpio.h.

#define FCPIO_ICMND_WRDATA   0x01 /* write data */

Definition at line 244 of file fcpio.h.

#define FCPIO_LUNMAP_TABLE_SIZE   256

Definition at line 763 of file fcpio.h.

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

Definition at line 550 of file fcpio.h.

#define FCPIO_TCMND_PTA_ACA   4 /* auto contingent allegiance */

Definition at line 549 of file fcpio.h.

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

Definition at line 547 of file fcpio.h.

#define FCPIO_TCMND_PTA_ORDERED   2 /* ordered task attribute */

Definition at line 548 of file fcpio.h.

#define FCPIO_TCMND_PTA_SIMPLE   0 /* simple task attribute */

Definition at line 546 of file fcpio.h.

#define FCPIO_TCMND_RDDATA   0x02 /* read data */

Definition at line 555 of file fcpio.h.

#define FCPIO_TCMND_WRDATA   0x01 /* write data */

Definition at line 556 of file fcpio.h.

#define FCPIO_TDATA_SCSI_RSP   0x01 /* send a scsi resp. after last frame */

Definition at line 324 of file fcpio.h.

#define FCPIO_TRSP_RESID_OVER   0x04 /* residual is valid and is overflow */

Definition at line 362 of file fcpio.h.

#define FCPIO_TRSP_RESID_UNDER   0x08 /* residual is valid and is underflow */

Definition at line 361 of file fcpio.h.

#define FCPIO_TTMF_ABT_TASK   0x01 /* abort task */

Definition at line 609 of file fcpio.h.

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

Definition at line 608 of file fcpio.h.

#define FCPIO_TTMF_CLR_ACA   0x40 /* Clear ACA condition */

Definition at line 605 of file fcpio.h.

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

Definition at line 607 of file fcpio.h.

#define FCPIO_TTMF_LUN_RESET   0x10 /* logical unit reset task mgmt */

Definition at line 606 of file fcpio.h.

#define LUN_ADDRESS   8

Definition at line 196 of file fcpio.h.

Enumeration Type Documentation

Enumerator:
FCPIO_FLOGI_REG_DEF_DEST 
FCPIO_FLOGI_REG_GW_DEST 

Definition at line 396 of file fcpio.h.

Enumerator:
FCPIO_ITMF_ABT_TASK_TERM 
FCPIO_ITMF_ABT_TASK 
FCPIO_ITMF_ABT_TASK_SET 
FCPIO_ITMF_CLR_TASK_SET 
FCPIO_ITMF_LUN_RESET 
FCPIO_ITMF_CLR_ACA 

Definition at line 297 of file fcpio.h.

Enumerator:
FCPIO_SUCCESS 
FCPIO_INVALID_HEADER 
FCPIO_OUT_OF_RESOURCE 
FCPIO_INVALID_PARAM 
FCPIO_REQ_NOT_SUPPORTED 
FCPIO_IO_NOT_FOUND 
FCPIO_ABORTED 
FCPIO_TIMEOUT 
FCPIO_SGL_INVALID 
FCPIO_MSS_INVALID 
FCPIO_DATA_CNT_MISMATCH 
FCPIO_FW_ERR 
FCPIO_ITMF_REJECTED 
FCPIO_ITMF_FAILED 
FCPIO_ITMF_INCORRECT_LUN 
FCPIO_CMND_REJECTED 
FCPIO_NO_PATH_AVAIL 
FCPIO_PATH_FAILED 
FCPIO_LUNMAP_CHNG_PEND 

Definition at line 83 of file fcpio.h.

enum fcpio_type
Enumerator:
FCPIO_ICMND_16 
FCPIO_ICMND_32 
FCPIO_ICMND_CMPL 
FCPIO_ITMF 
FCPIO_ITMF_CMPL 
FCPIO_TCMND_16 
FCPIO_TCMND_32 
FCPIO_TDATA 
FCPIO_TXRDY 
FCPIO_TRSP 
FCPIO_TDRSP_CMPL 
FCPIO_TTMF 
FCPIO_TTMF_ACK 
FCPIO_TABORT 
FCPIO_TABORT_CMPL 
FCPIO_ACK 
FCPIO_RESET 
FCPIO_RESET_CMPL 
FCPIO_FLOGI_REG 
FCPIO_FLOGI_REG_CMPL 
FCPIO_ECHO 
FCPIO_ECHO_CMPL 
FCPIO_LUNMAP_CHNG 
FCPIO_LUNMAP_REQ 
FCPIO_LUNMAP_REQ_CMPL 
FCPIO_FLOGI_FIP_REG 
FCPIO_FLOGI_FIP_REG_CMPL 

Definition at line 39 of file fcpio.h.