diff options
author | Bryan Wu <cooloney@kernel.org> | 2008-04-23 07:41:52 +0800 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-23 07:41:52 +0800 |
commit | 9fcdc78c5ebaba0970d006dd72376a815aee1efa (patch) | |
tree | 15b4e1d586d534faea6490bdfecbbca8662358a5 /include | |
parent | b4bb68f7d049e923a812903133e7e3747dfe0fce (diff) | |
download | op-kernel-dev-9fcdc78c5ebaba0970d006dd72376a815aee1efa.zip op-kernel-dev-9fcdc78c5ebaba0970d006dd72376a815aee1efa.tar.gz |
[Blackfin] arch: Add dma_map_page and dma_unmap_page stub for MMC SPI compiling
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-blackfin/dma-mapping.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-blackfin/dma-mapping.h b/include/asm-blackfin/dma-mapping.h index 282fabc..1a13c2f 100644 --- a/include/asm-blackfin/dma-mapping.h +++ b/include/asm-blackfin/dma-mapping.h @@ -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 @@ -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 |