aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_ext.h
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2009-08-18 09:43:19 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 09:49:27 -0400
commit564e1c86c810f9ccfe4300afa402815e3db4886d (patch)
treeecb88038c443d6486e9df352c79b3c78be5454ef /drivers/s390/scsi/zfcp_ext.h
parent42428f747a8a0db9c6de03e105932316defad65d (diff)
[SCSI] zfcp: Move qdio related data out of zfcp_adapter
The zfcp_adapter structure was growing over time to a size of almost one memory page. To reduce the size of the data structure and to seperate different layers, put all qdio related data in the new zfcp_qdio data structure. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ext.h')
-rw-r--r--drivers/s390/scsi/zfcp_ext.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/s390/scsi/zfcp_ext.h b/drivers/s390/scsi/zfcp_ext.h
index d11c0f44dad3..e97947d2f2ed 100644
--- a/drivers/s390/scsi/zfcp_ext.h
+++ b/drivers/s390/scsi/zfcp_ext.h
@@ -51,7 +51,7 @@ extern void _zfcp_hba_dbf_event_fsf_response(const char *, int level,
51extern void _zfcp_hba_dbf_event_fsf_unsol(const char *, int level, 51extern void _zfcp_hba_dbf_event_fsf_unsol(const char *, int level,
52 struct zfcp_adapter *, 52 struct zfcp_adapter *,
53 struct fsf_status_read_buffer *); 53 struct fsf_status_read_buffer *);
54extern void zfcp_hba_dbf_event_qdio(struct zfcp_adapter *, unsigned int, int, 54extern void zfcp_hba_dbf_event_qdio(struct zfcp_qdio *, unsigned int, int,
55 int); 55 int);
56extern void zfcp_hba_dbf_event_berr(struct zfcp_adapter *, 56extern void zfcp_hba_dbf_event_berr(struct zfcp_adapter *,
57 struct zfcp_fsf_req *); 57 struct zfcp_fsf_req *);
@@ -118,15 +118,15 @@ extern int zfcp_fsf_close_physical_port(struct zfcp_erp_action *);
118extern int zfcp_fsf_open_unit(struct zfcp_erp_action *); 118extern int zfcp_fsf_open_unit(struct zfcp_erp_action *);
119extern int zfcp_fsf_close_unit(struct zfcp_erp_action *); 119extern int zfcp_fsf_close_unit(struct zfcp_erp_action *);
120extern int zfcp_fsf_exchange_config_data(struct zfcp_erp_action *); 120extern int zfcp_fsf_exchange_config_data(struct zfcp_erp_action *);
121extern int zfcp_fsf_exchange_config_data_sync(struct zfcp_adapter *, 121extern int zfcp_fsf_exchange_config_data_sync(struct zfcp_qdio *,
122 struct fsf_qtcb_bottom_config *); 122 struct fsf_qtcb_bottom_config *);
123extern int zfcp_fsf_exchange_port_data(struct zfcp_erp_action *); 123extern int zfcp_fsf_exchange_port_data(struct zfcp_erp_action *);
124extern int zfcp_fsf_exchange_port_data_sync(struct zfcp_adapter *, 124extern int zfcp_fsf_exchange_port_data_sync(struct zfcp_qdio *,
125 struct fsf_qtcb_bottom_port *); 125 struct fsf_qtcb_bottom_port *);
126extern struct zfcp_fsf_req *zfcp_fsf_control_file(struct zfcp_adapter *, 126extern struct zfcp_fsf_req *zfcp_fsf_control_file(struct zfcp_adapter *,
127 struct zfcp_fsf_cfdc *); 127 struct zfcp_fsf_cfdc *);
128extern void zfcp_fsf_req_dismiss_all(struct zfcp_adapter *); 128extern void zfcp_fsf_req_dismiss_all(struct zfcp_adapter *);
129extern int zfcp_fsf_status_read(struct zfcp_adapter *); 129extern int zfcp_fsf_status_read(struct zfcp_qdio *);
130extern int zfcp_status_read_refill(struct zfcp_adapter *adapter); 130extern int zfcp_status_read_refill(struct zfcp_adapter *adapter);
131extern int zfcp_fsf_send_ct(struct zfcp_send_ct *, mempool_t *, 131extern int zfcp_fsf_send_ct(struct zfcp_send_ct *, mempool_t *,
132 struct zfcp_erp_action *); 132 struct zfcp_erp_action *);
@@ -137,21 +137,21 @@ extern void zfcp_fsf_req_free(struct zfcp_fsf_req *);
137extern struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_unit *, u8); 137extern struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_unit *, u8);
138extern struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long, 138extern struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long,
139 struct zfcp_unit *); 139 struct zfcp_unit *);
140extern void zfcp_fsf_reqid_check(struct zfcp_adapter *, int); 140extern void zfcp_fsf_reqid_check(struct zfcp_qdio *, int);
141 141
142/* zfcp_qdio.c */ 142/* zfcp_qdio.c */
143extern int zfcp_qdio_allocate(struct zfcp_adapter *); 143extern int zfcp_qdio_allocate(struct zfcp_qdio *, struct ccw_device *);
144extern void zfcp_qdio_free(struct zfcp_adapter *); 144extern void zfcp_qdio_free(struct zfcp_qdio *);
145extern int zfcp_qdio_send(struct zfcp_adapter *, struct zfcp_queue_req *); 145extern int zfcp_qdio_send(struct zfcp_qdio *, struct zfcp_queue_req *);
146extern struct qdio_buffer_element 146extern struct qdio_buffer_element
147 *zfcp_qdio_sbale_req(struct zfcp_adapter *, struct zfcp_queue_req *); 147 *zfcp_qdio_sbale_req(struct zfcp_qdio *, struct zfcp_queue_req *);
148extern struct qdio_buffer_element 148extern struct qdio_buffer_element
149 *zfcp_qdio_sbale_curr(struct zfcp_adapter *, struct zfcp_queue_req *); 149 *zfcp_qdio_sbale_curr(struct zfcp_qdio *, struct zfcp_queue_req *);
150extern int zfcp_qdio_sbals_from_sg(struct zfcp_adapter *, 150extern int zfcp_qdio_sbals_from_sg(struct zfcp_qdio *,
151 struct zfcp_queue_req *, unsigned long, 151 struct zfcp_queue_req *, unsigned long,
152 struct scatterlist *, int); 152 struct scatterlist *, int);
153extern int zfcp_qdio_open(struct zfcp_adapter *); 153extern int zfcp_qdio_open(struct zfcp_qdio *);
154extern void zfcp_qdio_close(struct zfcp_adapter *); 154extern void zfcp_qdio_close(struct zfcp_qdio *);
155 155
156/* zfcp_scsi.c */ 156/* zfcp_scsi.c */
157extern struct zfcp_data zfcp_data; 157extern struct zfcp_data zfcp_data;