diff options
author | Atul Deshmukh <atul.deshmukh@qlogic.com> | 2013-08-27 01:37:28 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-03 10:28:00 -0400 |
commit | 7ec0effd30bb4b1379cd2f5ed1a7bd6b9ec49cfd (patch) | |
tree | e249c7e5d1a3ae11eeeb2e0aef0883872d7e74ce /drivers/scsi/qla2xxx/qla_gbl.h | |
parent | 7b8335589035b47504f98c1a22547f514386a48c (diff) |
[SCSI] qla2xxx: Add support for ISP8044.
[jejb: checkpatch fixes]
Signed-off-by: Atul Deshmukh <atul.deshmukh@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gbl.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gbl.h | 64 |
1 files changed, 47 insertions, 17 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index 2d98232a08eb..2fba354409ef 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h | |||
@@ -435,19 +435,19 @@ qla2x00_process_completed_request(struct scsi_qla_host *, struct req_que *, | |||
435 | */ | 435 | */ |
436 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); | 436 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); |
437 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, | 437 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, |
438 | uint32_t, uint32_t); | 438 | uint32_t, uint32_t); |
439 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 439 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
440 | uint32_t); | 440 | uint32_t); |
441 | extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 441 | extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
442 | uint32_t); | 442 | uint32_t); |
443 | extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 443 | extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
444 | uint32_t); | 444 | uint32_t); |
445 | extern int qla24xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 445 | extern int qla24xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
446 | uint32_t); | 446 | uint32_t); |
447 | extern uint8_t *qla25xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 447 | extern uint8_t *qla25xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
448 | uint32_t); | 448 | uint32_t); |
449 | extern int qla25xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 449 | extern int qla25xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
450 | uint32_t); | 450 | uint32_t); |
451 | extern int qla2x00_is_a_vp_did(scsi_qla_host_t *, uint32_t); | 451 | extern int qla2x00_is_a_vp_did(scsi_qla_host_t *, uint32_t); |
452 | 452 | ||
453 | extern int qla2x00_beacon_on(struct scsi_qla_host *); | 453 | extern int qla2x00_beacon_on(struct scsi_qla_host *); |
@@ -463,21 +463,25 @@ extern int qla83xx_wr_reg(scsi_qla_host_t *, uint32_t, uint32_t); | |||
463 | extern int qla83xx_rd_reg(scsi_qla_host_t *, uint32_t, uint32_t *); | 463 | extern int qla83xx_rd_reg(scsi_qla_host_t *, uint32_t, uint32_t *); |
464 | extern int qla83xx_restart_nic_firmware(scsi_qla_host_t *); | 464 | extern int qla83xx_restart_nic_firmware(scsi_qla_host_t *); |
465 | extern int qla83xx_access_control(scsi_qla_host_t *, uint16_t, uint32_t, | 465 | extern int qla83xx_access_control(scsi_qla_host_t *, uint16_t, uint32_t, |
466 | uint32_t, uint16_t *); | 466 | uint32_t, uint16_t *); |
467 | 467 | ||
468 | extern uint8_t *qla2x00_read_optrom_data(struct scsi_qla_host *, uint8_t *, | 468 | extern uint8_t *qla2x00_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
469 | uint32_t, uint32_t); | 469 | uint32_t, uint32_t); |
470 | extern int qla2x00_write_optrom_data(struct scsi_qla_host *, uint8_t *, | 470 | extern int qla2x00_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
471 | uint32_t, uint32_t); | 471 | uint32_t, uint32_t); |
472 | extern uint8_t *qla24xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, | 472 | extern uint8_t *qla24xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
473 | uint32_t, uint32_t); | 473 | uint32_t, uint32_t); |
474 | extern int qla24xx_write_optrom_data(struct scsi_qla_host *, uint8_t *, | 474 | extern int qla24xx_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
475 | uint32_t, uint32_t); | 475 | uint32_t, uint32_t); |
476 | extern uint8_t *qla25xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, | 476 | extern uint8_t *qla25xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
477 | uint32_t, uint32_t); | 477 | uint32_t, uint32_t); |
478 | extern uint8_t *qla8044_read_optrom_data(struct scsi_qla_host *, | ||
479 | uint8_t *, uint32_t, uint32_t); | ||
480 | extern void qla8044_watchdog(struct scsi_qla_host *vha); | ||
478 | 481 | ||
479 | extern int qla2x00_get_flash_version(scsi_qla_host_t *, void *); | 482 | extern int qla2x00_get_flash_version(scsi_qla_host_t *, void *); |
480 | extern int qla24xx_get_flash_version(scsi_qla_host_t *, void *); | 483 | extern int qla24xx_get_flash_version(scsi_qla_host_t *, void *); |
484 | extern int qla82xx_get_flash_version(scsi_qla_host_t *, void *); | ||
481 | 485 | ||
482 | extern int qla2xxx_get_flash_info(scsi_qla_host_t *); | 486 | extern int qla2xxx_get_flash_info(scsi_qla_host_t *); |
483 | extern int qla2xxx_get_vpd_field(scsi_qla_host_t *, char *, char *, size_t); | 487 | extern int qla2xxx_get_vpd_field(scsi_qla_host_t *, char *, char *, size_t); |
@@ -498,7 +502,7 @@ extern void qla2x00_dump_buffer(uint8_t *, uint32_t); | |||
498 | extern void qla2x00_dump_buffer_zipped(uint8_t *, uint32_t); | 502 | extern void qla2x00_dump_buffer_zipped(uint8_t *, uint32_t); |
499 | extern void ql_dump_regs(uint32_t, scsi_qla_host_t *, int32_t); | 503 | extern void ql_dump_regs(uint32_t, scsi_qla_host_t *, int32_t); |
500 | extern void ql_dump_buffer(uint32_t, scsi_qla_host_t *, int32_t, | 504 | extern void ql_dump_buffer(uint32_t, scsi_qla_host_t *, int32_t, |
501 | uint8_t *, uint32_t); | 505 | uint8_t *, uint32_t); |
502 | extern void qla2xxx_dump_post_process(scsi_qla_host_t *, int); | 506 | extern void qla2xxx_dump_post_process(scsi_qla_host_t *, int); |
503 | 507 | ||
504 | /* | 508 | /* |
@@ -619,9 +623,9 @@ extern int qla82xx_start_firmware(scsi_qla_host_t *); | |||
619 | /* Firmware and flash related functions */ | 623 | /* Firmware and flash related functions */ |
620 | extern int qla82xx_load_risc(scsi_qla_host_t *, uint32_t *); | 624 | extern int qla82xx_load_risc(scsi_qla_host_t *, uint32_t *); |
621 | extern uint8_t *qla82xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, | 625 | extern uint8_t *qla82xx_read_optrom_data(struct scsi_qla_host *, uint8_t *, |
622 | uint32_t, uint32_t); | 626 | uint32_t, uint32_t); |
623 | extern int qla82xx_write_optrom_data(struct scsi_qla_host *, uint8_t *, | 627 | extern int qla82xx_write_optrom_data(struct scsi_qla_host *, uint8_t *, |
624 | uint32_t, uint32_t); | 628 | uint32_t, uint32_t); |
625 | 629 | ||
626 | /* Mailbox related functions */ | 630 | /* Mailbox related functions */ |
627 | extern int qla82xx_abort_isp(scsi_qla_host_t *); | 631 | extern int qla82xx_abort_isp(scsi_qla_host_t *); |
@@ -662,7 +666,7 @@ extern void qla8xxx_dev_failed_handler(scsi_qla_host_t *); | |||
662 | extern void qla82xx_clear_qsnt_ready(scsi_qla_host_t *); | 666 | extern void qla82xx_clear_qsnt_ready(scsi_qla_host_t *); |
663 | 667 | ||
664 | extern void qla2x00_set_model_info(scsi_qla_host_t *, uint8_t *, | 668 | extern void qla2x00_set_model_info(scsi_qla_host_t *, uint8_t *, |
665 | size_t, char *); | 669 | size_t, char *); |
666 | extern int qla82xx_mbx_intr_enable(scsi_qla_host_t *); | 670 | extern int qla82xx_mbx_intr_enable(scsi_qla_host_t *); |
667 | extern int qla82xx_mbx_intr_disable(scsi_qla_host_t *); | 671 | extern int qla82xx_mbx_intr_disable(scsi_qla_host_t *); |
668 | extern void qla82xx_start_iocbs(scsi_qla_host_t *); | 672 | extern void qla82xx_start_iocbs(scsi_qla_host_t *); |
@@ -695,5 +699,31 @@ extern void qla82xx_md_free(scsi_qla_host_t *); | |||
695 | extern int qla82xx_md_collect(scsi_qla_host_t *); | 699 | extern int qla82xx_md_collect(scsi_qla_host_t *); |
696 | extern void qla82xx_md_prep(scsi_qla_host_t *); | 700 | extern void qla82xx_md_prep(scsi_qla_host_t *); |
697 | extern void qla82xx_set_reset_owner(scsi_qla_host_t *); | 701 | extern void qla82xx_set_reset_owner(scsi_qla_host_t *); |
702 | extern int qla82xx_validate_template_chksum(scsi_qla_host_t *vha); | ||
703 | |||
704 | /* Function declarations for ISP8044 */ | ||
705 | extern int qla8044_idc_lock(struct qla_hw_data *ha); | ||
706 | extern void qla8044_idc_unlock(struct qla_hw_data *ha); | ||
707 | extern uint32_t qla8044_rd_reg(struct qla_hw_data *ha, ulong addr); | ||
708 | extern void qla8044_wr_reg(struct qla_hw_data *ha, ulong addr, uint32_t val); | ||
709 | extern void qla8044_read_reset_template(struct scsi_qla_host *ha); | ||
710 | extern void qla8044_set_idc_dontreset(struct scsi_qla_host *ha); | ||
711 | extern int qla8044_rd_direct(struct scsi_qla_host *vha, const uint32_t crb_reg); | ||
712 | extern void qla8044_wr_direct(struct scsi_qla_host *vha, | ||
713 | const uint32_t crb_reg, const uint32_t value); | ||
714 | extern inline void qla8044_set_qsnt_ready(struct scsi_qla_host *vha); | ||
715 | extern inline void qla8044_need_reset_handler(struct scsi_qla_host *vha); | ||
716 | extern int qla8044_device_state_handler(struct scsi_qla_host *vha); | ||
717 | extern void qla8044_clear_qsnt_ready(struct scsi_qla_host *vha); | ||
718 | extern void qla8044_clear_drv_active(struct scsi_qla_host *vha); | ||
719 | void qla8044_get_minidump(struct scsi_qla_host *vha); | ||
720 | int qla8044_collect_md_data(struct scsi_qla_host *vha); | ||
721 | extern int qla8044_md_get_template(scsi_qla_host_t *); | ||
722 | extern int qla8044_write_optrom_data(struct scsi_qla_host *, uint8_t *, | ||
723 | uint32_t, uint32_t); | ||
724 | extern irqreturn_t qla8044_intr_handler(int, void *); | ||
725 | extern void qla82xx_mbx_completion(scsi_qla_host_t *, uint16_t); | ||
726 | extern int qla8044_abort_isp(scsi_qla_host_t *); | ||
727 | extern int qla8044_check_fw_alive(struct scsi_qla_host *); | ||
698 | 728 | ||
699 | #endif /* _QLA_GBL_H */ | 729 | #endif /* _QLA_GBL_H */ |