diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_ext.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_ext.h | 73 |
1 files changed, 39 insertions, 34 deletions
diff --git a/drivers/s390/scsi/zfcp_ext.h b/drivers/s390/scsi/zfcp_ext.h index b5adeda93e1d..f6399ca97bcb 100644 --- a/drivers/s390/scsi/zfcp_ext.h +++ b/drivers/s390/scsi/zfcp_ext.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * External function declarations. | 4 | * External function declarations. |
5 | * | 5 | * |
6 | * Copyright IBM Corporation 2002, 2008 | 6 | * Copyright IBM Corporation 2002, 2009 |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #ifndef ZFCP_EXT_H | 9 | #ifndef ZFCP_EXT_H |
@@ -35,15 +35,15 @@ extern struct miscdevice zfcp_cfdc_misc; | |||
35 | /* zfcp_dbf.c */ | 35 | /* zfcp_dbf.c */ |
36 | extern int zfcp_adapter_debug_register(struct zfcp_adapter *); | 36 | extern int zfcp_adapter_debug_register(struct zfcp_adapter *); |
37 | extern void zfcp_adapter_debug_unregister(struct zfcp_adapter *); | 37 | extern void zfcp_adapter_debug_unregister(struct zfcp_adapter *); |
38 | extern void zfcp_rec_dbf_event_thread(u8, struct zfcp_adapter *); | 38 | extern void zfcp_rec_dbf_event_thread(char *, struct zfcp_adapter *); |
39 | extern void zfcp_rec_dbf_event_thread_lock(u8, struct zfcp_adapter *); | 39 | extern void zfcp_rec_dbf_event_thread_lock(char *, struct zfcp_adapter *); |
40 | extern void zfcp_rec_dbf_event_adapter(u8, void *, struct zfcp_adapter *); | 40 | extern void zfcp_rec_dbf_event_adapter(char *, void *, struct zfcp_adapter *); |
41 | extern void zfcp_rec_dbf_event_port(u8, void *, struct zfcp_port *); | 41 | extern void zfcp_rec_dbf_event_port(char *, void *, struct zfcp_port *); |
42 | extern void zfcp_rec_dbf_event_unit(u8, void *, struct zfcp_unit *); | 42 | extern void zfcp_rec_dbf_event_unit(char *, void *, struct zfcp_unit *); |
43 | extern void zfcp_rec_dbf_event_trigger(u8, void *, u8, u8, void *, | 43 | extern void zfcp_rec_dbf_event_trigger(char *, void *, u8, u8, void *, |
44 | struct zfcp_adapter *, | 44 | struct zfcp_adapter *, |
45 | struct zfcp_port *, struct zfcp_unit *); | 45 | struct zfcp_port *, struct zfcp_unit *); |
46 | extern void zfcp_rec_dbf_event_action(u8, struct zfcp_erp_action *); | 46 | extern void zfcp_rec_dbf_event_action(char *, struct zfcp_erp_action *); |
47 | extern void zfcp_hba_dbf_event_fsf_response(struct zfcp_fsf_req *); | 47 | extern void zfcp_hba_dbf_event_fsf_response(struct zfcp_fsf_req *); |
48 | extern void zfcp_hba_dbf_event_fsf_unsol(const char *, struct zfcp_adapter *, | 48 | extern void zfcp_hba_dbf_event_fsf_unsol(const char *, struct zfcp_adapter *, |
49 | struct fsf_status_read_buffer *); | 49 | struct fsf_status_read_buffer *); |
@@ -66,31 +66,34 @@ extern void zfcp_scsi_dbf_event_devreset(const char *, u8, struct zfcp_unit *, | |||
66 | struct scsi_cmnd *); | 66 | struct scsi_cmnd *); |
67 | 67 | ||
68 | /* zfcp_erp.c */ | 68 | /* zfcp_erp.c */ |
69 | extern void zfcp_erp_modify_adapter_status(struct zfcp_adapter *, u8, void *, | 69 | extern void zfcp_erp_modify_adapter_status(struct zfcp_adapter *, char *, |
70 | u32, int); | 70 | void *, u32, int); |
71 | extern void zfcp_erp_adapter_reopen(struct zfcp_adapter *, int, u8, void *); | 71 | extern void zfcp_erp_adapter_reopen(struct zfcp_adapter *, int, char *, void *); |
72 | extern void zfcp_erp_adapter_shutdown(struct zfcp_adapter *, int, u8, void *); | 72 | extern void zfcp_erp_adapter_shutdown(struct zfcp_adapter *, int, char *, |
73 | extern void zfcp_erp_adapter_failed(struct zfcp_adapter *, u8, void *); | 73 | void *); |
74 | extern void zfcp_erp_modify_port_status(struct zfcp_port *, u8, void *, u32, | 74 | extern void zfcp_erp_adapter_failed(struct zfcp_adapter *, char *, void *); |
75 | extern void zfcp_erp_modify_port_status(struct zfcp_port *, char *, void *, u32, | ||
75 | int); | 76 | int); |
76 | extern int zfcp_erp_port_reopen(struct zfcp_port *, int, u8, void *); | 77 | extern int zfcp_erp_port_reopen(struct zfcp_port *, int, char *, void *); |
77 | extern void zfcp_erp_port_shutdown(struct zfcp_port *, int, u8, void *); | 78 | extern void zfcp_erp_port_shutdown(struct zfcp_port *, int, char *, void *); |
78 | extern void zfcp_erp_port_forced_reopen(struct zfcp_port *, int, u8, void *); | 79 | extern void zfcp_erp_port_forced_reopen(struct zfcp_port *, int, char *, |
79 | extern void zfcp_erp_port_failed(struct zfcp_port *, u8, void *); | 80 | void *); |
80 | extern void zfcp_erp_modify_unit_status(struct zfcp_unit *, u8, void *, u32, | 81 | extern void zfcp_erp_port_failed(struct zfcp_port *, char *, void *); |
82 | extern void zfcp_erp_modify_unit_status(struct zfcp_unit *, char *, void *, u32, | ||
81 | int); | 83 | int); |
82 | extern void zfcp_erp_unit_reopen(struct zfcp_unit *, int, u8, void *); | 84 | extern void zfcp_erp_unit_reopen(struct zfcp_unit *, int, char *, void *); |
83 | extern void zfcp_erp_unit_shutdown(struct zfcp_unit *, int, u8, void *); | 85 | extern void zfcp_erp_unit_shutdown(struct zfcp_unit *, int, char *, void *); |
84 | extern void zfcp_erp_unit_failed(struct zfcp_unit *, u8, void *); | 86 | extern void zfcp_erp_unit_failed(struct zfcp_unit *, char *, void *); |
85 | extern int zfcp_erp_thread_setup(struct zfcp_adapter *); | 87 | extern int zfcp_erp_thread_setup(struct zfcp_adapter *); |
86 | extern void zfcp_erp_thread_kill(struct zfcp_adapter *); | 88 | extern void zfcp_erp_thread_kill(struct zfcp_adapter *); |
87 | extern void zfcp_erp_wait(struct zfcp_adapter *); | 89 | extern void zfcp_erp_wait(struct zfcp_adapter *); |
88 | extern void zfcp_erp_notify(struct zfcp_erp_action *, unsigned long); | 90 | extern void zfcp_erp_notify(struct zfcp_erp_action *, unsigned long); |
89 | extern void zfcp_erp_port_boxed(struct zfcp_port *, u8, void *); | 91 | extern void zfcp_erp_port_boxed(struct zfcp_port *, char *, void *); |
90 | extern void zfcp_erp_unit_boxed(struct zfcp_unit *, u8, void *); | 92 | extern void zfcp_erp_unit_boxed(struct zfcp_unit *, char *, void *); |
91 | extern void zfcp_erp_port_access_denied(struct zfcp_port *, u8, void *); | 93 | extern void zfcp_erp_port_access_denied(struct zfcp_port *, char *, void *); |
92 | extern void zfcp_erp_unit_access_denied(struct zfcp_unit *, u8, void *); | 94 | extern void zfcp_erp_unit_access_denied(struct zfcp_unit *, char *, void *); |
93 | extern void zfcp_erp_adapter_access_changed(struct zfcp_adapter *, u8, void *); | 95 | extern void zfcp_erp_adapter_access_changed(struct zfcp_adapter *, char *, |
96 | void *); | ||
94 | extern void zfcp_erp_timeout_handler(unsigned long); | 97 | extern void zfcp_erp_timeout_handler(unsigned long); |
95 | extern void zfcp_erp_port_strategy_open_lookup(struct work_struct *); | 98 | extern void zfcp_erp_port_strategy_open_lookup(struct work_struct *); |
96 | 99 | ||
@@ -101,6 +104,7 @@ extern void zfcp_fc_incoming_els(struct zfcp_fsf_req *); | |||
101 | extern int zfcp_fc_ns_gid_pn(struct zfcp_erp_action *); | 104 | extern int zfcp_fc_ns_gid_pn(struct zfcp_erp_action *); |
102 | extern void zfcp_fc_plogi_evaluate(struct zfcp_port *, struct fsf_plogi *); | 105 | extern void zfcp_fc_plogi_evaluate(struct zfcp_port *, struct fsf_plogi *); |
103 | extern void zfcp_test_link(struct zfcp_port *); | 106 | extern void zfcp_test_link(struct zfcp_port *); |
107 | extern void zfcp_fc_link_test_work(struct work_struct *); | ||
104 | extern void zfcp_fc_nameserver_init(struct zfcp_adapter *); | 108 | extern void zfcp_fc_nameserver_init(struct zfcp_adapter *); |
105 | 109 | ||
106 | /* zfcp_fsf.c */ | 110 | /* zfcp_fsf.c */ |
@@ -125,16 +129,13 @@ extern int zfcp_status_read_refill(struct zfcp_adapter *adapter); | |||
125 | extern int zfcp_fsf_send_ct(struct zfcp_send_ct *, mempool_t *, | 129 | extern int zfcp_fsf_send_ct(struct zfcp_send_ct *, mempool_t *, |
126 | struct zfcp_erp_action *); | 130 | struct zfcp_erp_action *); |
127 | extern int zfcp_fsf_send_els(struct zfcp_send_els *); | 131 | extern int zfcp_fsf_send_els(struct zfcp_send_els *); |
128 | extern int zfcp_fsf_send_fcp_command_task(struct zfcp_adapter *, | 132 | extern int zfcp_fsf_send_fcp_command_task(struct zfcp_unit *, |
129 | struct zfcp_unit *, | 133 | struct scsi_cmnd *); |
130 | struct scsi_cmnd *, int, int); | ||
131 | extern void zfcp_fsf_req_complete(struct zfcp_fsf_req *); | 134 | extern void zfcp_fsf_req_complete(struct zfcp_fsf_req *); |
132 | extern void zfcp_fsf_req_free(struct zfcp_fsf_req *); | 135 | extern void zfcp_fsf_req_free(struct zfcp_fsf_req *); |
133 | extern struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_adapter *, | 136 | extern struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_unit *, u8); |
134 | struct zfcp_unit *, u8, int); | ||
135 | extern struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long, | 137 | extern struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long, |
136 | struct zfcp_adapter *, | 138 | struct zfcp_unit *); |
137 | struct zfcp_unit *, int); | ||
138 | 139 | ||
139 | /* zfcp_qdio.c */ | 140 | /* zfcp_qdio.c */ |
140 | extern int zfcp_qdio_allocate(struct zfcp_adapter *); | 141 | extern int zfcp_qdio_allocate(struct zfcp_adapter *); |
@@ -153,6 +154,10 @@ extern int zfcp_adapter_scsi_register(struct zfcp_adapter *); | |||
153 | extern void zfcp_adapter_scsi_unregister(struct zfcp_adapter *); | 154 | extern void zfcp_adapter_scsi_unregister(struct zfcp_adapter *); |
154 | extern char *zfcp_get_fcp_sns_info_ptr(struct fcp_rsp_iu *); | 155 | extern char *zfcp_get_fcp_sns_info_ptr(struct fcp_rsp_iu *); |
155 | extern struct fc_function_template zfcp_transport_functions; | 156 | extern struct fc_function_template zfcp_transport_functions; |
157 | extern void zfcp_scsi_rport_work(struct work_struct *); | ||
158 | extern void zfcp_scsi_schedule_rport_register(struct zfcp_port *); | ||
159 | extern void zfcp_scsi_schedule_rport_block(struct zfcp_port *); | ||
160 | extern void zfcp_scsi_schedule_rports_block(struct zfcp_adapter *); | ||
156 | 161 | ||
157 | /* zfcp_sysfs.c */ | 162 | /* zfcp_sysfs.c */ |
158 | extern struct attribute_group zfcp_sysfs_unit_attrs; | 163 | extern struct attribute_group zfcp_sysfs_unit_attrs; |