Andrew Vasquez | fa90c54 | 2005-10-27 11:10:08 -0700 | [diff] [blame] | 1 | /* |
| 2 | * QLogic Fibre Channel HBA Driver |
| 3 | * Copyright (c) 2003-2005 QLogic Corporation |
| 4 | * |
| 5 | * See LICENSE.qla2xxx for copyright and licensing details. |
| 6 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #ifndef __QLA_GBL_H |
| 8 | #define __QLA_GBL_H |
| 9 | |
| 10 | #include <linux/interrupt.h> |
| 11 | |
| 12 | extern void qla2x00_remove_one(struct pci_dev *); |
| 13 | extern int qla2x00_probe_one(struct pci_dev *, struct qla_board_info *); |
| 14 | |
| 15 | /* |
| 16 | * Global Function Prototypes in qla_init.c source file. |
| 17 | */ |
| 18 | extern int qla2x00_initialize_adapter(scsi_qla_host_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 19 | |
| 20 | extern int qla2100_pci_config(struct scsi_qla_host *); |
| 21 | extern int qla2300_pci_config(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 22 | extern int qla24xx_pci_config(scsi_qla_host_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 23 | extern void qla2x00_reset_chip(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 24 | extern void qla24xx_reset_chip(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 25 | extern int qla2x00_chip_diag(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 26 | extern int qla24xx_chip_diag(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 27 | extern void qla2x00_config_rings(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 28 | extern void qla24xx_config_rings(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 29 | extern void qla2x00_reset_adapter(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 30 | extern void qla24xx_reset_adapter(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 31 | extern int qla2x00_nvram_config(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 32 | extern int qla24xx_nvram_config(struct scsi_qla_host *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 33 | extern void qla2x00_update_fw_options(struct scsi_qla_host *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 34 | extern void qla24xx_update_fw_options(scsi_qla_host_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 35 | extern int qla2x00_load_risc(struct scsi_qla_host *, uint32_t *); |
Andrew Vasquez | 5433383 | 2005-11-09 15:49:04 -0800 | [diff] [blame] | 36 | extern int qla24xx_load_risc(scsi_qla_host_t *, uint32_t *); |
Andrew Vasquez | 0107109e | 2005-07-06 10:31:37 -0700 | [diff] [blame] | 37 | extern int qla24xx_load_risc_flash(scsi_qla_host_t *, uint32_t *); |
Andrew Vasquez | abbd887 | 2005-07-06 10:30:05 -0700 | [diff] [blame] | 38 | |
Al Viro | c53033f | 2005-10-21 03:22:08 -0400 | [diff] [blame] | 39 | extern fc_port_t *qla2x00_alloc_fcport(scsi_qla_host_t *, gfp_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
| 41 | extern int qla2x00_loop_resync(scsi_qla_host_t *); |
| 42 | |
| 43 | extern int qla2x00_find_new_loop_id(scsi_qla_host_t *, fc_port_t *); |
| 44 | extern int qla2x00_fabric_login(scsi_qla_host_t *, fc_port_t *, uint16_t *); |
| 45 | extern int qla2x00_local_device_login(scsi_qla_host_t *, uint16_t); |
| 46 | |
| 47 | extern void qla2x00_restart_queues(scsi_qla_host_t *, uint8_t); |
| 48 | |
| 49 | extern void qla2x00_rescan_fcports(scsi_qla_host_t *); |
andrew.vasquez@qlogic.com | d97994d | 2006-01-20 14:53:13 -0800 | [diff] [blame] | 50 | extern void qla2x00_update_fcports(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | extern int qla2x00_abort_isp(scsi_qla_host_t *); |
| 53 | |
andrew.vasquez@qlogic.com | 052c40c | 2006-01-20 14:53:19 -0800 | [diff] [blame] | 54 | extern void qla2x00_update_fcport(scsi_qla_host_t *, fc_port_t *); |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 55 | extern void qla2x00_reg_remote_port(scsi_qla_host_t *, fc_port_t *); |
| 56 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | /* |
| 58 | * Global Data in qla_os.c source file. |
| 59 | */ |
| 60 | extern char qla2x00_version_str[]; |
| 61 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | extern int ql2xlogintimeout; |
| 63 | extern int qlport_down_retry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | extern int ql2xplogiabsentdevice; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | extern int ql2xloginretrycount; |
Andrew Vasquez | cca5335 | 2005-08-26 19:08:30 -0700 | [diff] [blame] | 66 | extern int ql2xfdmienable; |
andrew.vasquez@qlogic.com | 79f89a4 | 2006-01-13 17:05:58 -0800 | [diff] [blame] | 67 | extern int ql2xprocessrscn; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | |
| f4f051e | 2005-04-17 15:02:26 -0500 | [diff] [blame] | 69 | extern void qla2x00_sp_compl(scsi_qla_host_t *, srb_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | |
| 71 | extern char *qla2x00_get_fw_version_str(struct scsi_qla_host *, char *); |
| 72 | |
| 73 | extern void qla2x00_cmd_timeout(srb_t *); |
| 74 | |
andrew.vasquez@qlogic.com | d97994d | 2006-01-20 14:53:13 -0800 | [diff] [blame] | 75 | extern void qla2x00_mark_device_lost(scsi_qla_host_t *, fc_port_t *, int, int); |
| 76 | extern void qla2x00_mark_all_devices_lost(scsi_qla_host_t *, int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | extern int qla2x00_down_timeout(struct semaphore *, unsigned long); |
| 79 | |
Andrew Vasquez | 5433383 | 2005-11-09 15:49:04 -0800 | [diff] [blame] | 80 | extern struct fw_blob *qla2x00_request_firmware(scsi_qla_host_t *); |
| 81 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 | /* |
| 83 | * Global Function Prototypes in qla_iocb.c source file. |
| 84 | */ |
| 85 | extern void qla2x00_isp_cmd(scsi_qla_host_t *); |
| 86 | |
| 87 | extern uint16_t qla2x00_calc_iocbs_32(uint16_t); |
| 88 | extern uint16_t qla2x00_calc_iocbs_64(uint16_t); |
| 89 | extern void qla2x00_build_scsi_iocbs_32(srb_t *, cmd_entry_t *, uint16_t); |
| 90 | extern void qla2x00_build_scsi_iocbs_64(srb_t *, cmd_entry_t *, uint16_t); |
| 91 | extern int qla2x00_start_scsi(srb_t *sp); |
Andrew Vasquez | 2b6c0ce | 2005-07-06 10:31:17 -0700 | [diff] [blame] | 92 | extern int qla24xx_start_scsi(srb_t *sp); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | int qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); |
| 94 | int __qla2x00_marker(scsi_qla_host_t *, uint16_t, uint16_t, uint8_t); |
| 95 | |
| 96 | /* |
| 97 | * Global Function Prototypes in qla_mbx.c source file. |
| 98 | */ |
| 99 | extern int |
andrew.vasquez@qlogic.com | 590f98e | 2006-01-13 17:05:37 -0800 | [diff] [blame] | 100 | qla2x00_load_ram(scsi_qla_host_t *, dma_addr_t, uint32_t, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 101 | |
| 102 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 103 | qla2x00_execute_fw(scsi_qla_host_t *, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | |
| 105 | extern void |
| 106 | qla2x00_get_fw_version(scsi_qla_host_t *, uint16_t *, |
| 107 | uint16_t *, uint16_t *, uint16_t *, uint32_t *); |
| 108 | |
| 109 | extern int |
| 110 | qla2x00_get_fw_options(scsi_qla_host_t *, uint16_t *); |
| 111 | |
| 112 | extern int |
| 113 | qla2x00_set_fw_options(scsi_qla_host_t *, uint16_t *); |
| 114 | |
| 115 | extern int |
| 116 | qla2x00_mbx_reg_test(scsi_qla_host_t *); |
| 117 | |
| 118 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 119 | qla2x00_verify_checksum(scsi_qla_host_t *, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 120 | |
| 121 | extern int |
| 122 | qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t); |
| 123 | |
| 124 | extern int |
| 125 | qla2x00_abort_command(scsi_qla_host_t *, srb_t *); |
| 126 | |
| 127 | #if USE_ABORT_TGT |
| 128 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 129 | qla2x00_abort_target(fc_port_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 130 | #endif |
| 131 | |
| 132 | extern int |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *, |
| 134 | uint8_t *, uint16_t *); |
| 135 | |
| 136 | extern int |
| 137 | qla2x00_get_retry_cnt(scsi_qla_host_t *, uint8_t *, uint8_t *, uint16_t *); |
| 138 | |
| 139 | extern int |
| 140 | qla2x00_init_firmware(scsi_qla_host_t *, uint16_t); |
| 141 | |
| 142 | extern int |
| 143 | qla2x00_get_port_database(scsi_qla_host_t *, fc_port_t *, uint8_t); |
| 144 | |
| 145 | extern int |
| 146 | qla2x00_get_firmware_state(scsi_qla_host_t *, uint16_t *); |
| 147 | |
| 148 | extern int |
| 149 | qla2x00_get_port_name(scsi_qla_host_t *, uint16_t, uint8_t *, uint8_t); |
| 150 | |
| 151 | extern int |
| 152 | qla2x00_lip_reset(scsi_qla_host_t *); |
| 153 | |
| 154 | extern int |
| 155 | qla2x00_send_sns(scsi_qla_host_t *, dma_addr_t, uint16_t, size_t); |
| 156 | |
| 157 | extern int |
| 158 | qla2x00_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, |
| 159 | uint16_t *, uint8_t); |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 160 | extern int |
| 161 | qla24xx_login_fabric(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t, |
| 162 | uint16_t *, uint8_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | |
| 164 | extern int |
| 165 | qla2x00_login_local_device(scsi_qla_host_t *, uint16_t, uint16_t *, uint8_t); |
| 166 | |
| 167 | extern int |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 168 | qla2x00_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t); |
| 169 | |
| 170 | extern int |
| 171 | qla24xx_fabric_logout(scsi_qla_host_t *, uint16_t, uint8_t, uint8_t, uint8_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 172 | |
| 173 | extern int |
| 174 | qla2x00_full_login_lip(scsi_qla_host_t *ha); |
| 175 | |
| 176 | extern int |
| 177 | qla2x00_get_id_list(scsi_qla_host_t *, void *, dma_addr_t, uint16_t *); |
| 178 | |
| 179 | extern int |
| 180 | qla2x00_get_resource_cnts(scsi_qla_host_t *, uint16_t *, uint16_t *, uint16_t *, |
| 181 | uint16_t *); |
| 182 | |
| 183 | extern int |
| 184 | qla2x00_get_fcal_position_map(scsi_qla_host_t *ha, char *pos_map); |
| 185 | |
andrew.vasquez@qlogic.com | 392e2f6 | 2006-01-31 16:05:02 -0800 | [diff] [blame] | 186 | extern int |
| 187 | qla2x00_get_link_status(scsi_qla_host_t *, uint16_t, link_stat_t *, |
| 188 | uint16_t *); |
| 189 | |
| 190 | extern int |
| 191 | qla24xx_get_isp_stats(scsi_qla_host_t *, uint32_t *, uint32_t, uint16_t *); |
| 192 | |
Andrew Vasquez | 1c7c635 | 2005-07-06 10:30:57 -0700 | [diff] [blame] | 193 | extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); |
| 194 | extern int qla24xx_abort_target(fc_port_t *); |
| 195 | |
| 196 | extern int qla2x00_system_error(scsi_qla_host_t *); |
| 197 | |
| 198 | extern int |
| 199 | qla2x00_get_serdes_params(scsi_qla_host_t *, uint16_t *, uint16_t *, |
| 200 | uint16_t *); |
| 201 | |
| 202 | extern int |
| 203 | qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); |
| 204 | |
Andrew Vasquez | f6ef3b1 | 2005-08-26 19:10:20 -0700 | [diff] [blame] | 205 | extern int |
| 206 | qla2x00_stop_firmware(scsi_qla_host_t *); |
| 207 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 208 | /* |
| 209 | * Global Function Prototypes in qla_isr.c source file. |
| 210 | */ |
| 211 | extern irqreturn_t qla2100_intr_handler(int, void *, struct pt_regs *); |
| 212 | extern irqreturn_t qla2300_intr_handler(int, void *, struct pt_regs *); |
Andrew Vasquez | 9a853f7 | 2005-07-06 10:31:27 -0700 | [diff] [blame] | 213 | extern irqreturn_t qla24xx_intr_handler(int, void *, struct pt_regs *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | extern void qla2x00_process_response_queue(struct scsi_qla_host *); |
Andrew Vasquez | 4fdfefe | 2005-10-27 11:09:48 -0700 | [diff] [blame] | 215 | extern void qla24xx_process_response_queue(struct scsi_qla_host *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 216 | |
| 217 | /* |
| 218 | * Global Function Prototypes in qla_sup.c source file. |
| 219 | */ |
| 220 | extern void qla2x00_lock_nvram_access(scsi_qla_host_t *); |
| 221 | extern void qla2x00_unlock_nvram_access(scsi_qla_host_t *); |
| 222 | extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); |
| 223 | extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t); |
| 224 | extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t); |
Andrew Vasquez | 459c537 | 2005-07-06 10:31:07 -0700 | [diff] [blame] | 225 | extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, |
| 226 | uint32_t, uint32_t); |
| 227 | extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
| 228 | uint32_t); |
| 229 | extern uint8_t *qla24xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
| 230 | uint32_t); |
| 231 | extern int qla2x00_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
| 232 | uint32_t); |
| 233 | extern int qla24xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
| 234 | uint32_t); |
| 235 | |
andrew.vasquez@qlogic.com | f6df144 | 2006-01-31 16:05:07 -0800 | [diff] [blame^] | 236 | extern int qla2x00_beacon_on(struct scsi_qla_host *); |
| 237 | extern int qla2x00_beacon_off(struct scsi_qla_host *); |
| 238 | extern void qla2x00_beacon_blink(struct scsi_qla_host *); |
| 239 | extern int qla24xx_beacon_on(struct scsi_qla_host *); |
| 240 | extern int qla24xx_beacon_off(struct scsi_qla_host *); |
| 241 | extern void qla24xx_beacon_blink(struct scsi_qla_host *); |
| 242 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 243 | /* |
| 244 | * Global Function Prototypes in qla_dbg.c source file. |
| 245 | */ |
| 246 | extern void qla2100_fw_dump(scsi_qla_host_t *, int); |
| 247 | extern void qla2300_fw_dump(scsi_qla_host_t *, int); |
Andrew Vasquez | 6d9b61e | 2005-07-06 10:30:36 -0700 | [diff] [blame] | 248 | extern void qla24xx_fw_dump(scsi_qla_host_t *, int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | extern void qla2100_ascii_fw_dump(scsi_qla_host_t *); |
| 250 | extern void qla2300_ascii_fw_dump(scsi_qla_host_t *); |
Andrew Vasquez | 6d9b61e | 2005-07-06 10:30:36 -0700 | [diff] [blame] | 251 | extern void qla24xx_ascii_fw_dump(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 252 | extern void qla2x00_dump_regs(scsi_qla_host_t *); |
| 253 | extern void qla2x00_dump_buffer(uint8_t *, uint32_t); |
| 254 | extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); |
Andrew Vasquez | 6d9b61e | 2005-07-06 10:30:36 -0700 | [diff] [blame] | 255 | extern void qla2x00_dump_pkt(void *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 256 | |
| 257 | /* |
| 258 | * Global Function Prototypes in qla_gs.c source file. |
| 259 | */ |
Andrew Vasquez | 8c958a9 | 2005-07-06 10:30:47 -0700 | [diff] [blame] | 260 | extern void *qla2x00_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t); |
| 261 | extern void *qla24xx_prep_ms_iocb(scsi_qla_host_t *, uint32_t, uint32_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 262 | extern int qla2x00_ga_nxt(scsi_qla_host_t *, fc_port_t *); |
| 263 | extern int qla2x00_gid_pt(scsi_qla_host_t *, sw_info_t *); |
| 264 | extern int qla2x00_gpn_id(scsi_qla_host_t *, sw_info_t *); |
| 265 | extern int qla2x00_gnn_id(scsi_qla_host_t *, sw_info_t *); |
| 266 | extern int qla2x00_rft_id(scsi_qla_host_t *); |
| 267 | extern int qla2x00_rff_id(scsi_qla_host_t *); |
| 268 | extern int qla2x00_rnn_id(scsi_qla_host_t *); |
| 269 | extern int qla2x00_rsnn_nn(scsi_qla_host_t *); |
Andrew Vasquez | cca5335 | 2005-08-26 19:08:30 -0700 | [diff] [blame] | 270 | extern void *qla2x00_prep_ms_fdmi_iocb(scsi_qla_host_t *, uint32_t, uint32_t); |
| 271 | extern void *qla24xx_prep_ms_fdmi_iocb(scsi_qla_host_t *, uint32_t, uint32_t); |
| 272 | extern int qla2x00_fdmi_register(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 273 | |
| 274 | /* |
| 275 | * Global Function Prototypes in qla_rscn.c source file. |
| 276 | */ |
Al Viro | c53033f | 2005-10-21 03:22:08 -0400 | [diff] [blame] | 277 | extern fc_port_t *qla2x00_alloc_rscn_fcport(scsi_qla_host_t *, gfp_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 278 | extern int qla2x00_handle_port_rscn(scsi_qla_host_t *, uint32_t, fc_port_t *, |
| 279 | int); |
| 280 | extern void qla2x00_process_iodesc(scsi_qla_host_t *, struct mbx_entry *); |
| 281 | extern void qla2x00_cancel_io_descriptors(scsi_qla_host_t *); |
| 282 | |
| 283 | /* |
| 284 | * Global Function Prototypes in qla_xioctl.c source file. |
| 285 | */ |
| 286 | #define qla2x00_enqueue_aen(ha, cmd, mode) do { } while (0) |
| 287 | #define qla2x00_alloc_ioctl_mem(ha) (0) |
| 288 | #define qla2x00_free_ioctl_mem(ha) do { } while (0) |
| 289 | |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 290 | /* |
| 291 | * Global Function Prototypes in qla_attr.c source file. |
| 292 | */ |
Andrew Vasquez | afb046e | 2005-08-26 19:09:40 -0700 | [diff] [blame] | 293 | struct class_device_attribute; |
| 294 | extern struct class_device_attribute *qla2x00_host_attrs[]; |
Andrew Vasquez | 1c97a12 | 2005-04-21 16:13:36 -0400 | [diff] [blame] | 295 | struct fc_function_template; |
| 296 | extern struct fc_function_template qla2xxx_transport_functions; |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 297 | extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *); |
| 298 | extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *); |
| 8482e118 | 2005-04-17 15:04:54 -0500 | [diff] [blame] | 299 | extern void qla2x00_init_host_attr(scsi_qla_host_t *); |
| 300 | extern void qla2x00_alloc_sysfs_attr(scsi_qla_host_t *); |
| 301 | extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 302 | #endif /* _QLA_GBL_H */ |