[JFFS2] Remove flash offset argument from various functions.
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-um / dma-mapping.h
blobbabd2989511465887973098e1619e6d20a067669
1 #ifndef _ASM_DMA_MAPPING_H
2 #define _ASM_DMA_MAPPING_H
4 #include <asm/scatterlist.h>
6 static inline int
7 dma_supported(struct device *dev, u64 mask)
9 BUG();
10 return(0);
13 static inline int
14 dma_set_mask(struct device *dev, u64 dma_mask)
16 BUG();
17 return(0);
20 static inline void *
21 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
22 gfp_t flag)
24 BUG();
25 return((void *) 0);
28 static inline void
29 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
30 dma_addr_t dma_handle)
32 BUG();
35 static inline dma_addr_t
36 dma_map_single(struct device *dev, void *cpu_addr, size_t size,
37 enum dma_data_direction direction)
39 BUG();
40 return(0);
43 static inline void
44 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
45 enum dma_data_direction direction)
47 BUG();
50 static inline dma_addr_t
51 dma_map_page(struct device *dev, struct page *page,
52 unsigned long offset, size_t size,
53 enum dma_data_direction direction)
55 BUG();
56 return(0);
59 static inline void
60 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size,
61 enum dma_data_direction direction)
63 BUG();
66 static inline int
67 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
68 enum dma_data_direction direction)
70 BUG();
71 return(0);
74 static inline void
75 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries,
76 enum dma_data_direction direction)
78 BUG();
81 static inline void
82 dma_sync_single(struct device *dev, dma_addr_t dma_handle, size_t size,
83 enum dma_data_direction direction)
85 BUG();
88 static inline void
89 dma_sync_sg(struct device *dev, struct scatterlist *sg, int nelems,
90 enum dma_data_direction direction)
92 BUG();
95 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
96 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
97 #define dma_is_consistent(d) (1)
99 static inline int
100 dma_get_cache_alignment(void)
102 BUG();
103 return(0);
106 static inline void
107 dma_sync_single_range(struct device *dev, dma_addr_t dma_handle,
108 unsigned long offset, size_t size,
109 enum dma_data_direction direction)
111 BUG();
114 static inline void
115 dma_cache_sync(void *vaddr, size_t size,
116 enum dma_data_direction direction)
118 BUG();
121 #endif