Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36325
b: refs/heads/master
c: 87b0ef9
h: refs/heads/master
i:
  36323: 00546f7
v: v3
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent 1efe8e5 commit 38fa771
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19f9a34f87c48bbd270d617d1c986d0c23866a1a
refs/heads/master: 87b0ef91b6f27c07bf7dcce8584437481f473092
42 changes: 25 additions & 17 deletions trunk/include/asm-sh/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,25 +141,35 @@ static inline void dma_sync_sg(struct device *dev, struct scatterlist *sg,
}
}

static void dma_sync_single_for_cpu(struct device *dev,
dma_addr_t dma_handle, size_t size,
enum dma_data_direction dir)
__attribute__ ((alias("dma_sync_single")));
static inline void dma_sync_single_for_cpu(struct device *dev,
dma_addr_t dma_handle, size_t size,
enum dma_data_direction dir)
{
dma_sync_single(dev, dma_handle, size, dir);
}

static inline void dma_sync_single_for_device(struct device *dev,
dma_addr_t dma_handle,
size_t size,
enum dma_data_direction dir)
{
dma_sync_single(dev, dma_handle, size, dir);
}

static void dma_sync_single_for_device(struct device *dev,
dma_addr_t dma_handle, size_t size,
static inline void dma_sync_sg_for_cpu(struct device *dev,
struct scatterlist *sg, int nelems,
enum dma_data_direction dir)
__attribute__ ((alias("dma_sync_single")));
{
dma_sync_sg(dev, sg, nelems, dir);
}

static void dma_sync_sg_for_cpu(struct device *dev,
struct scatterlist *sg, int nelems,
enum dma_data_direction dir)
__attribute__ ((alias("dma_sync_sg")));
static inline void dma_sync_sg_for_device(struct device *dev,
struct scatterlist *sg, int nelems,
enum dma_data_direction dir)
{
dma_sync_sg(dev, sg, nelems, dir);
}

static void dma_sync_sg_for_device(struct device *dev,
struct scatterlist *sg, int nelems,
enum dma_data_direction dir)
__attribute__ ((alias("dma_sync_sg")));

static inline int dma_get_cache_alignment(void)
{
Expand All @@ -174,6 +184,4 @@ static inline int dma_mapping_error(dma_addr_t dma_addr)
{
return dma_addr == 0;
}

#endif /* __ASM_SH_DMA_MAPPING_H */

0 comments on commit 38fa771

Please sign in to comment.