162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * QLogic iSCSI HBA Driver 462306a36Sopenharmony_ci * Copyright (c) 2003-2013 QLogic Corporation 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#ifndef __QLA4x_GBL_H 862306a36Sopenharmony_ci#define __QLA4x_GBL_H 962306a36Sopenharmony_ci 1062306a36Sopenharmony_cistruct iscsi_cls_conn; 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciint qla4xxx_hw_reset(struct scsi_qla_host *ha); 1362306a36Sopenharmony_ciint ql4xxx_lock_drvr_wait(struct scsi_qla_host *a); 1462306a36Sopenharmony_ciint qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb *srb); 1562306a36Sopenharmony_ciint qla4xxx_initialize_adapter(struct scsi_qla_host *ha, int is_reset); 1662306a36Sopenharmony_ciint qla4xxx_soft_reset(struct scsi_qla_host *ha); 1762306a36Sopenharmony_ciirqreturn_t qla4xxx_intr_handler(int irq, void *dev_id); 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_civoid qla4xxx_free_ddb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry); 2062306a36Sopenharmony_civoid qla4xxx_process_aen(struct scsi_qla_host *ha, uint8_t process_aen); 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciint qla4xxx_get_dhcp_ip_address(struct scsi_qla_host *ha); 2362306a36Sopenharmony_ciint qla4xxx_abort_task(struct scsi_qla_host *ha, struct srb *srb); 2462306a36Sopenharmony_ciint qla4xxx_reset_lun(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, 2562306a36Sopenharmony_ci uint64_t lun); 2662306a36Sopenharmony_ciint qla4xxx_reset_target(struct scsi_qla_host *ha, 2762306a36Sopenharmony_ci struct ddb_entry *ddb_entry); 2862306a36Sopenharmony_ciint qla4xxx_get_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr, 2962306a36Sopenharmony_ci uint32_t offset, uint32_t len); 3062306a36Sopenharmony_ciint qla4xxx_get_firmware_status(struct scsi_qla_host *ha); 3162306a36Sopenharmony_ciint qla4xxx_get_firmware_state(struct scsi_qla_host *ha); 3262306a36Sopenharmony_ciint qla4xxx_initialize_fw_cb(struct scsi_qla_host *ha); 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci/* FIXME: Goodness! this really wants a small struct to hold the 3562306a36Sopenharmony_ci * parameters. On x86 the args will get passed on the stack! */ 3662306a36Sopenharmony_ciint qla4xxx_get_fwddb_entry(struct scsi_qla_host *ha, 3762306a36Sopenharmony_ci uint16_t fw_ddb_index, 3862306a36Sopenharmony_ci struct dev_db_entry *fw_ddb_entry, 3962306a36Sopenharmony_ci dma_addr_t fw_ddb_entry_dma, 4062306a36Sopenharmony_ci uint32_t *num_valid_ddb_entries, 4162306a36Sopenharmony_ci uint32_t *next_ddb_index, 4262306a36Sopenharmony_ci uint32_t *fw_ddb_device_state, 4362306a36Sopenharmony_ci uint32_t *conn_err_detail, 4462306a36Sopenharmony_ci uint16_t *tcp_source_port_num, 4562306a36Sopenharmony_ci uint16_t *connection_id); 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ciint qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index, 4862306a36Sopenharmony_ci dma_addr_t fw_ddb_entry_dma, uint32_t *mbx_sts); 4962306a36Sopenharmony_ciuint8_t qla4xxx_get_ifcb(struct scsi_qla_host *ha, uint32_t *mbox_cmd, 5062306a36Sopenharmony_ci uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma); 5162306a36Sopenharmony_ciint qla4xxx_conn_close_sess_logout(struct scsi_qla_host *ha, 5262306a36Sopenharmony_ci uint16_t fw_ddb_index, 5362306a36Sopenharmony_ci uint16_t connection_id, 5462306a36Sopenharmony_ci uint16_t option); 5562306a36Sopenharmony_ciint qla4xxx_disable_acb(struct scsi_qla_host *ha); 5662306a36Sopenharmony_ciint qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd, 5762306a36Sopenharmony_ci uint32_t *mbox_sts, dma_addr_t acb_dma); 5862306a36Sopenharmony_ciint qla4xxx_get_acb(struct scsi_qla_host *ha, dma_addr_t acb_dma, 5962306a36Sopenharmony_ci uint32_t acb_type, uint32_t len); 6062306a36Sopenharmony_ciint qla4xxx_get_ip_state(struct scsi_qla_host *ha, uint32_t acb_idx, 6162306a36Sopenharmony_ci uint32_t ip_idx, uint32_t *sts); 6262306a36Sopenharmony_civoid qla4xxx_mark_device_missing(struct iscsi_cls_session *cls_session); 6362306a36Sopenharmony_ciu16 rd_nvram_word(struct scsi_qla_host *ha, int offset); 6462306a36Sopenharmony_ciu8 rd_nvram_byte(struct scsi_qla_host *ha, int offset); 6562306a36Sopenharmony_civoid qla4xxx_get_crash_record(struct scsi_qla_host *ha); 6662306a36Sopenharmony_ciint qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host *ha); 6762306a36Sopenharmony_ciint qla4xxx_about_firmware(struct scsi_qla_host *ha); 6862306a36Sopenharmony_civoid qla4xxx_interrupt_service_routine(struct scsi_qla_host *ha, 6962306a36Sopenharmony_ci uint32_t intr_status); 7062306a36Sopenharmony_ciint qla4xxx_init_rings(struct scsi_qla_host *ha); 7162306a36Sopenharmony_civoid qla4xxx_srb_compl(struct kref *ref); 7262306a36Sopenharmony_cistruct srb *qla4xxx_del_from_active_array(struct scsi_qla_host *ha, 7362306a36Sopenharmony_ci uint32_t index); 7462306a36Sopenharmony_ciint qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index, 7562306a36Sopenharmony_ci uint32_t state, uint32_t conn_error); 7662306a36Sopenharmony_civoid qla4xxx_dump_buffer(void *b, uint32_t size); 7762306a36Sopenharmony_ciint qla4xxx_send_marker_iocb(struct scsi_qla_host *ha, 7862306a36Sopenharmony_ci struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod); 7962306a36Sopenharmony_ciint qla4xxx_set_flash(struct scsi_qla_host *ha, dma_addr_t dma_addr, 8062306a36Sopenharmony_ci uint32_t offset, uint32_t length, uint32_t options); 8162306a36Sopenharmony_ciint qla4xxx_mailbox_command(struct scsi_qla_host *ha, uint8_t inCount, 8262306a36Sopenharmony_ci uint8_t outCount, uint32_t *mbx_cmd, uint32_t *mbx_sts); 8362306a36Sopenharmony_ciint qla4xxx_get_chap_index(struct scsi_qla_host *ha, char *username, 8462306a36Sopenharmony_ci char *password, int bidi, uint16_t *chap_index); 8562306a36Sopenharmony_ciint qla4xxx_set_chap(struct scsi_qla_host *ha, char *username, char *password, 8662306a36Sopenharmony_ci uint16_t idx, int bidi); 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_civoid qla4xxx_queue_iocb(struct scsi_qla_host *ha); 8962306a36Sopenharmony_civoid qla4xxx_complete_iocb(struct scsi_qla_host *ha); 9062306a36Sopenharmony_ciint qla4xxx_get_sys_info(struct scsi_qla_host *ha); 9162306a36Sopenharmony_ciint qla4xxx_iospace_config(struct scsi_qla_host *ha); 9262306a36Sopenharmony_civoid qla4xxx_pci_config(struct scsi_qla_host *ha); 9362306a36Sopenharmony_ciint qla4xxx_start_firmware(struct scsi_qla_host *ha); 9462306a36Sopenharmony_ciirqreturn_t qla4xxx_intr_handler(int irq, void *dev_id); 9562306a36Sopenharmony_ciuint16_t qla4xxx_rd_shdw_req_q_out(struct scsi_qla_host *ha); 9662306a36Sopenharmony_ciuint16_t qla4xxx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha); 9762306a36Sopenharmony_ciint qla4xxx_request_irqs(struct scsi_qla_host *ha); 9862306a36Sopenharmony_civoid qla4xxx_free_irqs(struct scsi_qla_host *ha); 9962306a36Sopenharmony_civoid qla4xxx_process_response_queue(struct scsi_qla_host *ha); 10062306a36Sopenharmony_civoid qla4xxx_wake_dpc(struct scsi_qla_host *ha); 10162306a36Sopenharmony_civoid qla4xxx_get_conn_event_log(struct scsi_qla_host *ha); 10262306a36Sopenharmony_civoid qla4xxx_mailbox_premature_completion(struct scsi_qla_host *ha); 10362306a36Sopenharmony_civoid qla4xxx_dump_registers(struct scsi_qla_host *ha); 10462306a36Sopenharmony_ciuint8_t qla4xxx_update_local_ifcb(struct scsi_qla_host *ha, 10562306a36Sopenharmony_ci uint32_t *mbox_cmd, 10662306a36Sopenharmony_ci uint32_t *mbox_sts, 10762306a36Sopenharmony_ci struct addr_ctrl_blk *init_fw_cb, 10862306a36Sopenharmony_ci dma_addr_t init_fw_cb_dma); 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_civoid qla4_8xxx_pci_config(struct scsi_qla_host *); 11162306a36Sopenharmony_ciint qla4_8xxx_iospace_config(struct scsi_qla_host *ha); 11262306a36Sopenharmony_ciint qla4_8xxx_load_risc(struct scsi_qla_host *); 11362306a36Sopenharmony_ciirqreturn_t qla4_82xx_intr_handler(int irq, void *dev_id); 11462306a36Sopenharmony_civoid qla4_82xx_queue_iocb(struct scsi_qla_host *ha); 11562306a36Sopenharmony_civoid qla4_82xx_complete_iocb(struct scsi_qla_host *ha); 11662306a36Sopenharmony_ci 11762306a36Sopenharmony_civoid qla4_82xx_crb_win_unlock(struct scsi_qla_host *); 11862306a36Sopenharmony_ciint qla4_82xx_pci_get_crb_addr_2M(struct scsi_qla_host *, ulong *); 11962306a36Sopenharmony_civoid qla4_82xx_wr_32(struct scsi_qla_host *, ulong, u32); 12062306a36Sopenharmony_ciuint32_t qla4_82xx_rd_32(struct scsi_qla_host *, ulong); 12162306a36Sopenharmony_ciint qla4_82xx_pci_mem_read_2M(struct scsi_qla_host *, u64, void *, int); 12262306a36Sopenharmony_ciint qla4_82xx_pci_mem_write_2M(struct scsi_qla_host *ha, u64, void *, int); 12362306a36Sopenharmony_ciint qla4_82xx_isp_reset(struct scsi_qla_host *ha); 12462306a36Sopenharmony_civoid qla4_82xx_interrupt_service_routine(struct scsi_qla_host *ha, 12562306a36Sopenharmony_ci uint32_t intr_status); 12662306a36Sopenharmony_ciuint16_t qla4_82xx_rd_shdw_req_q_out(struct scsi_qla_host *ha); 12762306a36Sopenharmony_ciuint16_t qla4_82xx_rd_shdw_rsp_q_in(struct scsi_qla_host *ha); 12862306a36Sopenharmony_ciint qla4_8xxx_get_sys_info(struct scsi_qla_host *ha); 12962306a36Sopenharmony_civoid qla4_8xxx_watchdog(struct scsi_qla_host *ha); 13062306a36Sopenharmony_ciint qla4_8xxx_stop_firmware(struct scsi_qla_host *ha); 13162306a36Sopenharmony_ciint qla4_8xxx_get_flash_info(struct scsi_qla_host *ha); 13262306a36Sopenharmony_civoid qla4_82xx_enable_intrs(struct scsi_qla_host *ha); 13362306a36Sopenharmony_civoid qla4_82xx_disable_intrs(struct scsi_qla_host *ha); 13462306a36Sopenharmony_ciint qla4_8xxx_enable_msix(struct scsi_qla_host *ha); 13562306a36Sopenharmony_ciirqreturn_t qla4_8xxx_msi_handler(int irq, void *dev_id); 13662306a36Sopenharmony_ciirqreturn_t qla4_8xxx_default_intr_handler(int irq, void *dev_id); 13762306a36Sopenharmony_ciirqreturn_t qla4_8xxx_msix_rsp_q(int irq, void *dev_id); 13862306a36Sopenharmony_civoid qla4xxx_mark_all_devices_missing(struct scsi_qla_host *ha); 13962306a36Sopenharmony_civoid qla4xxx_dead_adapter_cleanup(struct scsi_qla_host *ha); 14062306a36Sopenharmony_ciint qla4_82xx_idc_lock(struct scsi_qla_host *ha); 14162306a36Sopenharmony_civoid qla4_82xx_idc_unlock(struct scsi_qla_host *ha); 14262306a36Sopenharmony_ciint qla4_8xxx_device_state_handler(struct scsi_qla_host *ha); 14362306a36Sopenharmony_civoid qla4_8xxx_need_qsnt_handler(struct scsi_qla_host *ha); 14462306a36Sopenharmony_civoid qla4_8xxx_clear_drv_active(struct scsi_qla_host *ha); 14562306a36Sopenharmony_civoid qla4_8xxx_set_drv_active(struct scsi_qla_host *ha); 14662306a36Sopenharmony_ciint qla4xxx_conn_open(struct scsi_qla_host *ha, uint16_t fw_ddb_index); 14762306a36Sopenharmony_ciint qla4xxx_set_param_ddbentry(struct scsi_qla_host *ha, 14862306a36Sopenharmony_ci struct ddb_entry *ddb_entry, 14962306a36Sopenharmony_ci struct iscsi_cls_conn *cls_conn, 15062306a36Sopenharmony_ci uint32_t *mbx_sts); 15162306a36Sopenharmony_ciint qla4xxx_session_logout_ddb(struct scsi_qla_host *ha, 15262306a36Sopenharmony_ci struct ddb_entry *ddb_entry, int options); 15362306a36Sopenharmony_ciint qla4xxx_req_ddb_entry(struct scsi_qla_host *ha, uint32_t fw_ddb_index, 15462306a36Sopenharmony_ci uint32_t *mbx_sts); 15562306a36Sopenharmony_ciint qla4xxx_clear_ddb_entry(struct scsi_qla_host *ha, uint32_t fw_ddb_index); 15662306a36Sopenharmony_ciint qla4xxx_send_passthru0(struct iscsi_task *task); 15762306a36Sopenharmony_civoid qla4xxx_free_ddb_index(struct scsi_qla_host *ha); 15862306a36Sopenharmony_ciint qla4xxx_get_mgmt_data(struct scsi_qla_host *ha, uint16_t fw_ddb_index, 15962306a36Sopenharmony_ci uint16_t stats_size, dma_addr_t stats_dma); 16062306a36Sopenharmony_civoid qla4xxx_update_session_conn_param(struct scsi_qla_host *ha, 16162306a36Sopenharmony_ci struct ddb_entry *ddb_entry); 16262306a36Sopenharmony_civoid qla4xxx_update_session_conn_fwddb_param(struct scsi_qla_host *ha, 16362306a36Sopenharmony_ci struct ddb_entry *ddb_entry); 16462306a36Sopenharmony_ciint qla4xxx_bootdb_by_index(struct scsi_qla_host *ha, 16562306a36Sopenharmony_ci struct dev_db_entry *fw_ddb_entry, 16662306a36Sopenharmony_ci dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index); 16762306a36Sopenharmony_ciint qla4xxx_get_chap(struct scsi_qla_host *ha, char *username, 16862306a36Sopenharmony_ci char *password, uint16_t idx); 16962306a36Sopenharmony_ciint qla4xxx_get_nvram(struct scsi_qla_host *ha, dma_addr_t nvram_dma, 17062306a36Sopenharmony_ci uint32_t offset, uint32_t size); 17162306a36Sopenharmony_ciint qla4xxx_set_nvram(struct scsi_qla_host *ha, dma_addr_t nvram_dma, 17262306a36Sopenharmony_ci uint32_t offset, uint32_t size); 17362306a36Sopenharmony_ciint qla4xxx_restore_factory_defaults(struct scsi_qla_host *ha, 17462306a36Sopenharmony_ci uint32_t region, uint32_t field0, 17562306a36Sopenharmony_ci uint32_t field1); 17662306a36Sopenharmony_ciint qla4xxx_get_ddb_index(struct scsi_qla_host *ha, uint16_t *ddb_index); 17762306a36Sopenharmony_civoid qla4xxx_login_flash_ddb(struct iscsi_cls_session *cls_session); 17862306a36Sopenharmony_ciint qla4xxx_unblock_ddb(struct iscsi_cls_session *cls_session); 17962306a36Sopenharmony_ciint qla4xxx_unblock_flash_ddb(struct iscsi_cls_session *cls_session); 18062306a36Sopenharmony_ciint qla4xxx_flash_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index, 18162306a36Sopenharmony_ci struct ddb_entry *ddb_entry, uint32_t state); 18262306a36Sopenharmony_ciint qla4xxx_ddb_change(struct scsi_qla_host *ha, uint32_t fw_ddb_index, 18362306a36Sopenharmony_ci struct ddb_entry *ddb_entry, uint32_t state); 18462306a36Sopenharmony_civoid qla4xxx_build_ddb_list(struct scsi_qla_host *ha, int is_reset); 18562306a36Sopenharmony_ciint qla4xxx_post_aen_work(struct scsi_qla_host *ha, 18662306a36Sopenharmony_ci enum iscsi_host_event_code aen_code, 18762306a36Sopenharmony_ci uint32_t data_size, uint8_t *data); 18862306a36Sopenharmony_ciint qla4xxx_ping_iocb(struct scsi_qla_host *ha, uint32_t options, 18962306a36Sopenharmony_ci uint32_t payload_size, uint32_t pid, uint8_t *ipaddr); 19062306a36Sopenharmony_ciint qla4xxx_post_ping_evt_work(struct scsi_qla_host *ha, 19162306a36Sopenharmony_ci uint32_t status, uint32_t pid, 19262306a36Sopenharmony_ci uint32_t data_size, uint8_t *data); 19362306a36Sopenharmony_ciint qla4xxx_flashdb_by_index(struct scsi_qla_host *ha, 19462306a36Sopenharmony_ci struct dev_db_entry *fw_ddb_entry, 19562306a36Sopenharmony_ci dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index); 19662306a36Sopenharmony_ci 19762306a36Sopenharmony_ci/* BSG Functions */ 19862306a36Sopenharmony_ciint qla4xxx_bsg_request(struct bsg_job *bsg_job); 19962306a36Sopenharmony_ciint qla4xxx_process_vendor_specific(struct bsg_job *bsg_job); 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_civoid qla4xxx_arm_relogin_timer(struct ddb_entry *ddb_entry); 20262306a36Sopenharmony_ciint qla4xxx_get_minidump_template(struct scsi_qla_host *ha, 20362306a36Sopenharmony_ci dma_addr_t phys_addr); 20462306a36Sopenharmony_ciint qla4xxx_req_template_size(struct scsi_qla_host *ha); 20562306a36Sopenharmony_civoid qla4_8xxx_alloc_sysfs_attr(struct scsi_qla_host *ha); 20662306a36Sopenharmony_civoid qla4_8xxx_free_sysfs_attr(struct scsi_qla_host *ha); 20762306a36Sopenharmony_civoid qla4xxx_alloc_fw_dump(struct scsi_qla_host *ha); 20862306a36Sopenharmony_ciint qla4_82xx_try_start_fw(struct scsi_qla_host *ha); 20962306a36Sopenharmony_ciint qla4_8xxx_need_reset(struct scsi_qla_host *ha); 21062306a36Sopenharmony_ciint qla4_82xx_md_rd_32(struct scsi_qla_host *ha, uint32_t off, uint32_t *data); 21162306a36Sopenharmony_ciint qla4_82xx_md_wr_32(struct scsi_qla_host *ha, uint32_t off, uint32_t data); 21262306a36Sopenharmony_civoid qla4_82xx_rom_lock_recovery(struct scsi_qla_host *ha); 21362306a36Sopenharmony_civoid qla4_82xx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd, 21462306a36Sopenharmony_ci int incount); 21562306a36Sopenharmony_civoid qla4_82xx_process_mbox_intr(struct scsi_qla_host *ha, int outcount); 21662306a36Sopenharmony_civoid qla4xxx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd, 21762306a36Sopenharmony_ci int incount); 21862306a36Sopenharmony_civoid qla4xxx_process_mbox_intr(struct scsi_qla_host *ha, int outcount); 21962306a36Sopenharmony_civoid qla4_8xxx_dump_peg_reg(struct scsi_qla_host *ha); 22062306a36Sopenharmony_civoid qla4_83xx_disable_intrs(struct scsi_qla_host *ha); 22162306a36Sopenharmony_civoid qla4_83xx_enable_intrs(struct scsi_qla_host *ha); 22262306a36Sopenharmony_ciint qla4_83xx_start_firmware(struct scsi_qla_host *ha); 22362306a36Sopenharmony_ciirqreturn_t qla4_83xx_intr_handler(int irq, void *dev_id); 22462306a36Sopenharmony_civoid qla4_83xx_interrupt_service_routine(struct scsi_qla_host *ha, 22562306a36Sopenharmony_ci uint32_t intr_status); 22662306a36Sopenharmony_ciint qla4_83xx_isp_reset(struct scsi_qla_host *ha); 22762306a36Sopenharmony_civoid qla4_83xx_queue_iocb(struct scsi_qla_host *ha); 22862306a36Sopenharmony_civoid qla4_83xx_complete_iocb(struct scsi_qla_host *ha); 22962306a36Sopenharmony_ciuint32_t qla4_83xx_rd_reg(struct scsi_qla_host *ha, ulong addr); 23062306a36Sopenharmony_civoid qla4_83xx_wr_reg(struct scsi_qla_host *ha, ulong addr, uint32_t val); 23162306a36Sopenharmony_ciint qla4_83xx_rd_reg_indirect(struct scsi_qla_host *ha, uint32_t addr, 23262306a36Sopenharmony_ci uint32_t *data); 23362306a36Sopenharmony_ciint qla4_83xx_wr_reg_indirect(struct scsi_qla_host *ha, uint32_t addr, 23462306a36Sopenharmony_ci uint32_t data); 23562306a36Sopenharmony_ciint qla4_83xx_drv_lock(struct scsi_qla_host *ha); 23662306a36Sopenharmony_civoid qla4_83xx_drv_unlock(struct scsi_qla_host *ha); 23762306a36Sopenharmony_civoid qla4_83xx_rom_lock_recovery(struct scsi_qla_host *ha); 23862306a36Sopenharmony_civoid qla4_83xx_queue_mbox_cmd(struct scsi_qla_host *ha, uint32_t *mbx_cmd, 23962306a36Sopenharmony_ci int incount); 24062306a36Sopenharmony_civoid qla4_83xx_process_mbox_intr(struct scsi_qla_host *ha, int outcount); 24162306a36Sopenharmony_civoid qla4_83xx_read_reset_template(struct scsi_qla_host *ha); 24262306a36Sopenharmony_civoid qla4_83xx_set_idc_dontreset(struct scsi_qla_host *ha); 24362306a36Sopenharmony_ciint qla4_83xx_idc_dontreset(struct scsi_qla_host *ha); 24462306a36Sopenharmony_ciint qla4_83xx_lockless_flash_read_u32(struct scsi_qla_host *ha, 24562306a36Sopenharmony_ci uint32_t flash_addr, uint8_t *p_data, 24662306a36Sopenharmony_ci int u32_word_count); 24762306a36Sopenharmony_civoid qla4_83xx_clear_idc_dontreset(struct scsi_qla_host *ha); 24862306a36Sopenharmony_civoid qla4_83xx_need_reset_handler(struct scsi_qla_host *ha); 24962306a36Sopenharmony_ciint qla4_83xx_flash_read_u32(struct scsi_qla_host *ha, uint32_t flash_addr, 25062306a36Sopenharmony_ci uint8_t *p_data, int u32_word_count); 25162306a36Sopenharmony_civoid qla4_83xx_get_idc_param(struct scsi_qla_host *ha); 25262306a36Sopenharmony_civoid qla4_8xxx_set_rst_ready(struct scsi_qla_host *ha); 25362306a36Sopenharmony_civoid qla4_8xxx_clear_rst_ready(struct scsi_qla_host *ha); 25462306a36Sopenharmony_ciint qla4_8xxx_device_bootstrap(struct scsi_qla_host *ha); 25562306a36Sopenharmony_civoid qla4_8xxx_get_minidump(struct scsi_qla_host *ha); 25662306a36Sopenharmony_ciint qla4_8xxx_intr_disable(struct scsi_qla_host *ha); 25762306a36Sopenharmony_ciint qla4_8xxx_intr_enable(struct scsi_qla_host *ha); 25862306a36Sopenharmony_ciint qla4_8xxx_set_param(struct scsi_qla_host *ha, int param); 25962306a36Sopenharmony_ciint qla4_8xxx_update_idc_reg(struct scsi_qla_host *ha); 26062306a36Sopenharmony_ciint qla4_83xx_post_idc_ack(struct scsi_qla_host *ha); 26162306a36Sopenharmony_civoid qla4_83xx_disable_pause(struct scsi_qla_host *ha); 26262306a36Sopenharmony_civoid qla4_83xx_enable_mbox_intrs(struct scsi_qla_host *ha); 26362306a36Sopenharmony_ciint qla4_83xx_can_perform_reset(struct scsi_qla_host *ha); 26462306a36Sopenharmony_ciint qla4xxx_get_default_ddb(struct scsi_qla_host *ha, uint32_t options, 26562306a36Sopenharmony_ci dma_addr_t dma_addr); 26662306a36Sopenharmony_ciint qla4xxx_get_uni_chap_at_index(struct scsi_qla_host *ha, char *username, 26762306a36Sopenharmony_ci char *password, uint16_t chap_index); 26862306a36Sopenharmony_ciint qla4xxx_disable_acb(struct scsi_qla_host *ha); 26962306a36Sopenharmony_ciint qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd, 27062306a36Sopenharmony_ci uint32_t *mbox_sts, dma_addr_t acb_dma); 27162306a36Sopenharmony_ciint qla4xxx_get_acb(struct scsi_qla_host *ha, dma_addr_t acb_dma, 27262306a36Sopenharmony_ci uint32_t acb_type, uint32_t len); 27362306a36Sopenharmony_ciint qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config); 27462306a36Sopenharmony_ciint qla4_8xxx_ms_mem_write_128b(struct scsi_qla_host *ha, 27562306a36Sopenharmony_ci uint64_t addr, uint32_t *data, uint32_t count); 27662306a36Sopenharmony_ciuint8_t qla4xxx_set_ipaddr_state(uint8_t fw_ipaddr_state); 27762306a36Sopenharmony_ciint qla4_83xx_get_port_config(struct scsi_qla_host *ha, uint32_t *config); 27862306a36Sopenharmony_ciint qla4_83xx_set_port_config(struct scsi_qla_host *ha, uint32_t *config); 27962306a36Sopenharmony_ciint qla4_8xxx_check_init_adapter_retry(struct scsi_qla_host *ha); 28062306a36Sopenharmony_ciint qla4_83xx_is_detached(struct scsi_qla_host *ha); 28162306a36Sopenharmony_ciint qla4xxx_sysfs_ddb_export(struct scsi_qla_host *ha); 28262306a36Sopenharmony_ci 28362306a36Sopenharmony_ciextern int ql4xextended_error_logging; 28462306a36Sopenharmony_ciextern int ql4xdontresethba; 28562306a36Sopenharmony_ciextern int ql4xenablemsix; 28662306a36Sopenharmony_ciextern int ql4xmdcapmask; 28762306a36Sopenharmony_ciextern int ql4xenablemd; 28862306a36Sopenharmony_ci 28962306a36Sopenharmony_ciextern const struct attribute_group *qla4xxx_host_groups[]; 29062306a36Sopenharmony_ci 29162306a36Sopenharmony_ci#endif /* _QLA4x_GBL_H */ 292