Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
lpfc_sli.h File Reference

Go to the source code of this file.

Data Structures

struct  lpfc_cq_event
 
struct  lpfc_iocbq
 
struct  lpfcMboxq
 
struct  lpfc_sli_ring_mask
 
struct  lpfc_sli_ring_stat
 
struct  lpfc_sli3_ring
 
struct  lpfc_sli4_ring
 
struct  lpfc_sli_ring
 
struct  lpfc_hbq_init
 
struct  lpfc_sli_stat
 
struct  lpfc_lnk_stat
 
struct  lpfc_sli
 

Macros

#define LPFC_IO_LIBDFC   1 /* libdfc iocb */
 
#define LPFC_IO_WAKE   2 /* High Priority Queue signal flag */
 
#define LPFC_IO_FCP   4 /* FCP command -- iocbq in scsi_buf */
 
#define LPFC_DRIVER_ABORTED   8 /* driver aborted this request */
 
#define LPFC_IO_FABRIC   0x10 /* Iocb send using fabric scheduler */
 
#define LPFC_DELAY_MEM_FREE   0x20 /* Defer free'ing of FC data */
 
#define LPFC_EXCHANGE_BUSY   0x40 /* SLI4 hba reported XB in response */
 
#define LPFC_USE_FCPWQIDX   0x80 /* Submit to specified FCPWQ index */
 
#define DSS_SECURITY_OP   0x100 /* security IO */
 
#define LPFC_IO_ON_TXCMPLQ   0x200 /* The IO is still on the TXCMPLQ */
 
#define LPFC_IO_DIF   0x400 /* T10 DIF IO */
 
#define LPFC_FIP_ELS_ID_MASK   0xc000 /* ELS_ID range 0-3, non-shifted mask */
 
#define LPFC_FIP_ELS_ID_SHIFT   14
 
#define SLI_IOCB_RET_IOCB   1 /* Return IOCB if cmd ring full */
 
#define IOCB_SUCCESS   0
 
#define IOCB_BUSY   1
 
#define IOCB_ERROR   2
 
#define IOCB_TIMEDOUT   3
 
#define LPFC_MBX_WAKE   1
 
#define LPFC_MBX_IMED_UNREG   2
 
#define MBX_POLL
 
#define MBX_NOWAIT   2 /* issue command then return immediately */
 
#define LPFC_MAX_RING_MASK
 
#define LPFC_SLI3_MAX_RING
 
#define LPFC_DEFERRED_RING_EVENT   0x001 /* Deferred processing a ring event */
 
#define LPFC_CALL_RING_AVAILABLE   0x002 /* indicates cmd was full */
 
#define LPFC_STOP_IOCB_EVENT   0x020 /* Stop processing IOCB cmds event */
 
#define LPFC_SLI_MBOX_ACTIVE   0x100 /* HBA mailbox is currently active */
 
#define LPFC_SLI_ACTIVE   0x200 /* SLI in firmware is active */
 
#define LPFC_PROCESS_LA   0x400 /* Able to process link attention */
 
#define LPFC_BLOCK_MGMT_IO   0x800 /* Don't allow mgmt mbx or iocb cmds */
 
#define LPFC_MENLO_MAINT   0x1000 /* need for menl fw download */
 
#define LPFC_SLI_ASYNC_MBX_BLK   0x2000 /* Async mailbox is blocked */
 
#define LPFC_IOCBQ_LOOKUP_INCREMENT   1024
 
#define LPFC_MBOX_TMO   30
 
#define LPFC_MBOX_SLI4_CONFIG_TMO   60
 
#define LPFC_MBOX_SLI4_CONFIG_EXTENDED_TMO   300
 
#define LPFC_MBOX_TMO_FLASH_CMD   300
 

Typedefs

typedef enum _lpfc_ctx_cmd lpfc_ctx_cmd
 
typedef struct lpfcMboxq LPFC_MBOXQ_t
 

Enumerations

enum  _lpfc_ctx_cmd { LPFC_CTX_LUN, LPFC_CTX_TGT, LPFC_CTX_HOST }
 

Macro Definition Documentation

#define DSS_SECURITY_OP   0x100 /* security IO */

Definition at line 70 of file lpfc_sli.h.

#define IOCB_BUSY   1

Definition at line 101 of file lpfc_sli.h.

#define IOCB_ERROR   2

Definition at line 102 of file lpfc_sli.h.

#define IOCB_SUCCESS   0

Definition at line 100 of file lpfc_sli.h.

#define IOCB_TIMEDOUT   3

Definition at line 103 of file lpfc_sli.h.

#define LPFC_BLOCK_MGMT_IO   0x800 /* Don't allow mgmt mbx or iocb cmds */

Definition at line 283 of file lpfc_sli.h.

