aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_fw.h
diff options
context:
space:
mode:
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>2011-08-01 06:26:16 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 10:36:33 -0400
commit7c07d139cfec3172e813b468a8a173ad73bb5da9 (patch)
treeb7c83b48845668b75d0efd4d7f4e3eb6fe8570e8 /drivers/scsi/qla4xxx/ql4_fw.h
parent8b0402e1383cd51121f05a1d249cde0212c28c99 (diff)
[SCSI] qla4xxx: Add read/update NVRAM support for 40xx adapters using BSG
Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_fw.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_fw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_fw.h b/drivers/scsi/qla4xxx/ql4_fw.h
index 9dc439b0d75f..581ff7e4621c 100644
--- a/drivers/scsi/qla4xxx/ql4_fw.h
+++ b/drivers/scsi/qla4xxx/ql4_fw.h
@@ -201,6 +201,9 @@ static inline uint32_t clr_rmask(uint32_t val)
201/* ISP 4022 nvram definitions */ 201/* ISP 4022 nvram definitions */
202#define NVR_WRITE_ENABLE 0x00000010 /* 4022 */ 202#define NVR_WRITE_ENABLE 0x00000010 /* 4022 */
203 203
204#define QL4010_NVRAM_SIZE 0x200
205#define QL40X2_NVRAM_SIZE 0x800
206
204/* ISP port_status definitions */ 207/* ISP port_status definitions */
205 208
206/* ISP Semaphore definitions */ 209/* ISP Semaphore definitions */
@@ -359,6 +362,8 @@ struct qla_flt_region {
359#define MBOX_CMD_GET_FW_STATE 0x0069 362#define MBOX_CMD_GET_FW_STATE 0x0069
360#define MBOX_CMD_GET_INIT_FW_CTRL_BLOCK_DEFAULTS 0x006A 363#define MBOX_CMD_GET_INIT_FW_CTRL_BLOCK_DEFAULTS 0x006A
361#define MBOX_CMD_GET_SYS_INFO 0x0078 364#define MBOX_CMD_GET_SYS_INFO 0x0078
365#define MBOX_CMD_GET_NVRAM 0x0078 /* For 40xx */
366#define MBOX_CMD_SET_NVRAM 0x0079 /* For 40xx */
362#define MBOX_CMD_RESTORE_FACTORY_DEFAULTS 0x0087 367#define MBOX_CMD_RESTORE_FACTORY_DEFAULTS 0x0087
363#define MBOX_CMD_SET_ACB 0x0088 368#define MBOX_CMD_SET_ACB 0x0088
364#define MBOX_CMD_GET_ACB 0x0089 369#define MBOX_CMD_GET_ACB 0x0089