diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-09-12 00:22:50 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-03 12:46:18 -0400 |
commit | 272976ca186982f7bbc4f22876c53d6c9f7b6e32 (patch) | |
tree | a0e3ecbf54d24da4ccccf881a60a2b788ac7c455 /drivers/scsi/qla2xxx/qla_fw.h | |
parent | c00d8994d91e51aa6b891ad0e877f66cc1011de2 (diff) |
[SCSI] qla2xxx: Add NPIV-Config Table support.
To instatiate pre-configured vport entities defined within an
HBA's flash memory.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_fw.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_fw.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_fw.h b/drivers/scsi/qla2xxx/qla_fw.h index 2ec986bf8344..d1d14202575a 100644 --- a/drivers/scsi/qla2xxx/qla_fw.h +++ b/drivers/scsi/qla2xxx/qla_fw.h | |||
@@ -791,6 +791,8 @@ struct device_reg_24xx { | |||
791 | 791 | ||
792 | #define FA_FLASH_DESCR_ADDR_24 0x11000 | 792 | #define FA_FLASH_DESCR_ADDR_24 0x11000 |
793 | #define FA_FLASH_LAYOUT_ADDR_24 0x11400 | 793 | #define FA_FLASH_LAYOUT_ADDR_24 0x11400 |
794 | #define FA_NPIV_CONF0_ADDR_24 0x16000 | ||
795 | #define FA_NPIV_CONF1_ADDR_24 0x17000 | ||
794 | 796 | ||
795 | #define FA_FW_AREA_ADDR 0x40000 | 797 | #define FA_FW_AREA_ADDR 0x40000 |
796 | #define FA_VPD_NVRAM_ADDR 0x48000 | 798 | #define FA_VPD_NVRAM_ADDR 0x48000 |
@@ -801,6 +803,9 @@ struct device_reg_24xx { | |||
801 | #define FA_HW_EVENT1_ADDR 0x54400 | 803 | #define FA_HW_EVENT1_ADDR 0x54400 |
802 | #define FA_HW_EVENT_SIZE 0x200 | 804 | #define FA_HW_EVENT_SIZE 0x200 |
803 | #define FA_HW_EVENT_ENTRY_SIZE 4 | 805 | #define FA_HW_EVENT_ENTRY_SIZE 4 |
806 | #define FA_NPIV_CONF0_ADDR 0x5C000 | ||
807 | #define FA_NPIV_CONF1_ADDR 0x5D000 | ||
808 | |||
804 | /* | 809 | /* |
805 | * Flash Error Log Event Codes. | 810 | * Flash Error Log Event Codes. |
806 | */ | 811 | */ |
@@ -1230,6 +1235,8 @@ struct qla_flt_header { | |||
1230 | #define FLT_REG_FLT 0x1c | 1235 | #define FLT_REG_FLT 0x1c |
1231 | #define FLT_REG_HW_EVENT_0 0x1d | 1236 | #define FLT_REG_HW_EVENT_0 0x1d |
1232 | #define FLT_REG_HW_EVENT_1 0x1f | 1237 | #define FLT_REG_HW_EVENT_1 0x1f |
1238 | #define FLT_REG_NPIV_CONF_0 0x29 | ||
1239 | #define FLT_REG_NPIV_CONF_1 0x2a | ||
1233 | 1240 | ||
1234 | struct qla_flt_region { | 1241 | struct qla_flt_region { |
1235 | uint32_t code; | 1242 | uint32_t code; |
@@ -1238,6 +1245,25 @@ struct qla_flt_region { | |||
1238 | uint32_t end; | 1245 | uint32_t end; |
1239 | }; | 1246 | }; |
1240 | 1247 | ||
1248 | /* Flash NPIV Configuration Table ********************************************/ | ||
1249 | |||
1250 | struct qla_npiv_header { | ||
1251 | uint8_t sig[2]; | ||
1252 | uint16_t version; | ||
1253 | uint16_t entries; | ||
1254 | uint16_t unused[4]; | ||
1255 | uint16_t checksum; | ||
1256 | }; | ||
1257 | |||
1258 | struct qla_npiv_entry { | ||
1259 | uint16_t flags; | ||
1260 | uint16_t vf_id; | ||
1261 | uint16_t qos; | ||
1262 | uint16_t unused1; | ||
1263 | uint8_t port_name[WWN_SIZE]; | ||
1264 | uint8_t node_name[WWN_SIZE]; | ||
1265 | }; | ||
1266 | |||
1241 | /* 84XX Support **************************************************************/ | 1267 | /* 84XX Support **************************************************************/ |
1242 | 1268 | ||
1243 | #define MBA_ISP84XX_ALERT 0x800f /* Alert Notification. */ | 1269 | #define MBA_ISP84XX_ALERT 0x800f /* Alert Notification. */ |