|
@@ -4,17 +4,9 @@
|
|
#include <linux/device.h>
|
|
#include <linux/device.h>
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/dma-attrs.h>
|
|
#include <linux/dma-attrs.h>
|
|
|
|
+#include <linux/dma-direction.h>
|
|
#include <linux/scatterlist.h>
|
|
#include <linux/scatterlist.h>
|
|
|
|
|
|
-/* These definitions mirror those in pci.h, so they can be used
|
|
|
|
- * interchangeably with their PCI_ counterparts */
|
|
|
|
-enum dma_data_direction {
|
|
|
|
- DMA_BIDIRECTIONAL = 0,
|
|
|
|
- DMA_TO_DEVICE = 1,
|
|
|
|
- DMA_FROM_DEVICE = 2,
|
|
|
|
- DMA_NONE = 3,
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
struct dma_map_ops {
|
|
struct dma_map_ops {
|
|
void* (*alloc_coherent)(struct device *dev, size_t size,
|
|
void* (*alloc_coherent)(struct device *dev, size_t size,
|
|
dma_addr_t *dma_handle, gfp_t gfp);
|
|
dma_addr_t *dma_handle, gfp_t gfp);
|