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

Go to the source code of this file.

Data Structures

struct  qla84_mgmt_param
 
struct  qla84_msg_mgmt
 
struct  qla_bsg_a84_mgmt
 
struct  qla_scsi_addr
 
struct  qla_ext_dest_addr
 
struct  qla_port_param
 
struct  qla_field_address
 
struct  qla_field_info
 
struct  qla_image_version
 
struct  qla_image_version_list
 
struct  qla_status_reg
 
struct  qla_i2c_access
 

Macros

#define QL_VND_LOOPBACK   0x01
 
#define QL_VND_A84_RESET   0x02
 
#define QL_VND_A84_UPDATE_FW   0x03
 
#define QL_VND_A84_MGMT_CMD   0x04
 
#define QL_VND_IIDMA   0x05
 
#define QL_VND_FCP_PRIO_CFG_CMD   0x06
 
#define QL_VND_READ_FLASH   0x07
 
#define QL_VND_UPDATE_FLASH   0x08
 
#define QL_VND_SET_FRU_VERSION   0x0B
 
#define QL_VND_READ_FRU_STATUS   0x0C
 
#define QL_VND_WRITE_FRU_STATUS   0x0D
 
#define QL_VND_DIAG_IO_CMD   0x0A
 
#define QL_VND_WRITE_I2C   0x10
 
#define QL_VND_READ_I2C   0x11
 
#define EXT_STATUS_OK   0
 
#define EXT_STATUS_ERR   1
 
#define EXT_STATUS_BUSY   2
 
#define EXT_STATUS_INVALID_PARAM   6
 
#define EXT_STATUS_DATA_OVERRUN   7
 
#define EXT_STATUS_DATA_UNDERRUN   8
 
#define EXT_STATUS_MAILBOX   11
 
#define EXT_STATUS_NO_MEMORY   17
 
#define EXT_STATUS_DEVICE_OFFLINE   22
 
#define EXT_STATUS_NOT_SUPPORTED   27
 
#define EXT_STATUS_INVALID_CFG   28
 
#define EXT_STATUS_DMA_ERR   29
 
#define EXT_STATUS_TIMEOUT   30
 
#define EXT_STATUS_THREAD_FAILED   31
 
#define EXT_STATUS_DATA_CMP_FAILED   32
 
#define INT_DEF_LB_LOOPBACK_CMD   0
 
#define INT_DEF_LB_ECHO_CMD   1
 
#define INTERNAL_LOOPBACK   0xF1
 
#define EXTERNAL_LOOPBACK   0xF2
 
#define ENABLE_INTERNAL_LOOPBACK   0x02
 
#define ENABLE_EXTERNAL_LOOPBACK   0x04
 
#define INTERNAL_LOOPBACK_MASK   0x000E
 
#define MAX_ELS_FRAME_PAYLOAD   252
 
#define ELS_OPCODE_BYTE   0x10
 
#define A84_ISSUE_WRITE_TYPE_CMD   0
 
#define A84_ISSUE_READ_TYPE_CMD   1
 
#define A84_CLEANUP_CMD   2
 
#define A84_ISSUE_RESET_OP_FW   3
 
#define A84_ISSUE_RESET_DIAG_FW   4
 
#define A84_ISSUE_UPDATE_OPFW_CMD   5
 
#define A84_ISSUE_UPDATE_DIAGFW_CMD   6
 
#define QLA84_MGMT_CONFIG_ID_UIF   1
 
#define QLA84_MGMT_CONFIG_ID_FCOE_COS   2
 
#define QLA84_MGMT_CONFIG_ID_PAUSE   3
 
#define QLA84_MGMT_CONFIG_ID_TIMEOUTS   4
 
#define QLA84_MGMT_INFO_CONFIG_LOG_DATA   1 /* Get Config Log Data */
 
#define QLA84_MGMT_INFO_LOG_DATA   2 /* Get Log Data */
 
#define QLA84_MGMT_INFO_PORT_STAT   3 /* Get Port Statistics */
 
#define QLA84_MGMT_INFO_LIF_STAT   4 /* Get LIF Statistics */
 
#define QLA84_MGMT_INFO_ASIC_STAT   5 /* Get ASIC Statistics */
 
#define QLA84_MGMT_INFO_CONFIG_PARAMS   6 /* Get Config Parameters */
 
#define QLA84_MGMT_INFO_PANIC_LOG   7 /* Get Panic Log */
 
#define IC_LOG_DATA_LOG_ID_DEBUG_LOG   0
 
