diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2009-08-18 09:43:19 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 09:49:27 -0400 |
commit | 564e1c86c810f9ccfe4300afa402815e3db4886d (patch) | |
tree | ecb88038c443d6486e9df352c79b3c78be5454ef /drivers/s390/scsi/zfcp_ext.h | |
parent | 42428f747a8a0db9c6de03e105932316defad65d (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.h | 26 |
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, | |||
51 | extern void _zfcp_hba_dbf_event_fsf_unsol(const char *, int level, | 51 | extern 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 *); |
54 | extern void zfcp_hba_dbf_event_qdio(struct zfcp_adapter *, unsigned int, int, | 54 | extern void zfcp_hba_dbf_event_qdio(struct zfcp_qdio *, unsigned int, int, |
55 | int); | 55 | int); |
56 | extern void zfcp_hba_dbf_event_berr(struct zfcp_adapter *, | 56 | extern 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 *); | |||
118 | extern int zfcp_fsf_open_unit(struct zfcp_erp_action *); | 118 | extern int zfcp_fsf_open_unit(struct zfcp_erp_action *); |
119 | extern int zfcp_fsf_close_unit(struct zfcp_erp_action *); | 119 | extern int zfcp_fsf_close_unit(struct zfcp_erp_action *); |
120 | extern int zfcp_fsf_exchange_config_data(struct zfcp_erp_action *); | 120 | extern int zfcp_fsf_exchange_config_data(struct zfcp_erp_action *); |
121 | extern int zfcp_fsf_exchange_config_data_sync(struct zfcp_adapter *, | 121 | extern int zfcp_fsf_exchange_config_data_sync(struct zfcp_qdio *, |
122 | struct fsf_qtcb_bottom_config *); | 122 | struct fsf_qtcb_bottom_config *); |
123 | extern int zfcp_fsf_exchange_port_data(struct zfcp_erp_action *); | 123 | extern int zfcp_fsf_exchange_port_data(struct zfcp_erp_action *); |
124 | extern int zfcp_fsf_exchange_port_data_sync(struct zfcp_adapter *, | 124 | extern int zfcp_fsf_exchange_port_data_sync(struct zfcp_qdio *, |
125 | struct fsf_qtcb_bottom_port *); | 125 | struct fsf_qtcb_bottom_port *); |
126 | extern struct zfcp_fsf_req *zfcp_fsf_control_file(struct zfcp_adapter *, | 126 | extern struct zfcp_fsf_req *zfcp_fsf_control_file(struct zfcp_adapter *, |
127 | struct zfcp_fsf_cfdc *); | 127 | struct zfcp_fsf_cfdc *); |
128 | extern void zfcp_fsf_req_dismiss_all(struct zfcp_adapter *); | 128 | extern void zfcp_fsf_req_dismiss_all(struct zfcp_adapter *); |
129 | extern int zfcp_fsf_status_read(struct zfcp_adapter *); | 129 | extern int zfcp_fsf_status_read(struct zfcp_qdio *); |
130 | extern int zfcp_status_read_refill(struct zfcp_adapter *adapter); | 130 | extern int zfcp_status_read_refill(struct zfcp_adapter *adapter); |
131 | extern int zfcp_fsf_send_ct(struct zfcp_send_ct *, mempool_t *, | 131 | extern 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 *); | |||
137 | extern struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_unit *, u8); | 137 | extern struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_unit *, u8); |
138 | extern struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long, | 138 | extern struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long, |
139 | struct zfcp_unit *); | 139 | struct zfcp_unit *); |
140 | extern void zfcp_fsf_reqid_check(struct zfcp_adapter *, int); | 140 | extern void zfcp_fsf_reqid_check(struct zfcp_qdio *, int); |
141 | 141 | ||
142 | /* zfcp_qdio.c */ | 142 | /* zfcp_qdio.c */ |
143 | extern int zfcp_qdio_allocate(struct zfcp_adapter *); | 143 | extern int zfcp_qdio_allocate(struct zfcp_qdio *, struct ccw_device *); |
144 | extern void zfcp_qdio_free(struct zfcp_adapter *); | 144 | extern void zfcp_qdio_free(struct zfcp_qdio *); |
145 | extern int zfcp_qdio_send(struct zfcp_adapter *, struct zfcp_queue_req *); | 145 | extern int zfcp_qdio_send(struct zfcp_qdio *, struct zfcp_queue_req *); |
146 | extern struct qdio_buffer_element | 146 | extern 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 *); |
148 | extern struct qdio_buffer_element | 148 | extern 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 *); |
150 | extern int zfcp_qdio_sbals_from_sg(struct zfcp_adapter *, | 150 | extern 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); |
153 | extern int zfcp_qdio_open(struct zfcp_adapter *); | 153 | extern int zfcp_qdio_open(struct zfcp_qdio *); |
154 | extern void zfcp_qdio_close(struct zfcp_adapter *); | 154 | extern void zfcp_qdio_close(struct zfcp_qdio *); |
155 | 155 | ||
156 | /* zfcp_scsi.c */ | 156 | /* zfcp_scsi.c */ |
157 | extern struct zfcp_data zfcp_data; | 157 | extern struct zfcp_data zfcp_data; |