Files
linux/arch/s390/include/asm/device.h
T
Christian Borntraeger e82becfc18 s390/dma: Allow per device dma ops
As virtio-ccw will have dma ops, we can no longer default to the
zPCI ones. Make use of dev_archdata to keep the dma_ops per device.
The pci devices now use that to override the default, and the
default is changed to use the noop ops for everything that does not
specify a device specific one.
To compile without PCI support we will enable HAS_DMA all the time,
via the default config in lib/Kconfig.

Signed-off-by: Christian Borntraeger <[email protected]>
Reviewed-by: Joerg Roedel <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Acked-by: Sebastian Ott <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
2016-03-02 17:01:56 +02:00

12 lines
178 B
C

/*
* Arch specific extensions to struct device
*
* This file is released under the GPLv2
*/
struct dev_archdata {
struct dma_map_ops *dma_ops;
};
struct pdev_archdata {
};