#define IC_LOG_DATA_LOG_ID_LEARN_LOG   1
 
#define IC_LOG_DATA_LOG_ID_FC_ACL_INGRESS_LOG   2
 
#define IC_LOG_DATA_LOG_ID_FC_ACL_EGRESS_LOG   3
 
#define IC_LOG_DATA_LOG_ID_ETHERNET_ACL_INGRESS_LOG   4
 
#define IC_LOG_DATA_LOG_ID_ETHERNET_ACL_EGRESS_LOG   5
 
#define IC_LOG_DATA_LOG_ID_MESSAGE_TRANSMIT_LOG   6
 
#define IC_LOG_DATA_LOG_ID_MESSAGE_RECEIVE_LOG   7
 
#define IC_LOG_DATA_LOG_ID_LINK_EVENT_LOG   8
 
#define IC_LOG_DATA_LOG_ID_DCX_LOG   9
 
#define IC_PORT_STATISTICS_PORT_NUMBER_ETHERNET_PORT0   0
 
#define IC_PORT_STATISTICS_PORT_NUMBER_ETHERNET_PORT1   1
 
#define IC_PORT_STATISTICS_PORT_NUMBER_NSL_PORT0   2
 
#define IC_PORT_STATISTICS_PORT_NUMBER_NSL_PORT1   3
 
#define IC_PORT_STATISTICS_PORT_NUMBER_FC_PORT0   4
 
#define IC_PORT_STATISTICS_PORT_NUMBER_FC_PORT1   5
 
#define IC_LIF_STATISTICS_LIF_NUMBER_ETHERNET_PORT0   0
 
#define IC_LIF_STATISTICS_LIF_NUMBER_ETHERNET_PORT1   1
 
#define IC_LIF_STATISTICS_LIF_NUMBER_FC_PORT0   2
 
#define IC_LIF_STATISTICS_LIF_NUMBER_FC_PORT1   3
 
#define IC_LIF_STATISTICS_LIF_NUMBER_CPU   6
 
#define QLA84_MGMT_READ_MEM   0x00
 
#define QLA84_MGMT_WRITE_MEM   0x01
 
#define QLA84_MGMT_CHNG_CONFIG   0x02
 
#define QLA84_MGMT_GET_INFO   0x03
 
#define EXT_DEF_TYPE_WWPN   2
 
#define MAX_FRU_SIZE   36
 

Functions

struct qla_bsg_a84_mgmt __attribute__ ((packed))
 

Variables

struct qla84_msg_mgmt mgmt
 
uint16_t bus
 
uint16_t target
 
union {
   uint8_t   wwnn [8]
 
   uint8_t   wwpn [8]
 
   uint8_t   id [4]
 
