ql4_glbl.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. struct iscsi_cls_conn;
  10. void qla4xxx_hw_reset(struct scsi_qla_host *ha);
  11. int ql4xxx_lock_drvr_wait(struct scsi_qla_host *a);
  12. int qla4xxx_send_tgts(struct scsi_qla_host *ha, char *ip, uint16_t port);
  13. int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb * srb);
  14. int qla4xxx_initialize_adapter(struct scsi_qla_host * ha,
  15. uint8_t renew_ddb_list);
  16. int qla4xxx_soft_reset(struct scsi_qla_host *ha);
  17. irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id);
  18. void qla4xxx_free_ddb_list(struct scsi_qla_host * ha);
  19. void qla4xxx_process_aen(struct scsi_qla_host * ha, uint8_t process_aen);
  20. int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host * ha);
  21. int qla4xxx_relogin_device(struct scsi_qla_host * ha,
  22. struct ddb_entry * ddb_entry);
  23. int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry,
  24. int lun);
  25. int qla4xxx_reset_target(struct scsi_qla_host * ha,
  26. struct ddb_entry * ddb_entry);
  27. int qla4xxx_get_flash(struct scsi_qla_host * ha, dma_addr_t dma_addr,
  28. uint32_t offset, uint32_t len);
  29. int qla4xxx_get_firmware_status(struct scsi_qla_host * ha);
  30. int qla4xxx_get_firmware_state(struct scsi_qla_host * ha);
  31. int qla4xxx_initialize_fw_cb(struct scsi_qla_host * ha);
  32. /* FIXME: Goodness! this really wants a small struct to hold the
  33. * parameters. On x86 the args will get passed on the stack! */
  34. int qla4xxx_get_fwddb_entry(struct scsi_qla_host *ha,
  35. uint16_t fw_ddb_index,
  36. struct dev_db_entry *fw_ddb_entry,
  37. dma_addr_t fw_ddb_entry_dma,
  38. uint32_t *num_valid_ddb_entries,
  39. uint32_t *next_ddb_index,
  40. uint32_t *fw_ddb_device_state,
  41. uint32_t *conn_err_detail,
  42. uint16_t *tcp_source_port_num,
  43. uint16_t *connection_id);
  44. int qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index,
  45. dma_addr_t fw_ddb_entry_dma);
  46. void qla4xxx_mark_device_missing(struct scsi_qla_host *ha,
  47. struct ddb_entry *ddb_entry);
  48. u16 rd_nvram_word(struct scsi_qla_host * ha, int offset);
  49. void qla4xxx_get_crash_record(struct scsi_qla_host * ha);
  50. struct ddb_entry *qla4xxx_alloc_sess(struct scsi_qla_host *ha);
  51. int qla4xxx_add_sess(struct ddb_entry *);
  52. void qla4xxx_destroy_sess(struct ddb_entry *ddb_entry);
  53. int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host * ha);
  54. int qla4xxx_get_fw_version(struct scsi_qla_host * ha);
  55. void qla4xxx_interrupt_service_routine(struct scsi_qla_host * ha,
  56. uint32_t intr_status);
  57. int qla4xxx_init_rings(struct scsi_qla_host * ha);
  58. struct srb * qla4xxx_del_from_active_array(struct scsi_qla_host *ha,
  59. uint32_t index);
  60. void qla4xxx_srb_compl(struct scsi_qla_host *ha, struct srb *srb);
  61. int qla4xxx_reinitialize_ddb_list(struct scsi_qla_host * ha);
  62. int qla4xxx_process_ddb_changed(struct scsi_qla_host * ha,
  63. uint32_t fw_ddb_index, uint32_t state);
  64. void qla4xxx_dump_buffer(void *b, uint32_t size);
  65. int qla4xxx_send_marker_iocb(struct scsi_qla_host *ha,
  66. struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod);
  67. extern int ql4xextended_error_logging;
  68. extern int ql4xdiscoverywait;
  69. extern int ql4xdontresethba;
  70. extern int ql4_mod_unload;
  71. #endif /* _QLA4x_GBL_H */