Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123079
b: refs/heads/master
c: 0efbb57
h: refs/heads/master
i:
  123077: 5139a21
  123075: 7bcafe7
  123071: 276ad40
v: v3
  • Loading branch information
Becky Bruce authored and Paul Mackerras committed Dec 16, 2008
1 parent df66cb4 commit 6b6b465
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 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: 46d01492b2c50791b9b66f9b9154ac8d25acaeb9
refs/heads/master: 0efbb57e06d881a39a7f261e5c33558aedec0f79
41 changes: 35 additions & 6 deletions trunk/arch/powerpc/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,41 @@ static inline void dma_sync_single_range_for_device(struct device *dev,
size, direction);
}
#else /* CONFIG_PPC_NEED_DMA_SYNC_OPS */
#define dma_sync_single_for_cpu(d, h, s, dir) ((void)0)
#define dma_sync_single_for_device(d, h, s, dir) ((void)0)
#define dma_sync_single_range_for_cpu(d, h, o, s, dir) ((void)0)
#define dma_sync_single_range_for_device(d, h, o, s, dir) ((void)0)
#define dma_sync_sg_for_cpu(d, s, n, dir) ((void)0)
#define dma_sync_sg_for_device(d, s, n, dir) ((void)0)
static inline void dma_sync_single_for_cpu(struct device *dev,
dma_addr_t dma_handle, size_t size,
enum dma_data_direction direction)
{
}

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

static inline void dma_sync_sg_for_cpu(struct device *dev,
struct scatterlist *sgl, int nents,
enum dma_data_direction direction)
{
}

static inline void dma_sync_sg_for_device(struct device *dev,
struct scatterlist *sgl, int nents,
enum dma_data_direction direction)
{
}

static inline void dma_sync_single_range_for_cpu(struct device *dev,
dma_addr_t dma_handle, unsigned long offset, size_t size,
enum dma_data_direction direction)
{
}

static inline void dma_sync_single_range_for_device(struct device *dev,
dma_addr_t dma_handle, unsigned long offset, size_t size,
enum dma_data_direction direction)
{
}
#endif

static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
Expand Down

0 comments on commit 6b6b465

Please sign in to comment.