ql4_glbl.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * QLogic iSCSI HBA Driver
  3. * Copyright (c) 2003-2006 QLogic Corporation
  4. *
  5. * See LICENSE.qla4xxx for copyright and licensing details.
  6. */
  7. #ifndef __QLA4x_GBL_H
  8. #define __QLA4x_GBL_H
  9. int qla4xxx_send_tgts(struct scsi_qla_host *ha, char *ip, uint16_t port);
  10. int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb * srb);
  11. int qla4xxx_initialize_adapter(struct scsi_qla_host * ha,
  12. uint8_t renew_ddb_list);
  13. int qla4xxx_soft_reset(struct scsi_qla_host *ha);
  14. irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
  15. void qla4xxx_free_ddb_list(struct scsi_qla_host * ha);
  16. void qla4xxx_process_aen(struct scsi_qla_host * ha, uint8_t process_aen);
  17. int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host * ha);
  18. int qla4xxx_relogin_device(struct scsi_qla_host * ha,
  19. struct ddb_entry * ddb_entry);
  20. int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry,
  21. int lun);
  22. int qla4xxx_get_flash(struct scsi_qla_host * ha, dma_addr_t dma_addr,
  23. uint32_t offset, uint32_t len);
  24. int qla4xxx_get_firmware_status(struct scsi_qla_host * ha);
  25. int qla4xxx_get_firmware_state(struct scsi_qla_host * ha);
  26. int qla4xxx_initialize_fw_cb(struct scsi_qla_host * ha);
  27. /* FIXME: Goodness! this really wants a small struct to hold the
  28. * parameters. On x86 the args will get passed on the stack! */
  29. int qla4xxx_get_fwddb_entry(struct scsi_qla_host *ha,
  30. uint16_t fw_ddb_index,
  31. struct dev_db_entry *fw_ddb_entry,
  32. dma_addr_t fw_ddb_entry_dma,
  33. uint32_t *num_valid_ddb_entries,
  34. uint32_t *next_ddb_index,
  35. uint32_t *fw_ddb_device_state,
  36. uint32_t *conn_err_detail,
  37. uint16_t *tcp_source_port_num,
  38. uint16_t *connection_id);
  39. struct ddb_entry * qla4xxx_alloc_ddb(struct scsi_qla_host * ha,
  40. uint32_t fw_ddb_index);
  41. int qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index,
  42. dma_addr_t fw_ddb_entry_dma);
  43. void qla4xxx_mark_device_missing(struct scsi_qla_host *ha,
  44. struct ddb_entry *ddb_entry);
  45. u16 rd_nvram_word(struct scsi_qla_host * ha, int offset);
  46. void qla4xxx_get_crash_record(struct scsi_qla_host * ha);
  47. struct ddb_entry *qla4xxx_alloc_sess(struct scsi_qla_host *ha);
  48. int qla4xxx_add_sess(struct ddb_entry *);
  49. void qla4xxx_destroy_sess(struct ddb_entry *ddb_entry);
  50. int qla4xxx_conn_close_sess_logout(struct scsi_qla_host * ha,
  51. uint16_t fw_ddb_index,
  52. uint16_t connection_id,
  53. uint16_t option);
  54. int qla4xxx_clear_database_entry(struct scsi_qla_host * ha,
  55. uint16_t fw_ddb_index);
  56. int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host * ha);
  57. int qla4xxx_get_fw_version(struct scsi_qla_host * ha);
  58. void qla4xxx_interrupt_service_routine(struct scsi_qla_host * ha,
  59. uint32_t intr_status);
  60. int qla4xxx_init_rings(struct scsi_qla_host * ha);
  61. void qla4xxx_dump_buffer(void *b, uint32_t size);
  62. struct srb * qla4xxx_del_from_active_array(struct scsi_qla_host *ha, uint32_t index);
  63. void qla4xxx_srb_compl(struct scsi_qla_host *ha, struct srb *srb);
  64. int qla4xxx_reinitialize_ddb_list(struct scsi_qla_host * ha);
  65. int qla4xxx_process_ddb_changed(struct scsi_qla_host * ha,
  66. uint32_t fw_ddb_index, uint32_t state);
  67. extern int qla4_extended_error_logging;
  68. extern int ql4xdiscoverywait;
  69. extern int ql4xdontresethba;
  70. #endif /* _QLA4x_GBL_H */