diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.h')
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.h b/drivers/scsi/qla2xxx/qla_bsg.h index 0f0f54e35f06..70caa63a8930 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.h +++ b/drivers/scsi/qla2xxx/qla_bsg.h | |||
| @@ -16,6 +16,16 @@ | |||
| 16 | #define QL_VND_FCP_PRIO_CFG_CMD 0x06 | 16 | #define QL_VND_FCP_PRIO_CFG_CMD 0x06 |
| 17 | #define QL_VND_READ_FLASH 0x07 | 17 | #define QL_VND_READ_FLASH 0x07 |
| 18 | #define QL_VND_UPDATE_FLASH 0x08 | 18 | #define QL_VND_UPDATE_FLASH 0x08 |
| 19 | #define QL_VND_SET_FRU_VERSION 0x0B | ||
| 20 | #define QL_VND_READ_FRU_STATUS 0x0C | ||
| 21 | #define QL_VND_WRITE_FRU_STATUS 0x0D | ||
| 22 | |||
| 23 | /* BSG Vendor specific subcode returns */ | ||
| 24 | #define EXT_STATUS_OK 0 | ||
| 25 | #define EXT_STATUS_ERR 1 | ||
| 26 | #define EXT_STATUS_INVALID_PARAM 6 | ||
| 27 | #define EXT_STATUS_MAILBOX 11 | ||
| 28 | #define EXT_STATUS_NO_MEMORY 17 | ||
| 19 | 29 | ||
| 20 | /* BSG definations for interpreting CommandSent field */ | 30 | /* BSG definations for interpreting CommandSent field */ |
| 21 | #define INT_DEF_LB_LOOPBACK_CMD 0 | 31 | #define INT_DEF_LB_LOOPBACK_CMD 0 |
| @@ -141,4 +151,36 @@ struct qla_port_param { | |||
| 141 | uint16_t mode; | 151 | uint16_t mode; |
| 142 | uint16_t speed; | 152 | uint16_t speed; |
| 143 | } __attribute__ ((packed)); | 153 | } __attribute__ ((packed)); |
| 154 | |||
| 155 | |||
| 156 | /* FRU VPD */ | ||
| 157 | |||
| 158 | #define MAX_FRU_SIZE 36 | ||
| 159 | |||
| 160 | struct qla_field_address { | ||
| 161 | uint16_t offset; | ||
| 162 | uint16_t device; | ||
| 163 | uint16_t option; | ||
| 164 | } __packed; | ||
| 165 | |||
| 166 | struct qla_field_info { | ||
| 167 | uint8_t version[MAX_FRU_SIZE]; | ||
| 168 | } __packed; | ||
| 169 | |||
| 170 | struct qla_image_version { | ||
| 171 | struct qla_field_address field_address; | ||
| 172 | struct qla_field_info field_info; | ||
| 173 | } __packed; | ||
| 174 | |||
| 175 | struct qla_image_version_list { | ||
| 176 | uint32_t count; | ||
| 177 | struct qla_image_version version[0]; | ||
| 178 | } __packed; | ||
| 179 | |||
| 180 | struct qla_status_reg { | ||
| 181 | struct qla_field_address field_address; | ||
| 182 | uint8_t status_reg; | ||
| 183 | uint8_t reserved[7]; | ||
| 184 | } __packed; | ||
| 185 | |||
| 144 | #endif | 186 | #endif |
