diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2005-08-26 22:08:30 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-09-04 20:53:07 -0400 |
commit | cca5335caf2d19ef8bd6b833445d2c6ca652a89b (patch) | |
tree | 74bb0b787d9feb1499ed2eafb2aa5a4317b6d3b5 /drivers/scsi/qla2xxx/qla_os.c | |
parent | ad3e0edaceb9771be7ffbd7aa24fb444a7ed85bf (diff) |
[SCSI] qla2xxx: Add FDMI support.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 995e521b07de..0fc37d810e05 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -88,6 +88,12 @@ static void qla2x00_free_device(scsi_qla_host_t *); | |||
88 | 88 | ||
89 | static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); | 89 | static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); |
90 | 90 | ||
91 | int ql2xfdmienable; | ||
92 | module_param(ql2xfdmienable, int, S_IRUGO|S_IRUSR); | ||
93 | MODULE_PARM_DESC(ql2xfdmienable, | ||
94 | "Enables FDMI registratons " | ||
95 | "Default is 0 - no FDMI. 1 - perfom FDMI."); | ||
96 | |||
91 | /* | 97 | /* |
92 | * SCSI host template entry points | 98 | * SCSI host template entry points |
93 | */ | 99 | */ |
@@ -1303,6 +1309,7 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info) | |||
1303 | ha->prev_topology = 0; | 1309 | ha->prev_topology = 0; |
1304 | ha->ports = MAX_BUSES; | 1310 | ha->ports = MAX_BUSES; |
1305 | ha->init_cb_size = sizeof(init_cb_t); | 1311 | ha->init_cb_size = sizeof(init_cb_t); |
1312 | ha->mgmt_svr_loop_id = MANAGEMENT_SERVER; | ||
1306 | 1313 | ||
1307 | /* Assign ISP specific operations. */ | 1314 | /* Assign ISP specific operations. */ |
1308 | ha->isp_ops.pci_config = qla2100_pci_config; | 1315 | ha->isp_ops.pci_config = qla2100_pci_config; |
@@ -1325,6 +1332,7 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info) | |||
1325 | ha->isp_ops.calc_req_entries = qla2x00_calc_iocbs_32; | 1332 | ha->isp_ops.calc_req_entries = qla2x00_calc_iocbs_32; |
1326 | ha->isp_ops.build_iocbs = qla2x00_build_scsi_iocbs_32; | 1333 | ha->isp_ops.build_iocbs = qla2x00_build_scsi_iocbs_32; |
1327 | ha->isp_ops.prep_ms_iocb = qla2x00_prep_ms_iocb; | 1334 | ha->isp_ops.prep_ms_iocb = qla2x00_prep_ms_iocb; |
1335 | ha->isp_ops.prep_ms_fdmi_iocb = qla2x00_prep_ms_fdmi_iocb; | ||
1328 | ha->isp_ops.read_nvram = qla2x00_read_nvram_data; | 1336 | ha->isp_ops.read_nvram = qla2x00_read_nvram_data; |
1329 | ha->isp_ops.write_nvram = qla2x00_write_nvram_data; | 1337 | ha->isp_ops.write_nvram = qla2x00_write_nvram_data; |
1330 | ha->isp_ops.fw_dump = qla2100_fw_dump; | 1338 | ha->isp_ops.fw_dump = qla2100_fw_dump; |
@@ -1362,6 +1370,7 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info) | |||
1362 | ha->response_q_length = RESPONSE_ENTRY_CNT_2300; | 1370 | ha->response_q_length = RESPONSE_ENTRY_CNT_2300; |
1363 | ha->last_loop_id = SNS_LAST_LOOP_ID_2300; | 1371 | ha->last_loop_id = SNS_LAST_LOOP_ID_2300; |
1364 | ha->init_cb_size = sizeof(struct init_cb_24xx); | 1372 | ha->init_cb_size = sizeof(struct init_cb_24xx); |
1373 | ha->mgmt_svr_loop_id = 10; | ||
1365 | ha->isp_ops.pci_config = qla24xx_pci_config; | 1374 | ha->isp_ops.pci_config = qla24xx_pci_config; |
1366 | ha->isp_ops.reset_chip = qla24xx_reset_chip; | 1375 | ha->isp_ops.reset_chip = qla24xx_reset_chip; |
1367 | ha->isp_ops.chip_diag = qla24xx_chip_diag; | 1376 | ha->isp_ops.chip_diag = qla24xx_chip_diag; |
@@ -1382,6 +1391,7 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info) | |||
1382 | ha->isp_ops.fabric_login = qla24xx_login_fabric; | 1391 | ha->isp_ops.fabric_login = qla24xx_login_fabric; |
1383 | ha->isp_ops.fabric_logout = qla24xx_fabric_logout; | 1392 | ha->isp_ops.fabric_logout = qla24xx_fabric_logout; |
1384 | ha->isp_ops.prep_ms_iocb = qla24xx_prep_ms_iocb; | 1393 | ha->isp_ops.prep_ms_iocb = qla24xx_prep_ms_iocb; |
1394 | ha->isp_ops.prep_ms_fdmi_iocb = qla24xx_prep_ms_fdmi_iocb; | ||
1385 | ha->isp_ops.read_nvram = qla24xx_read_nvram_data; | 1395 | ha->isp_ops.read_nvram = qla24xx_read_nvram_data; |
1386 | ha->isp_ops.write_nvram = qla24xx_write_nvram_data; | 1396 | ha->isp_ops.write_nvram = qla24xx_write_nvram_data; |
1387 | ha->isp_ops.fw_dump = qla24xx_fw_dump; | 1397 | ha->isp_ops.fw_dump = qla24xx_fw_dump; |