#define LPFC_CALL_RING_AVAILABLE   0x002 /* indicates cmd was full */

Definition at line 181 of file lpfc_sli.h.

#define LPFC_DEFERRED_RING_EVENT   0x001 /* Deferred processing a ring event */

Definition at line 180 of file lpfc_sli.h.

#define LPFC_DELAY_MEM_FREE   0x20 /* Defer free'ing of FC data */

Definition at line 67 of file lpfc_sli.h.

#define LPFC_DRIVER_ABORTED   8 /* driver aborted this request */

Definition at line 65 of file lpfc_sli.h.

#define LPFC_EXCHANGE_BUSY   0x40 /* SLI4 hba reported XB in response */

Definition at line 68 of file lpfc_sli.h.

#define LPFC_FIP_ELS_ID_MASK   0xc000 /* ELS_ID range 0-3, non-shifted mask */

Definition at line 74 of file lpfc_sli.h.

#define LPFC_FIP_ELS_ID_SHIFT   14

Definition at line 75 of file lpfc_sli.h.

#define LPFC_IO_DIF   0x400 /* T10 DIF IO */

Definition at line 72 of file lpfc_sli.h.

#define LPFC_IO_FABRIC   0x10 /* Iocb send using fabric scheduler */

Definition at line 66 of file lpfc_sli.h.

#define LPFC_IO_FCP   4 /* FCP command -- iocbq in scsi_buf */

Definition at line 64 of file lpfc_sli.h.

#define LPFC_IO_LIBDFC   1 /* libdfc iocb */

Definition at line 62 of file lpfc_sli.h.

#define LPFC_IO_ON_TXCMPLQ   0x200 /* The IO is still on the TXCMPLQ */

Definition at line 71 of file lpfc_sli.h.

#define LPFC_IO_WAKE   2 /* High Priority Queue signal flag */

Definition at line 63 of file lpfc_sli.h.

#define LPFC_IOCBQ_LOOKUP_INCREMENT   1024

Definition at line 303 of file lpfc_sli.h.

#define LPFC_MAX_RING_MASK
Value:
5 /* max num of rctl/type masks allowed per
ring */

Definition at line 131 of file lpfc_sli.h.

#define LPFC_MBOX_SLI4_CONFIG_EXTENDED_TMO   300

Definition at line 316 of file lpfc_sli.h.

#define LPFC_MBOX_SLI4_CONFIG_TMO   60

Definition at line 314 of file lpfc_sli.h.

#define LPFC_MBOX_TMO   30

Definition at line 312 of file lpfc_sli.h.

#define LPFC_MBOX_TMO_FLASH_CMD   300

Definition at line 318 of file lpfc_sli.h.

#define LPFC_MBX_IMED_UNREG   2

Definition at line 106 of file lpfc_sli.h.

#define LPFC_MBX_WAKE   1

Definition at line 105 of file lpfc_sli.h.

#define LPFC_MENLO_MAINT   0x1000 /* need for menl fw download */

Definition at line 284 of file lpfc_sli.h.

#define LPFC_PROCESS_LA   0x400 /* Able to process link attention */

Definition at line 282 of file lpfc_sli.h.

#define LPFC_SLI3_MAX_RING
Value:
4 /* Max num of SLI3 rings used by driver.
For SLI4, an additional ring for each
FCP WQ will be allocated. */

Definition at line 132 of file lpfc_sli.h.

#define LPFC_SLI_ACTIVE   0x200 /* SLI in firmware is active */

Definition at line 281 of file lpfc_sli.h.

#define LPFC_SLI_ASYNC_MBX_BLK   0x2000 /* Async mailbox is blocked */

Definition at line 285 of file lpfc_sli.h.

#define LPFC_SLI_MBOX_ACTIVE   0x100 /* HBA mailbox is currently active */

Definition at line 280 of file lpfc_sli.h.

#define LPFC_STOP_IOCB_EVENT   0x020 /* Stop processing IOCB cmds event */

Definition at line 182 of file lpfc_sli.h.

#define LPFC_USE_FCPWQIDX   0x80 /* Submit to specified FCPWQ index */

Definition at line 69 of file lpfc_sli.h.

#define MBX_NOWAIT   2 /* issue command then return immediately */

Definition at line 129 of file lpfc_sli.h.

#define MBX_POLL
Value:
1 /* poll mailbox till command done, then
return */

Definition at line 128 of file lpfc_sli.h.

#define SLI_IOCB_RET_IOCB   1 /* Return IOCB if cmd ring full */

Definition at line 98 of file lpfc_sli.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
LPFC_CTX_LUN 
LPFC_CTX_TGT 
LPFC_CTX_HOST 

Definition at line 26 of file lpfc_sli.h.