diff options
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_glbl.h')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_glbl.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_glbl.h b/drivers/scsi/qla4xxx/ql4_glbl.h new file mode 100644 index 000000000000..418fb7a13a65 --- /dev/null +++ b/drivers/scsi/qla4xxx/ql4_glbl.h | |||
@@ -0,0 +1,78 @@ | |||
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 | |||
8 | #ifndef __QLA4x_GBL_H | ||
9 | #define __QLA4x_GBL_H | ||
10 | |||
11 | int qla4xxx_send_tgts(struct scsi_qla_host *ha, char *ip, uint16_t port); | ||
12 | int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb * srb); | ||
13 | int qla4xxx_initialize_adapter(struct scsi_qla_host * ha, | ||
14 | uint8_t renew_ddb_list); | ||
15 | int qla4xxx_soft_reset(struct scsi_qla_host *ha); | ||
16 | irqreturn_t qla4xxx_intr_handler(int irq, void *dev_id, struct pt_regs *regs); | ||
17 | |||
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 | |||
21 | int qla4xxx_get_dhcp_ip_address(struct scsi_qla_host * ha); | ||
22 | int qla4xxx_relogin_device(struct scsi_qla_host * ha, | ||
23 | struct ddb_entry * ddb_entry); | ||
24 | int qla4xxx_reset_lun(struct scsi_qla_host * ha, struct ddb_entry * ddb_entry, | ||
25 | int lun); | ||
26 | int qla4xxx_get_flash(struct scsi_qla_host * ha, dma_addr_t dma_addr, | ||
27 | uint32_t offset, uint32_t len); | ||
28 | int qla4xxx_get_firmware_status(struct scsi_qla_host * ha); | ||
29 | int qla4xxx_get_firmware_state(struct scsi_qla_host * ha); | ||
30 | int qla4xxx_initialize_fw_cb(struct scsi_qla_host * ha); | ||
31 | |||
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 | |||
45 | struct ddb_entry * qla4xxx_alloc_ddb(struct scsi_qla_host * ha, | ||
46 | uint32_t fw_ddb_index); | ||
47 | int qla4xxx_set_ddb_entry(struct scsi_qla_host * ha, uint16_t fw_ddb_index, | ||
48 | dma_addr_t fw_ddb_entry_dma); | ||
49 | |||
50 | void qla4xxx_mark_device_missing(struct scsi_qla_host *ha, | ||
51 | struct ddb_entry *ddb_entry); | ||
52 | u16 rd_nvram_word(struct scsi_qla_host * ha, int offset); | ||
53 | void qla4xxx_get_crash_record(struct scsi_qla_host * ha); | ||
54 | struct ddb_entry *qla4xxx_alloc_sess(struct scsi_qla_host *ha); | ||
55 | int qla4xxx_add_sess(struct ddb_entry *); | ||
56 | void qla4xxx_destroy_sess(struct ddb_entry *ddb_entry); | ||
57 | int qla4xxx_conn_close_sess_logout(struct scsi_qla_host * ha, | ||
58 | uint16_t fw_ddb_index, | ||
59 | uint16_t connection_id, | ||
60 | uint16_t option); | ||
61 | int qla4xxx_clear_database_entry(struct scsi_qla_host * ha, | ||
62 | uint16_t fw_ddb_index); | ||
63 | int qla4xxx_is_nvram_configuration_valid(struct scsi_qla_host * ha); | ||
64 | int qla4xxx_get_fw_version(struct scsi_qla_host * ha); | ||
65 | void qla4xxx_interrupt_service_routine(struct scsi_qla_host * ha, | ||
66 | uint32_t intr_status); | ||
67 | int qla4xxx_init_rings(struct scsi_qla_host * ha); | ||
68 | void qla4xxx_dump_buffer(void *b, uint32_t size); | ||
69 | struct srb * qla4xxx_del_from_active_array(struct scsi_qla_host *ha, uint32_t index); | ||
70 | void qla4xxx_srb_compl(struct scsi_qla_host *ha, struct srb *srb); | ||
71 | int qla4xxx_reinitialize_ddb_list(struct scsi_qla_host * ha); | ||
72 | int qla4xxx_process_ddb_changed(struct scsi_qla_host * ha, | ||
73 | uint32_t fw_ddb_index, uint32_t state); | ||
74 | |||
75 | extern int extended_error_logging; | ||
76 | extern int ql4xdiscoverywait; | ||
77 | extern int ql4xdontresethba; | ||
78 | #endif /* _QLA4x_GBL_H */ | ||