|
@@ -8,13 +8,9 @@
|
|
#ifndef __ASM_ARM_DMA_MAPPING_H
|
|
#ifndef __ASM_ARM_DMA_MAPPING_H
|
|
#define __ASM_ARM_DMA_MAPPING_H
|
|
#define __ASM_ARM_DMA_MAPPING_H
|
|
|
|
|
|
-#define dma_mapping_error(x, y) 0
|
|
|
|
|
|
+#include <linux/dma-direction.h>
|
|
|
|
|
|
-enum dma_data_direction {
|
|
|
|
- DMA_BIDIRECTIONAL = 0,
|
|
|
|
- DMA_TO_DEVICE = 1,
|
|
|
|
- DMA_FROM_DEVICE = 2,
|
|
|
|
-};
|
|
|
|
|
|
+#define dma_mapping_error(x, y) 0
|
|
|
|
|
|
static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
|
|
static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
|
|
{
|
|
{
|