Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67191
b: refs/heads/master
c: f774216
h: refs/heads/master
i:
  67189: e1e7290
  67187: 2ef9222
  67183: df26a4f
v: v3
  • Loading branch information
Segher Boessenkool authored and Paul Mackerras committed Aug 17, 2007
1 parent 669874c commit 847b40a
Show file tree
Hide file tree
Showing 2 changed files with 19 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: c05129bd8190fd702426f93f9fe0a00fa6cacb31
refs/heads/master: f774216d465959a4777ac3de67f33bf75ecd4a76
24 changes: 18 additions & 6 deletions trunk/include/asm-powerpc/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,12 @@ dma_map_single(struct device *dev, void *ptr, size_t size,
return virt_to_bus(ptr);
}

/* We do nothing. */
#define dma_unmap_single(dev, addr, size, dir) ((void)0)
static inline void dma_unmap_single(struct device *dev, dma_addr_t dma_addr,
size_t size,
enum dma_data_direction direction)
{
/* We do nothing. */
}

static inline dma_addr_t
dma_map_page(struct device *dev, struct page *page,
Expand All @@ -264,8 +268,12 @@ dma_map_page(struct device *dev, struct page *page,
return page_to_bus(page) + offset;
}

/* We do nothing. */
#define dma_unmap_page(dev, handle, size, dir) ((void)0)
static inline void dma_unmap_page(struct device *dev, dma_addr_t dma_address,
size_t size,
enum dma_data_direction direction)
{
/* We do nothing. */
}

static inline int
dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
Expand All @@ -284,8 +292,12 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
return nents;
}

/* We don't do anything here. */
#define dma_unmap_sg(dev, sg, nents, dir) ((void)0)
static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
int nhwentries,
enum dma_data_direction direction)
{
/* We don't do anything here. */
}

#endif /* CONFIG_PPC64 */

Expand Down

0 comments on commit 847b40a

Please sign in to comment.