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

Go to the source code of this file.

Data Structures

struct  set_ct_event
 
struct  get_ct_event
 
struct  get_ct_event_reply
 
struct  send_mgmt_resp
 
struct  diag_mode_set
 
struct  sli4_link_diag
 
struct  diag_mode_test
 
struct  diag_status
 
struct  get_mgmt_rev
 
struct  MgmtRevInfo
 
struct  get_mgmt_rev_reply
 
struct  dfc_mbox_req
 
struct  menlo_command
 
struct  menlo_response
 
struct  lpfc_sli_config_mse
 
struct  lpfc_sli_config_hbd
 
struct  lpfc_sli_config_hdr
 
struct  lpfc_sli_config_emb0_subsys
 
struct  lpfc_sli_config_emb1_subsys
 
struct  lpfc_sli_config_mbox
 

Macros

#define LPFC_BSG_VENDOR_SET_CT_EVENT   1
 
#define LPFC_BSG_VENDOR_GET_CT_EVENT   2
 
#define LPFC_BSG_VENDOR_SEND_MGMT_RESP   3
 
#define LPFC_BSG_VENDOR_DIAG_MODE   4
 
#define LPFC_BSG_VENDOR_DIAG_RUN_LOOPBACK   5
 
#define LPFC_BSG_VENDOR_GET_MGMT_REV   6
 
#define LPFC_BSG_VENDOR_MBOX   7
 
#define LPFC_BSG_VENDOR_MENLO_CMD   8
 
#define LPFC_BSG_VENDOR_MENLO_DATA   9
 
#define LPFC_BSG_VENDOR_DIAG_MODE_END   10
 
#define LPFC_BSG_VENDOR_LINK_DIAG_TEST   11
 
#define INTERNAL_LOOP_BACK   0x1 /* adapter short cuts the loop internally */
 
#define EXTERNAL_LOOP_BACK   0x2 /* requires an external loopback plug */
 
#define LPFC_WWNN_TYPE   0
 
#define LPFC_WWPN_TYPE   1
 
#define MANAGEMENT_MAJOR_REV   1
 
#define MANAGEMENT_MINOR_REV   1
 
#define BSG_MBOX_SIZE   4096 /* mailbox command plus extended data */
 
#define bsg_bf_get_le32(name, ptr)   ((le32_to_cpu((ptr)->name##_WORD) >> name##_SHIFT) & name##_MASK)
 
#define bsg_bf_get(name, ptr)   (((ptr)->name##_WORD >> name##_SHIFT) & name##_MASK)
 
#define bsg_bf_set_le32(name, ptr, value)
 
#define bsg_bf_set(name, ptr, value)
 
#define lpfc_mbox_sli_config_mse_len_SHIFT   0
 
#define lpfc_mbox_sli_config_mse_len_MASK   0xffffff
 
#define lpfc_mbox_sli_config_mse_len_WORD   buf_len
 
#define lpfc_mbox_sli_config_ecmn_hbd_len_SHIFT   0
 
#define lpfc_mbox_sli_config_ecmn_hbd_len_MASK   0xffffff
 
#define lpfc_mbox_sli_config_ecmn_hbd_len_WORD   buf_len
 
#define lpfc_mbox_hdr_emb_SHIFT   0
 
#define lpfc_mbox_hdr_emb_MASK   0x00000001
 
#define lpfc_mbox_hdr_emb_WORD   word1
 
#define lpfc_mbox_hdr_mse_cnt_SHIFT   3
 
#define lpfc_mbox_hdr_mse_cnt_MASK   0x0000001f
 
#define lpfc_mbox_hdr_mse_cnt_WORD   word1
 
#define LPFC_MBX_SLI_CONFIG_MAX_MSE   19
 
#define lpfc_emb0_subcmnd_opcode_SHIFT   0
 
#define lpfc_emb0_subcmnd_opcode_MASK   0xff
 
#define lpfc_emb0_subcmnd_opcode_WORD   word64
 
#define lpfc_emb0_subcmnd_subsys_SHIFT   8
 
#define lpfc_emb0_subcmnd_subsys_MASK   0xff
 
#define lpfc_emb0_subcmnd_subsys_WORD   word64
 
#define SLI_CONFIG_SUBSYS_FCOE   0x0C
 
#define FCOE_OPCODE_READ_FCF   0x08
 
#define FCOE_OPCODE_ADD_FCF   0x09
 
#define lpfc_emb1_subcmnd_opcode_SHIFT   0
 
#define lpfc_emb1_subcmnd_opcode_MASK   0xff
 
#define lpfc_emb1_subcmnd_opcode_WORD   word6
 
#define lpfc_emb1_subcmnd_subsys_SHIFT   8
 
#define lpfc_emb1_subcmnd_subsys_MASK   0xff
 
#define lpfc_emb1_subcmnd_subsys_WORD   word6
 
#define SLI_CONFIG_SUBSYS_COMN   0x01
 
#define COMN_OPCODE_READ_OBJECT   0xAB
 
#define COMN_OPCODE_WRITE_OBJECT   0xAC
 
