Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349024
b: refs/heads/master
c: aaf4f97
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven committed Dec 25, 2012
1 parent c9057ab commit 41c34b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a09ab6771276a7fd3f80be4250a0fd0ba5114ad
refs/heads/master: aaf4f97f267aa0dbc42f089b33325e61aac8622e
16 changes: 16 additions & 0 deletions trunk/include/asm-generic/dma-mapping-broken.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ extern void
dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
dma_addr_t dma_handle);

static inline void *dma_alloc_attrs(struct device *dev, size_t size,
dma_addr_t *dma_handle, gfp_t flag,
struct dma_attrs *attrs)
{
/* attrs is not supported and ignored */
return dma_alloc_coherent(dev, size, dma_handle, flag);
}

static inline void dma_free_attrs(struct device *dev, size_t size,
void *cpu_addr, dma_addr_t dma_handle,
struct dma_attrs *attrs)
{
/* attrs is not supported and ignored */
dma_free_coherent(dev, size, cpu_addr, dma_handle);
}

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)

Expand Down

0 comments on commit 41c34b7

Please sign in to comment.