Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92282
b: refs/heads/master
c: 9fcdc78
h: refs/heads/master
v: v3
  • Loading branch information
Bryan Wu committed Apr 22, 2008
1 parent fc0a9d2 commit 4e45744
Show file tree
Hide file tree
Showing 2 changed files with 16 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: b4bb68f7d049e923a812903133e7e3747dfe0fce
refs/heads/master: 9fcdc78c5ebaba0970d006dd72376a815aee1efa
15 changes: 15 additions & 0 deletions trunk/include/asm-blackfin/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ void dma_free_coherent(struct device *dev, size_t size, void *vaddr,
extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
enum dma_data_direction direction);

static inline dma_addr_t
dma_map_page(struct device *dev, struct page *page,
unsigned long offset, size_t size,
enum dma_data_direction dir)
{
return dma_map_single(dev, page_address(page) + offset, size, dir);
}

/*
* Unmap a single streaming mode DMA translation. The dma_addr and size
* must match what was provided for in a previous pci_map_single call. All
Expand All @@ -38,6 +46,13 @@ extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
extern void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
enum dma_data_direction direction);

static inline void
dma_unmap_page(struct device *dev, dma_addr_t dma_addr, size_t size,
enum dma_data_direction dir)
{
dma_unmap_single(dev, dma_addr, size, dir);
}

/*
* Map a set of buffers described by scatterlist in streaming
* mode for DMA. This is the scather-gather version of the
Expand Down

0 comments on commit 4e45744

Please sign in to comment.