#define COMN_OPCODE_READ_OBJECT_LIST   0xAD
 
#define COMN_OPCODE_DELETE_OBJECT   0xAE
 
#define COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES   0x79
 
#define COMN_OPCODE_GET_CNTL_ATTRIBUTES   0x20
 
#define lpfc_subcmnd_version_SHIFT   0
 
#define lpfc_subcmnd_version_MASK   0xff
 
#define lpfc_subcmnd_version_WORD   word9
 
#define lpfc_subcmnd_ask_rd_len_SHIFT   0
 
#define lpfc_subcmnd_ask_rd_len_MASK   0xffffff
 
#define lpfc_subcmnd_ask_rd_len_WORD   word10
 
#define LPFC_MBX_SLI_CONFIG_MAX_HBD   8
 
#define lpfc_mqe_status_SHIFT   16
 
#define lpfc_mqe_status_MASK   0x0000FFFF
 
#define lpfc_mqe_status_WORD   word0
 
#define lpfc_mqe_command_SHIFT   8
 
#define lpfc_mqe_command_MASK   0x000000FF
 
#define lpfc_mqe_command_WORD   word0
 
#define SLI_CONFIG_NOT_HANDLED   0
 
#define SLI_CONFIG_HANDLED   1
 

Macro Definition Documentation