   struct qla_scsi_addr   scsi_addr
 
dest_addr
 
uint16_t dest_type
 
uint16_t lun
 
uint16_t padding [2]
 
struct qla_ext_dest_addr fc_scsi_addr
 
uint16_t mode
 
uint16_t speed
 
struct qla_field_address __packed
 

Macro Definition Documentation

#define A84_CLEANUP_CMD   2

Definition at line 64 of file qla_bsg.h.

#define A84_ISSUE_READ_TYPE_CMD   1

Definition at line 63 of file qla_bsg.h.

#define A84_ISSUE_RESET_DIAG_FW   4

Definition at line 66 of file qla_bsg.h.

#define A84_ISSUE_RESET_OP_FW   3

Definition at line 65 of file qla_bsg.h.

#define A84_ISSUE_UPDATE_DIAGFW_CMD   6

Definition at line 68 of file qla_bsg.h.

#define A84_ISSUE_UPDATE_OPFW_CMD   5

Definition at line 67 of file qla_bsg.h.

#define A84_ISSUE_WRITE_TYPE_CMD   0

Definition at line 62 of file qla_bsg.h.

#define ELS_OPCODE_BYTE   0x10

Definition at line 59 of file qla_bsg.h.

#define ENABLE_EXTERNAL_LOOPBACK   0x04

Definition at line 56 of file qla_bsg.h.

#define ENABLE_INTERNAL_LOOPBACK   0x02

Definition at line 55 of file qla_bsg.h.

#define EXT_DEF_TYPE_WWPN   2

Definition at line 175 of file qla_bsg.h.

#define EXT_STATUS_BUSY   2

Definition at line 29 of file qla_bsg.h.

#define EXT_STATUS_DATA_CMP_FAILED   32

Definition at line 46 of file qla_bsg.h.

#define EXT_STATUS_DATA_OVERRUN   7

Definition at line 31 of file qla_bsg.h.

#define EXT_STATUS_DATA_UNDERRUN   8

Definition at line 32 of file qla_bsg.h.

#define EXT_STATUS_DEVICE_OFFLINE   22

Definition at line 35 of file qla_bsg.h.

#define EXT_STATUS_DMA_ERR   29

Definition at line 43 of file qla_bsg.h.

#define EXT_STATUS_ERR   1

Definition at line 28 of file qla_bsg.h.

#define EXT_STATUS_INVALID_CFG   28

Definition at line 42 of file qla_bsg.h.

#define EXT_STATUS_INVALID_PARAM   6

Definition at line 30 of file qla_bsg.h.

#define EXT_STATUS_MAILBOX   11

Definition at line 33 of file qla_bsg.h.

#define EXT_STATUS_NO_MEMORY   17

Definition at line 34 of file qla_bsg.h.

#define EXT_STATUS_NOT_SUPPORTED   27

Definition at line 41 of file qla_bsg.h.

#define EXT_STATUS_OK   0

Definition at line 27 of file qla_bsg.h.

#define EXT_STATUS_THREAD_FAILED   31

Definition at line 45 of file qla_bsg.h.

#define EXT_STATUS_TIMEOUT   30

Definition at line 44 of file qla_bsg.h.

#define EXTERNAL_LOOPBACK   0xF2

Definition at line 54 of file qla_bsg.h.

#define IC_LIF_STATISTICS_LIF_NUMBER_CPU   6

Definition at line 129 of file qla_bsg.h.

#define IC_LIF_STATISTICS_LIF_NUMBER_ETHERNET_PORT0   0

Definition at line 125 of file qla_bsg.h.

#define IC_LIF_STATISTICS_LIF_NUMBER_ETHERNET_PORT1   1

Definition at line 126 of file qla_bsg.h.

#define IC_LIF_STATISTICS_LIF_NUMBER_FC_PORT0   2

Definition at line 127 of file qla_bsg.h.

#define IC_LIF_STATISTICS_LIF_NUMBER_FC_PORT1   3

Definition at line 128 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_DCX_LOG   9

Definition at line 109 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_DEBUG_LOG   0

Definition at line 100 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_ETHERNET_ACL_EGRESS_LOG   5

Definition at line 105 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_ETHERNET_ACL_INGRESS_LOG   4

Definition at line 104 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_FC_ACL_EGRESS_LOG   3

Definition at line 103 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_FC_ACL_INGRESS_LOG   2

Definition at line 102 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_LEARN_LOG   1

Definition at line 101 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_LINK_EVENT_LOG   8

Definition at line 108 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_MESSAGE_RECEIVE_LOG   7

Definition at line 107 of file qla_bsg.h.

#define IC_LOG_DATA_LOG_ID_MESSAGE_TRANSMIT_LOG   6

Definition at line 106 of file qla_bsg.h.

#define IC_PORT_STATISTICS_PORT_NUMBER_ETHERNET_PORT0   0

Definition at line 114 of file qla_bsg.h.

#define IC_PORT_STATISTICS_PORT_NUMBER_ETHERNET_PORT1   1

Definition at line 115 of file qla_bsg.h.

#define IC_PORT_STATISTICS_PORT_NUMBER_FC_PORT0   4

Definition at line 118 of file qla_bsg.h.

#define IC_PORT_STATISTICS_PORT_NUMBER_FC_PORT1   5

Definition at line 119 of file qla_bsg.h.

#define IC_PORT_STATISTICS_PORT_NUMBER_NSL_PORT0   2

Definition at line 116 of file qla_bsg.h.

#define IC_PORT_STATISTICS_PORT_NUMBER_NSL_PORT1   3

Definition at line 117 of file qla_bsg.h.

#define INT_DEF_LB_ECHO_CMD   1

Definition at line 50 of file qla_bsg.h.

#define INT_DEF_LB_LOOPBACK_CMD   0

Definition at line 49 of file qla_bsg.h.

#define INTERNAL_LOOPBACK   0xF1

Definition at line 53 of file qla_bsg.h.

#define INTERNAL_LOOPBACK_MASK   0x000E

Definition at line 57 of file qla_bsg.h.

#define MAX_ELS_FRAME_PAYLOAD   252

Definition at line 58 of file qla_bsg.h.

#define MAX_FRU_SIZE   36

Definition at line 178 of file qla_bsg.h.

#define QL_VND_A84_MGMT_CMD   0x04

Definition at line 14 of file qla_bsg.h.

#define QL_VND_A84_RESET   0x02

Definition at line 12 of file qla_bsg.h.

#define QL_VND_A84_UPDATE_FW   0x03

Definition at line 13 of file qla_bsg.h.

#define QL_VND_DIAG_IO_CMD   0x0A

Definition at line 22 of file qla_bsg.h.

#define QL_VND_FCP_PRIO_CFG_CMD   0x06

Definition at line 16 of file qla_bsg.h.

#define QL_VND_IIDMA   0x05

Definition at line 15 of file qla_bsg.h.

#define QL_VND_LOOPBACK   0x01

Definition at line 11 of file qla_bsg.h.

#define QL_VND_READ_FLASH   0x07

Definition at line 17 of file qla_bsg.h.

#define QL_VND_READ_FRU_STATUS   0x0C

Definition at line 20 of file qla_bsg.h.

#define QL_VND_READ_I2C   0x11

Definition at line 24 of file qla_bsg.h.

#define QL_VND_SET_FRU_VERSION   0x0B

Definition at line 19 of file qla_bsg.h.

#define QL_VND_UPDATE_FLASH   0x08

Definition at line 18 of file qla_bsg.h.

#define QL_VND_WRITE_FRU_STATUS   0x0D

Definition at line 21 of file qla_bsg.h.

#define QL_VND_WRITE_I2C   0x10

Definition at line 23 of file qla_bsg.h.

#define QLA84_MGMT_CHNG_CONFIG   0x02

Definition at line 139 of file qla_bsg.h.

#define QLA84_MGMT_CONFIG_ID_FCOE_COS   2

Definition at line 78 of file qla_bsg.h.

#define QLA84_MGMT_CONFIG_ID_PAUSE   3

Definition at line 79 of file qla_bsg.h.

#define QLA84_MGMT_CONFIG_ID_TIMEOUTS   4

Definition at line 80 of file qla_bsg.h.

#define QLA84_MGMT_CONFIG_ID_UIF   1

Definition at line 77 of file qla_bsg.h.

#define QLA84_MGMT_GET_INFO   0x03

Definition at line 140 of file qla_bsg.h.

#define QLA84_MGMT_INFO_ASIC_STAT   5 /* Get ASIC Statistics */

Definition at line 92 of file qla_bsg.h.

#define QLA84_MGMT_INFO_CONFIG_LOG_DATA   1 /* Get Config Log Data */

Definition at line 88 of file qla_bsg.h.

#define QLA84_MGMT_INFO_CONFIG_PARAMS   6 /* Get Config Parameters */

Definition at line 93 of file qla_bsg.h.

#define QLA84_MGMT_INFO_LIF_STAT   4 /* Get LIF Statistics */

Definition at line 91 of file qla_bsg.h.

#define QLA84_MGMT_INFO_LOG_DATA   2 /* Get Log Data */

Definition at line 89 of file qla_bsg.h.

#define QLA84_MGMT_INFO_PANIC_LOG   7 /* Get Panic Log */

Definition at line 94 of file qla_bsg.h.

#define QLA84_MGMT_INFO_PORT_STAT   3 /* Get Port Statistics */

Definition at line 90 of file qla_bsg.h.

#define QLA84_MGMT_READ_MEM   0x00

Definition at line 137 of file qla_bsg.h.

#define QLA84_MGMT_WRITE_MEM   0x01

Definition at line 138 of file qla_bsg.h.

Function Documentation

struct qla_bsg_a84_mgmt __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

uint16_t bus

Definition at line 155 of file qla_bsg.h.

union { ... } dest_addr
uint16_t dest_type

Definition at line 174 of file qla_bsg.h.

struct qla_ext_dest_addr fc_scsi_addr

Definition at line 174 of file qla_bsg.h.

uint8_t id[4]

Definition at line 171 of file qla_bsg.h.

uint16_t lun

Definition at line 176 of file qla_bsg.h.

Definition at line 150 of file qla_bsg.h.

uint16_t mode

Definition at line 175 of file qla_bsg.h.

uint16_t padding[2]

Definition at line 177 of file qla_bsg.h.

struct qla_scsi_addr scsi_addr

Definition at line 172 of file qla_bsg.h.

uint16_t speed

Definition at line 176 of file qla_bsg.h.

uint16_t target

Definition at line 156 of file qla_bsg.h.

uint8_t wwnn[8]

Definition at line 169 of file qla_bsg.h.

uint8_t wwpn[8]

Definition at line 170 of file qla_bsg.h.