diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-06-05 02:32:23 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-05 02:32:23 -0400 |
commit | f04dbac2623439e8e15abf55742769af0280c919 (patch) | |
tree | 88a433b518d05b1cd7085a9ee8e811b0f070415f | |
parent | a2f9f6bbb30e60ee9f9f83cede960123a65876a2 (diff) |
[SPARC64]: Fill in gaps in non-PCI dma_*() NOP implementation.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/asm-sparc64/dma-mapping.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/include/asm-sparc64/dma-mapping.h b/include/asm-sparc64/dma-mapping.h index 9329429fb7f6..4e21c2f3065c 100644 --- a/include/asm-sparc64/dma-mapping.h +++ b/include/asm-sparc64/dma-mapping.h | |||
@@ -162,6 +162,22 @@ dma_mapping_error(dma_addr_t dma_addr) | |||
162 | #else | 162 | #else |
163 | 163 | ||
164 | struct device; | 164 | struct device; |
165 | struct page; | ||
166 | struct scatterlist; | ||
167 | |||
168 | static inline int | ||
169 | dma_supported(struct device *dev, u64 mask) | ||
170 | { | ||
171 | BUG(); | ||
172 | return 0; | ||
173 | } | ||
174 | |||
175 | static inline int | ||
176 | dma_set_mask(struct device *dev, u64 dma_mask) | ||
177 | { | ||
178 | BUG(); | ||
179 | return 0; | ||
180 | } | ||
165 | 181 | ||
166 | static inline void *dma_alloc_coherent(struct device *dev, size_t size, | 182 | static inline void *dma_alloc_coherent(struct device *dev, size_t size, |
167 | dma_addr_t *dma_handle, gfp_t flag) | 183 | dma_addr_t *dma_handle, gfp_t flag) |
@@ -176,6 +192,52 @@ static inline void dma_free_coherent(struct device *dev, size_t size, | |||
176 | BUG(); | 192 | BUG(); |
177 | } | 193 | } |
178 | 194 | ||
195 | static inline dma_addr_t | ||
196 | dma_map_single(struct device *dev, void *cpu_addr, size_t size, | ||
197 | enum dma_data_direction direction) | ||
198 | { | ||
199 | BUG(); | ||
200 | return 0; | ||
201 | } | ||
202 | |||
203 | static inline void | ||
204 | dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, | ||
205 | enum dma_data_direction direction) | ||
206 | { | ||
207 | BUG(); | ||
208 | } | ||
209 | |||
210 | static inline dma_addr_t | ||
211 | dma_map_page(struct device *dev, struct page *page, | ||
212 | unsigned long offset, size_t size, | ||
213 | enum dma_data_direction direction) | ||
214 | { | ||
215 | BUG(); | ||
216 | return 0; | ||
217 | } | ||
218 | |||
219 | static inline void | ||
220 | dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, | ||
221 | enum dma_data_direction direction) | ||
222 | { | ||
223 | BUG(); | ||
224 | } | ||
225 | |||
226 | static inline int | ||
227 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | ||
228 | enum dma_data_direction direction) | ||
229 | { | ||
230 | BUG(); | ||
231 | return 0; | ||
232 | } | ||
233 | |||
234 | static inline void | ||
235 | dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, | ||
236 | enum dma_data_direction direction) | ||
237 | { | ||
238 | BUG(); | ||
239 | } | ||
240 | |||
179 | static inline void | 241 | static inline void |
180 | dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, | 242 | dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, |
181 | enum dma_data_direction direction) | 243 | enum dma_data_direction direction) |
@@ -190,6 +252,27 @@ dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t siz | |||
190 | BUG(); | 252 | BUG(); |
191 | } | 253 | } |
192 | 254 | ||
255 | static inline void | ||
256 | dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, | ||
257 | enum dma_data_direction direction) | ||
258 | { | ||
259 | BUG(); | ||
260 | } | ||
261 | |||
262 | static inline void | ||
263 | dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, | ||
264 | enum dma_data_direction direction) | ||
265 | { | ||
266 | BUG(); | ||
267 | } | ||
268 | |||
269 | static inline int | ||
270 | dma_mapping_error(dma_addr_t dma_addr) | ||
271 | { | ||
272 | BUG(); | ||
273 | return 0; | ||
274 | } | ||
275 | |||
193 | #endif /* PCI */ | 276 | #endif /* PCI */ |
194 | 277 | ||
195 | 278 | ||