aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/qdio_main.c
diff options
context:
space:
mode:
authorJan Glauber <jang@linux.vnet.ibm.com>2010-05-17 04:00:19 -0400
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2010-05-17 04:00:17 -0400
commitcc961d400e06e78c7aa39aeab1f001eb8f76ef90 (patch)
tree75a8f9668c6b723e637cc18b6264a3fac4a87112 /drivers/s390/cio/qdio_main.c
parentd0c9d4a89fff4352b20ae8704b84cd99a8372f66 (diff)
[S390] qdio: remove API wrappers
Remove qdio API wrappers used by qeth and replace them by calling the appropriate functions directly. Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/qdio_main.c')
-rw-r--r--drivers/s390/cio/qdio_main.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index dafb3e5bdad..00520f9a7a8 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -1023,30 +1023,6 @@ int qdio_get_ssqd_desc(struct ccw_device *cdev,
1023} 1023}
1024EXPORT_SYMBOL_GPL(qdio_get_ssqd_desc); 1024EXPORT_SYMBOL_GPL(qdio_get_ssqd_desc);
1025 1025
1026/**
1027 * qdio_cleanup - shutdown queues and free data structures
1028 * @cdev: associated ccw device
1029 * @how: use halt or clear to shutdown
1030 *
1031 * This function calls qdio_shutdown() for @cdev with method @how.
1032 * and qdio_free(). The qdio_free() return value is ignored since
1033 * !irq_ptr is already checked.
1034 */
1035int qdio_cleanup(struct ccw_device *cdev, int how)
1036{
1037 struct qdio_irq *irq_ptr = cdev->private->qdio_data;
1038 int rc;
1039
1040 if (!irq_ptr)
1041 return -ENODEV;
1042
1043 rc = qdio_shutdown(cdev, how);
1044
1045 qdio_free(cdev);
1046 return rc;
1047}
1048EXPORT_SYMBOL_GPL(qdio_cleanup);
1049
1050static void qdio_shutdown_queues(struct ccw_device *cdev) 1026static void qdio_shutdown_queues(struct ccw_device *cdev)
1051{ 1027{
1052 struct qdio_irq *irq_ptr = cdev->private->qdio_data; 1028 struct qdio_irq *irq_ptr = cdev->private->qdio_data;
@@ -1164,28 +1140,6 @@ int qdio_free(struct ccw_device *cdev)
1164EXPORT_SYMBOL_GPL(qdio_free); 1140EXPORT_SYMBOL_GPL(qdio_free);
1165 1141
1166/** 1142/**
1167 * qdio_initialize - allocate and establish queues for a qdio subchannel
1168 * @init_data: initialization data
1169 *
1170 * This function first allocates queues via qdio_allocate() and on success
1171 * establishes them via qdio_establish().
1172 */
1173int qdio_initialize(struct qdio_initialize *init_data)
1174{
1175 int rc;
1176
1177 rc = qdio_allocate(init_data);
1178 if (rc)
1179 return rc;
1180
1181 rc = qdio_establish(init_data);
1182 if (rc)
1183 qdio_free(init_data->cdev);
1184 return rc;
1185}
1186EXPORT_SYMBOL_GPL(qdio_initialize);
1187
1188/**
1189 * qdio_allocate - allocate qdio queues and associated data 1143 * qdio_allocate - allocate qdio queues and associated data
1190 * @init_data: initialization data 1144 * @init_data: initialization data
1191 */ 1145 */