summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/ccwdev.h
diff options
context:
space:
mode:
authorHalil Pasic <pasic@linux.ibm.com>2024-03-07 15:28:08 +0300
committerHeiko Carstens <hca@linux.ibm.com>2024-03-13 11:23:46 +0300
commite3e9bda38e6d9f2af50b521741071d6406b40152 (patch)
treea08f3d97ded95c352b24cea3c03f8d681482b59d /arch/s390/include/asm/ccwdev.h
parentd5cc41686990fa522ce573e5c6c7a619f10c3fd1 (diff)
downloadlinux-e3e9bda38e6d9f2af50b521741071d6406b40152.tar.xz
s390/virtio_ccw: use DMA handle from DMA API
Change and use ccw_device_dma_zalloc() so it returns a virtual address like before, which can be used to access data. However also pass a new dma32_t pointer type handle, which correlates to the returned virtual address. This pointer is used to directly pass/set the DMA handle as returned by the DMA API. Signed-off-by: Halil Pasic <pasic@linux.ibm.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/ccwdev.h')
-rw-r--r--arch/s390/include/asm/ccwdev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h
index 91d261751d25..436365ff6c19 100644
--- a/arch/s390/include/asm/ccwdev.h
+++ b/arch/s390/include/asm/ccwdev.h
@@ -217,7 +217,8 @@ extern void ccw_device_destroy_console(struct ccw_device *);
extern int ccw_device_enable_console(struct ccw_device *);
extern void ccw_device_wait_idle(struct ccw_device *);
-extern void *ccw_device_dma_zalloc(struct ccw_device *cdev, size_t size);
+extern void *ccw_device_dma_zalloc(struct ccw_device *cdev, size_t size,
+ dma32_t *dma_handle);
extern void ccw_device_dma_free(struct ccw_device *cdev,
void *cpu_addr, size_t size);