aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_nx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_nx.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_nx.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c
index fdfe27b38698..f484ff438199 100644
--- a/drivers/scsi/qla4xxx/ql4_nx.c
+++ b/drivers/scsi/qla4xxx/ql4_nx.c
@@ -2015,11 +2015,19 @@ qla4_8xxx_get_flt_info(struct scsi_qla_host *ha, uint32_t flt_addr)
2015 hw->flt_region_boot = start; 2015 hw->flt_region_boot = start;
2016 break; 2016 break;
2017 case FLT_REG_FW_82: 2017 case FLT_REG_FW_82:
2018 case FLT_REG_FW_82_1:
2018 hw->flt_region_fw = start; 2019 hw->flt_region_fw = start;
2019 break; 2020 break;
2020 case FLT_REG_BOOTLOAD_82: 2021 case FLT_REG_BOOTLOAD_82:
2021 hw->flt_region_bootload = start; 2022 hw->flt_region_bootload = start;
2022 break; 2023 break;
2024 case FLT_REG_ISCSI_PARAM:
2025 hw->flt_iscsi_param = start;
2026 break;
2027 case FLT_REG_ISCSI_CHAP:
2028 hw->flt_region_chap = start;
2029 hw->flt_chap_size = le32_to_cpu(region->size);
2030 break;
2023 } 2031 }
2024 } 2032 }
2025 goto done; 2033 goto done;
@@ -2032,6 +2040,9 @@ no_flash_data:
2032 hw->flt_region_boot = FA_BOOT_CODE_ADDR_82; 2040 hw->flt_region_boot = FA_BOOT_CODE_ADDR_82;
2033 hw->flt_region_bootload = FA_BOOT_LOAD_ADDR_82; 2041 hw->flt_region_bootload = FA_BOOT_LOAD_ADDR_82;
2034 hw->flt_region_fw = FA_RISC_CODE_ADDR_82; 2042 hw->flt_region_fw = FA_RISC_CODE_ADDR_82;
2043 hw->flt_region_chap = FA_FLASH_ISCSI_CHAP;
2044 hw->flt_chap_size = FA_FLASH_CHAP_SIZE;
2045
2035done: 2046done:
2036 DEBUG2(ql4_printk(KERN_INFO, ha, "FLT[%s]: flt=0x%x fdt=0x%x " 2047 DEBUG2(ql4_printk(KERN_INFO, ha, "FLT[%s]: flt=0x%x fdt=0x%x "
2037 "boot=0x%x bootload=0x%x fw=0x%x\n", loc, hw->flt_region_flt, 2048 "boot=0x%x bootload=0x%x fw=0x%x\n", loc, hw->flt_region_flt,
@@ -2258,10 +2269,16 @@ int qla4_8xxx_get_sys_info(struct scsi_qla_host *ha)
2258 } 2269 }
2259 2270
2260 /* Save M.A.C. address & serial_number */ 2271 /* Save M.A.C. address & serial_number */
2272 ha->port_num = sys_info->port_num;
2261 memcpy(ha->my_mac, &sys_info->mac_addr[0], 2273 memcpy(ha->my_mac, &sys_info->mac_addr[0],
2262 min(sizeof(ha->my_mac), sizeof(sys_info->mac_addr))); 2274 min(sizeof(ha->my_mac), sizeof(sys_info->mac_addr)));
2263 memcpy(ha->serial_number, &sys_info->serial_number, 2275 memcpy(ha->serial_number, &sys_info->serial_number,
2264 min(sizeof(ha->serial_number), sizeof(sys_info->serial_number))); 2276 min(sizeof(ha->serial_number), sizeof(sys_info->serial_number)));
2277 memcpy(ha->model_name, &sys_info->board_id_str,
2278 min(sizeof(ha->model_name), sizeof(sys_info->board_id_str)));
2279 ha->phy_port_cnt = sys_info->phys_port_cnt;
2280 ha->phy_port_num = sys_info->port_num;
2281 ha->iscsi_pci_func_cnt = sys_info->iscsi_pci_func_cnt;
2265 2282
2266 DEBUG2(printk("scsi%ld: %s: " 2283 DEBUG2(printk("scsi%ld: %s: "
2267 "mac %02x:%02x:%02x:%02x:%02x:%02x " 2284 "mac %02x:%02x:%02x:%02x:%02x:%02x "