Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
cq_exch_desc.h File Reference
#include "cq_desc.h"

Go to the source code of this file.

Data Structures

struct  cq_exch_wq_desc
 
struct  cq_fcp_rq_desc
 
struct  cq_sgl_desc
 

Macros

#define CQ_EXCH_WQ_STATUS_BITS   2
 
#define CQ_EXCH_WQ_STATUS_MASK   ((1 << CQ_EXCH_WQ_STATUS_BITS) - 1)
 
#define CQ_FCP_RQ_DESC_FLAGS_SOP   (1 << 15)
 
#define CQ_FCP_RQ_DESC_FLAGS_EOP   (1 << 14)
 
#define CQ_FCP_RQ_DESC_FLAGS_PRT   (1 << 12)
 
#define CQ_FCP_RQ_DESC_TMPL_MASK   0x1f
 
#define CQ_FCP_RQ_DESC_BYTES_WRITTEN_MASK   0x3fff
 
#define CQ_FCP_RQ_DESC_PACKET_ERR_SHIFT   14
 
#define CQ_FCP_RQ_DESC_PACKET_ERR_MASK   (1 << CQ_FCP_RQ_DESC_PACKET_ERR_SHIFT)
 
#define CQ_FCP_RQ_DESC_VS_STRIPPED_SHIFT   15
 
#define CQ_FCP_RQ_DESC_VS_STRIPPED_MASK   (1 << CQ_FCP_RQ_DESC_VS_STRIPPED_SHIFT)
 
#define CQ_FCP_RQ_DESC_FC_CRC_OK_MASK   0x1
 
#define CQ_FCP_RQ_DESC_FCOE_ERR_SHIFT   1
 
#define CQ_FCP_RQ_DESC_FCOE_ERR_MASK   (1 << CQ_FCP_RQ_DESC_FCOE_ERR_SHIFT)
 
#define CQ_FCP_RQ_DESC_FCS_OK_SHIFT   7
 
#define CQ_FCP_RQ_DESC_FCS_OK_MASK   (1 << CQ_FCP_RQ_DESC_FCS_OK_SHIFT)
 
#define CQ_SGL_SGL_ERR_MASK   0x1f
 
#define CQ_SGL_TMPL_MASK   0x1f
 

Enumerations

enum  cq_exch_status_types { CQ_EXCH_WQ_STATUS_TYPE_COMPLETE = 0, CQ_EXCH_WQ_STATUS_TYPE_ABORT = 1, CQ_EXCH_WQ_STATUS_TYPE_SGL_EOF = 2, CQ_EXCH_WQ_STATUS_TYPE_TMPL_ERR = 3 }
 
enum  cq_sgl_err_types {
  CQ_SGL_ERR_NO_ERROR = 0, CQ_SGL_ERR_OVERFLOW, CQ_SGL_ERR_SGL_LCL_ADDR_ERR, CQ_SGL_ERR_ADDR_RSP_ERR,
  CQ_SGL_ERR_DATA_RSP_ERR, CQ_SGL_ERR_CNT_ZERO_ERR, CQ_SGL_ERR_CNT_MAX_ERR, CQ_SGL_ERR_ORDER_ERR,
  CQ_SGL_ERR_DATA_LCL_ADDR_ERR, CQ_SGL_ERR_HOST_CQ_ERR
}
 

Macro Definition Documentation

#define CQ_EXCH_WQ_STATUS_BITS   2

Definition at line 36 of file cq_exch_desc.h.

#define CQ_EXCH_WQ_STATUS_MASK   ((1 << CQ_EXCH_WQ_STATUS_BITS) - 1)

Definition at line 37 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_BYTES_WRITTEN_MASK   0x3fff

Definition at line 75 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FC_CRC_OK_MASK   0x1

Definition at line 80 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FCOE_ERR_MASK   (1 << CQ_FCP_RQ_DESC_FCOE_ERR_SHIFT)

Definition at line 82 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FCOE_ERR_SHIFT   1

Definition at line 81 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FCS_OK_MASK   (1 << CQ_FCP_RQ_DESC_FCS_OK_SHIFT)

Definition at line 84 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FCS_OK_SHIFT   7

Definition at line 83 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FLAGS_EOP   (1 << 14)

Definition at line 72 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FLAGS_PRT   (1 << 12)

Definition at line 73 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_FLAGS_SOP   (1 << 15)

Definition at line 71 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_PACKET_ERR_MASK   (1 << CQ_FCP_RQ_DESC_PACKET_ERR_SHIFT)

Definition at line 77 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_PACKET_ERR_SHIFT   14

Definition at line 76 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_TMPL_MASK   0x1f

Definition at line 74 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_VS_STRIPPED_MASK   (1 << CQ_FCP_RQ_DESC_VS_STRIPPED_SHIFT)

Definition at line 79 of file cq_exch_desc.h.

#define CQ_FCP_RQ_DESC_VS_STRIPPED_SHIFT   15

Definition at line 78 of file cq_exch_desc.h.

#define CQ_SGL_SGL_ERR_MASK   0x1f

Definition at line 159 of file cq_exch_desc.h.

#define CQ_SGL_TMPL_MASK   0x1f

Definition at line 160 of file cq_exch_desc.h.

Enumeration Type Documentation

Enumerator:
CQ_EXCH_WQ_STATUS_TYPE_COMPLETE 
CQ_EXCH_WQ_STATUS_TYPE_ABORT 
CQ_EXCH_WQ_STATUS_TYPE_SGL_EOF 
CQ_EXCH_WQ_STATUS_TYPE_TMPL_ERR 

Definition at line 39 of file cq_exch_desc.h.

Enumerator:
CQ_SGL_ERR_NO_ERROR 
CQ_SGL_ERR_OVERFLOW 
CQ_SGL_ERR_SGL_LCL_ADDR_ERR 
CQ_SGL_ERR_ADDR_RSP_ERR 
CQ_SGL_ERR_DATA_RSP_ERR 
CQ_SGL_ERR_CNT_ZERO_ERR 
CQ_SGL_ERR_CNT_MAX_ERR 
CQ_SGL_ERR_ORDER_ERR 
CQ_SGL_ERR_DATA_LCL_ADDR_ERR 
CQ_SGL_ERR_HOST_CQ_ERR 

Definition at line 146 of file cq_exch_desc.h.