#define bsg_bf_get (   name,
  ptr 
)    (((ptr)->name##_WORD >> name##_SHIFT) & name##_MASK)

Definition at line 166 of file lpfc_bsg.h.

#define bsg_bf_get_le32 (   name,
  ptr 
)    ((le32_to_cpu((ptr)->name##_WORD) >> name##_SHIFT) & name##_MASK)

Definition at line 164 of file lpfc_bsg.h.

#define bsg_bf_set (   name,
  ptr,
  value 
)
Value:
((ptr)->name##_WORD = ((((value) & name##_MASK) << name##_SHIFT) | \
((ptr)->name##_WORD & ~(name##_MASK << name##_SHIFT))))

Definition at line 172 of file lpfc_bsg.h.

#define bsg_bf_set_le32 (   name,
  ptr,
  value 
)
Value:
((ptr)->name##_WORD = cpu_to_le32(((((value) & \
name##_MASK) << name##_SHIFT) | (le32_to_cpu((ptr)->name##_WORD) & \
~(name##_MASK << name##_SHIFT)))))

Definition at line 168 of file lpfc_bsg.h.

#define BSG_MBOX_SIZE   4096 /* mailbox command plus extended data */

Definition at line 111 of file lpfc_bsg.h.

#define COMN_OPCODE_DELETE_OBJECT   0xAE

Definition at line 250 of file lpfc_bsg.h.

#define COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES   0x79

Definition at line 251 of file lpfc_bsg.h.

#define COMN_OPCODE_GET_CNTL_ATTRIBUTES   0x20

Definition at line 252 of file lpfc_bsg.h.

#define COMN_OPCODE_READ_OBJECT   0xAB

Definition at line 247 of file lpfc_bsg.h.

#define COMN_OPCODE_READ_OBJECT_LIST   0xAD

Definition at line 249 of file lpfc_bsg.h.

#define COMN_OPCODE_WRITE_OBJECT   0xAC

Definition at line 248 of file lpfc_bsg.h.

#define EXTERNAL_LOOP_BACK   0x2 /* requires an external loopback plug */

Definition at line 64 of file lpfc_bsg.h.

#define FCOE_OPCODE_ADD_FCF   0x09

Definition at line 233 of file lpfc_bsg.h.

#define FCOE_OPCODE_READ_FCF   0x08

Definition at line 232 of file lpfc_bsg.h.

#define INTERNAL_LOOP_BACK   0x1 /* adapter short cuts the loop internally */

Definition at line 63 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_DIAG_MODE   4

Definition at line 30 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_DIAG_MODE_END   10

Definition at line 36 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_DIAG_RUN_LOOPBACK   5

Definition at line 31 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_GET_CT_EVENT   2

Definition at line 28 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_GET_MGMT_REV   6

Definition at line 32 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_LINK_DIAG_TEST   11

Definition at line 37 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_MBOX   7

Definition at line 33 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_MENLO_CMD   8

Definition at line 34 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_MENLO_DATA   9

Definition at line 35 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_SEND_MGMT_RESP   3

Definition at line 29 of file lpfc_bsg.h.

#define LPFC_BSG_VENDOR_SET_CT_EVENT   1

Definition at line 27 of file lpfc_bsg.h.

#define lpfc_emb0_subcmnd_opcode_MASK   0xff

Definition at line 225 of file lpfc_bsg.h.

#define lpfc_emb0_subcmnd_opcode_SHIFT   0

Definition at line 224 of file lpfc_bsg.h.

#define lpfc_emb0_subcmnd_opcode_WORD   word64

Definition at line 226 of file lpfc_bsg.h.

#define lpfc_emb0_subcmnd_subsys_MASK   0xff

Definition at line 228 of file lpfc_bsg.h.

#define lpfc_emb0_subcmnd_subsys_SHIFT   8

Definition at line 227 of file lpfc_bsg.h.

#define lpfc_emb0_subcmnd_subsys_WORD   word64

Definition at line 229 of file lpfc_bsg.h.

#define lpfc_emb1_subcmnd_opcode_MASK   0xff

Definition at line 240 of file lpfc_bsg.h.

#define lpfc_emb1_subcmnd_opcode_SHIFT   0

Definition at line 239 of file lpfc_bsg.h.

#define lpfc_emb1_subcmnd_opcode_WORD   word6

Definition at line 241 of file lpfc_bsg.h.

#define lpfc_emb1_subcmnd_subsys_MASK   0xff

Definition at line 243 of file lpfc_bsg.h.

#define lpfc_emb1_subcmnd_subsys_SHIFT   8

Definition at line 242 of file lpfc_bsg.h.

#define lpfc_emb1_subcmnd_subsys_WORD   word6

Definition at line 244 of file lpfc_bsg.h.

#define lpfc_mbox_hdr_emb_MASK   0x00000001

Definition at line 207 of file lpfc_bsg.h.

#define lpfc_mbox_hdr_emb_SHIFT   0

Definition at line 206 of file lpfc_bsg.h.

#define lpfc_mbox_hdr_emb_WORD   word1

Definition at line 208 of file lpfc_bsg.h.

#define lpfc_mbox_hdr_mse_cnt_MASK   0x0000001f

Definition at line 210 of file lpfc_bsg.h.

#define lpfc_mbox_hdr_mse_cnt_SHIFT   3

Definition at line 209 of file lpfc_bsg.h.

#define lpfc_mbox_hdr_mse_cnt_WORD   word1

Definition at line 211 of file lpfc_bsg.h.

#define lpfc_mbox_sli_config_ecmn_hbd_len_MASK   0xffffff

Definition at line 198 of file lpfc_bsg.h.

#define lpfc_mbox_sli_config_ecmn_hbd_len_SHIFT   0

Definition at line 197 of file lpfc_bsg.h.

#define lpfc_mbox_sli_config_ecmn_hbd_len_WORD   buf_len

Definition at line 199 of file lpfc_bsg.h.

#define lpfc_mbox_sli_config_mse_len_MASK   0xffffff

Definition at line 191 of file lpfc_bsg.h.

#define lpfc_mbox_sli_config_mse_len_SHIFT   0

Definition at line 190 of file lpfc_bsg.h.

#define lpfc_mbox_sli_config_mse_len_WORD   buf_len

Definition at line 192 of file lpfc_bsg.h.

#define LPFC_MBX_SLI_CONFIG_MAX_HBD   8

Definition at line 266 of file lpfc_bsg.h.

#define LPFC_MBX_SLI_CONFIG_MAX_MSE   19

Definition at line 220 of file lpfc_bsg.h.

#define lpfc_mqe_command_MASK   0x000000FF

Definition at line 276 of file lpfc_bsg.h.

#define lpfc_mqe_command_SHIFT   8

Definition at line 275 of file lpfc_bsg.h.

#define lpfc_mqe_command_WORD   word0

Definition at line 277 of file lpfc_bsg.h.

#define lpfc_mqe_status_MASK   0x0000FFFF

Definition at line 273 of file lpfc_bsg.h.

#define lpfc_mqe_status_SHIFT   16

Definition at line 272 of file lpfc_bsg.h.

#define lpfc_mqe_status_WORD   word0

Definition at line 274 of file lpfc_bsg.h.

#define lpfc_subcmnd_ask_rd_len_MASK   0xffffff

Definition at line 261 of file lpfc_bsg.h.

#define lpfc_subcmnd_ask_rd_len_SHIFT   0

Definition at line 260 of file lpfc_bsg.h.

#define lpfc_subcmnd_ask_rd_len_WORD   word10

Definition at line 262 of file lpfc_bsg.h.

#define lpfc_subcmnd_version_MASK   0xff

Definition at line 257 of file lpfc_bsg.h.

#define lpfc_subcmnd_version_SHIFT   0

Definition at line 256 of file lpfc_bsg.h.

#define lpfc_subcmnd_version_WORD   word9

Definition at line 258 of file lpfc_bsg.h.

#define LPFC_WWNN_TYPE   0

Definition at line 91 of file lpfc_bsg.h.

#define LPFC_WWPN_TYPE   1

Definition at line 92 of file lpfc_bsg.h.

#define MANAGEMENT_MAJOR_REV   1

Definition at line 98 of file lpfc_bsg.h.

#define MANAGEMENT_MINOR_REV   1

Definition at line 99 of file lpfc_bsg.h.

#define SLI_CONFIG_HANDLED   1

Definition at line 286 of file lpfc_bsg.h.

#define SLI_CONFIG_NOT_HANDLED   0

Definition at line 285 of file lpfc_bsg.h.

#define SLI_CONFIG_SUBSYS_COMN   0x01

Definition at line 246 of file lpfc_bsg.h.

#define SLI_CONFIG_SUBSYS_FCOE   0x0C

Definition at line 231 of file lpfc_bsg.h.