aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_gbl.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-01-17 12:02:15 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:32 -0500
commita824ebb37c1a1c5fd8e19b47bf5c14cb7b419b48 (patch)
tree1aa1f3731409f448b40f5c5b9e49c9e85eedff1d /drivers/scsi/qla2xxx/qla_gbl.h
parent50db6b134c31351a03cec9d2a7f9e61f63a5ce9f (diff)
[SCSI] qla2xxx: Code cleanups.
- make the following needlessly global code static: - qla_attr.c: qla24xx_vport_delete() - qla_attr.c: qla24xx_vport_disable() - qla_mid.c: qla24xx_allocate_vp_id() - qla_mid.c: qla24xx_find_vhost_by_name() - qla_mid.c: qla2x00_do_dpc_vp() - qla_os.c: struct qla2x00_driver_template - qla_os.c: qla2x00_stop_timer() - qla_os.c: qla2x00_mem_alloc() - qla_os.c: qla2x00_mem_free() - qla_sup.c: qla2x00_lock_nvram_access() - qla_sup.c: qla2x00_unlock_nvram_access() - qla_sup.c: qla2x00_get_nvram_word() - qla_sup.c: qla2x00_write_nvram_word() - #if 0 the following unused global functions: - qla_mbx.c: qla2x00_system_error() - qla_os.c: remove some unneeded function prototypes - removed unused functions: - qla_dbg.c: qla2x00_dump_pkt() - qla_mbx.c: qla2x00_get_serdes_params() - qla_mbx.c: qla2x00_get_idma_speed() - qla_mbx.c: qla24xx_get_vp_database() - qla_mbx.c: qla24xx_get_vp_entry() Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Small modifications and Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gbl.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_gbl.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
index fa4455f48f1d..fd7553920e00 100644
--- a/drivers/scsi/qla2xxx/qla_gbl.h
+++ b/drivers/scsi/qla2xxx/qla_gbl.h
@@ -70,30 +70,20 @@ extern int qla2x00_loop_reset(scsi_qla_host_t *);
70/* 70/*
71 * Global Functions in qla_mid.c source file. 71 * Global Functions in qla_mid.c source file.
72 */ 72 */
73extern struct scsi_host_template qla2x00_driver_template;
74extern struct scsi_host_template qla24xx_driver_template; 73extern struct scsi_host_template qla24xx_driver_template;
75extern struct scsi_transport_template *qla2xxx_transport_vport_template; 74extern struct scsi_transport_template *qla2xxx_transport_vport_template;
76extern uint8_t qla2x00_mem_alloc(scsi_qla_host_t *);
77extern void qla2x00_timer(scsi_qla_host_t *); 75extern void qla2x00_timer(scsi_qla_host_t *);
78extern void qla2x00_start_timer(scsi_qla_host_t *, void *, unsigned long); 76extern void qla2x00_start_timer(scsi_qla_host_t *, void *, unsigned long);
79extern void qla2x00_stop_timer(scsi_qla_host_t *);
80extern uint32_t qla24xx_allocate_vp_id(scsi_qla_host_t *);
81extern void qla24xx_deallocate_vp_id(scsi_qla_host_t *); 77extern void qla24xx_deallocate_vp_id(scsi_qla_host_t *);
82extern int qla24xx_disable_vp (scsi_qla_host_t *); 78extern int qla24xx_disable_vp (scsi_qla_host_t *);
83extern int qla24xx_enable_vp (scsi_qla_host_t *); 79extern int qla24xx_enable_vp (scsi_qla_host_t *);
84extern void qla2x00_mem_free(scsi_qla_host_t *);
85extern int qla24xx_control_vp(scsi_qla_host_t *, int ); 80extern int qla24xx_control_vp(scsi_qla_host_t *, int );
86extern int qla24xx_modify_vp_config(scsi_qla_host_t *); 81extern int qla24xx_modify_vp_config(scsi_qla_host_t *);
87extern int qla2x00_send_change_request(scsi_qla_host_t *, uint16_t, uint16_t); 82extern int qla2x00_send_change_request(scsi_qla_host_t *, uint16_t, uint16_t);
88extern void qla2x00_vp_stop_timer(scsi_qla_host_t *); 83extern void qla2x00_vp_stop_timer(scsi_qla_host_t *);
89extern int qla24xx_configure_vhba (scsi_qla_host_t *); 84extern int qla24xx_configure_vhba (scsi_qla_host_t *);
90extern int qla24xx_get_vp_entry(scsi_qla_host_t *, uint16_t, int);
91extern int qla24xx_get_vp_database(scsi_qla_host_t *, uint16_t);
92extern int qla2x00_do_dpc_vp(scsi_qla_host_t *);
93extern void qla24xx_report_id_acquisition(scsi_qla_host_t *, 85extern void qla24xx_report_id_acquisition(scsi_qla_host_t *,
94 struct vp_rpt_id_entry_24xx *); 86 struct vp_rpt_id_entry_24xx *);
95extern scsi_qla_host_t * qla24xx_find_vhost_by_name(scsi_qla_host_t *,
96 uint8_t *);
97extern void qla2x00_do_dpc_all_vps(scsi_qla_host_t *); 87extern void qla2x00_do_dpc_all_vps(scsi_qla_host_t *);
98extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *); 88extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *);
99extern scsi_qla_host_t * qla24xx_create_vhost(struct fc_vport *); 89extern scsi_qla_host_t * qla24xx_create_vhost(struct fc_vport *);
@@ -113,7 +103,6 @@ extern void qla2xxx_wake_dpc(scsi_qla_host_t *);
113extern void qla2x00_alert_all_vps(scsi_qla_host_t *, uint16_t *); 103extern void qla2x00_alert_all_vps(scsi_qla_host_t *, uint16_t *);
114extern void qla2x00_async_event(scsi_qla_host_t *, uint16_t *); 104extern void qla2x00_async_event(scsi_qla_host_t *, uint16_t *);
115extern void qla2x00_vp_abort_isp(scsi_qla_host_t *); 105extern void qla2x00_vp_abort_isp(scsi_qla_host_t *);
116extern int qla24xx_vport_delete(struct fc_vport *);
117 106
118/* 107/*
119 * Global Function Prototypes in qla_iocb.c source file. 108 * Global Function Prototypes in qla_iocb.c source file.
@@ -232,12 +221,6 @@ qla24xx_get_isp_stats(scsi_qla_host_t *, struct link_statistics *,
232extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); 221extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *);
233extern int qla24xx_abort_target(fc_port_t *); 222extern int qla24xx_abort_target(fc_port_t *);
234 223
235extern int qla2x00_system_error(scsi_qla_host_t *);
236
237extern int
238qla2x00_get_serdes_params(scsi_qla_host_t *, uint16_t *, uint16_t *,
239 uint16_t *);
240
241extern int 224extern int
242qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); 225qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t);
243 226
@@ -251,9 +234,6 @@ extern int
251qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t, uint16_t); 234qla2x00_read_sfp(scsi_qla_host_t *, dma_addr_t, uint16_t, uint16_t, uint16_t);
252 235
253extern int 236extern int
254qla2x00_get_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t *, uint16_t *);
255
256extern int
257qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *); 237qla2x00_set_idma_speed(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t *);
258 238
259/* 239/*
@@ -271,11 +251,7 @@ extern void qla2x00_free_irqs(scsi_qla_host_t *);
271/* 251/*
272 * Global Function Prototypes in qla_sup.c source file. 252 * Global Function Prototypes in qla_sup.c source file.
273 */ 253 */
274extern void qla2x00_lock_nvram_access(scsi_qla_host_t *);
275extern void qla2x00_unlock_nvram_access(scsi_qla_host_t *);
276extern void qla2x00_release_nvram_protection(scsi_qla_host_t *); 254extern void qla2x00_release_nvram_protection(scsi_qla_host_t *);
277extern uint16_t qla2x00_get_nvram_word(scsi_qla_host_t *, uint32_t);
278extern void qla2x00_write_nvram_word(scsi_qla_host_t *, uint32_t, uint16_t);
279extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *, 255extern uint32_t *qla24xx_read_flash_data(scsi_qla_host_t *, uint32_t *,
280 uint32_t, uint32_t); 256 uint32_t, uint32_t);
281extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, 257extern uint8_t *qla2x00_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t,
@@ -322,7 +298,6 @@ extern void qla25xx_fw_dump(scsi_qla_host_t *, int);
322extern void qla2x00_dump_regs(scsi_qla_host_t *); 298extern void qla2x00_dump_regs(scsi_qla_host_t *);
323extern void qla2x00_dump_buffer(uint8_t *, uint32_t); 299extern void qla2x00_dump_buffer(uint8_t *, uint32_t);
324extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *); 300extern void qla2x00_print_scsi_cmd(struct scsi_cmnd *);
325extern void qla2x00_dump_pkt(void *);
326 301
327/* 302/*
328 * Global Function Prototypes in qla_gs.c source file. 303 * Global Function Prototypes in qla_gs.c source file.