Commit 7807c609 authored by Russell King's avatar Russell King Committed by Russell King

[ARM] dma: fix some comments in dma-mapping.h

... to prevent people being mislead.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 309dbbab
...@@ -297,8 +297,7 @@ static inline dma_addr_t dma_map_single(struct device *dev, void *cpu_addr, ...@@ -297,8 +297,7 @@ static inline dma_addr_t dma_map_single(struct device *dev, void *cpu_addr,
* or written back. * or written back.
* *
* The device owns this memory once this call has completed. The CPU * The device owns this memory once this call has completed. The CPU
* can regain ownership by calling dma_unmap_page() or * can regain ownership by calling dma_unmap_page().
* dma_sync_single_for_cpu().
*/ */
static inline dma_addr_t dma_map_page(struct device *dev, struct page *page, 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) unsigned long offset, size_t size, enum dma_data_direction dir)
...@@ -315,8 +314,8 @@ static inline dma_addr_t dma_map_page(struct device *dev, struct page *page, ...@@ -315,8 +314,8 @@ static inline dma_addr_t dma_map_page(struct device *dev, struct page *page,
* dma_unmap_single - unmap a single buffer previously mapped * dma_unmap_single - unmap a single buffer previously mapped
* @dev: valid struct device pointer, or NULL for ISA and EISA-like devices * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
* @handle: DMA address of buffer * @handle: DMA address of buffer
* @size: size of buffer to map * @size: size of buffer (same as passed to dma_map_single)
* @dir: DMA transfer direction * @dir: DMA transfer direction (same as passed to dma_map_single)
* *
* Unmap a single streaming mode DMA translation. The handle and size * Unmap a single streaming mode DMA translation. The handle and size
* must match what was provided in the previous dma_map_single() call. * must match what was provided in the previous dma_map_single() call.
...@@ -336,11 +335,11 @@ static inline void dma_unmap_single(struct device *dev, dma_addr_t handle, ...@@ -336,11 +335,11 @@ static inline void dma_unmap_single(struct device *dev, dma_addr_t handle,
* dma_unmap_page - unmap a buffer previously mapped through dma_map_page() * dma_unmap_page - unmap a buffer previously mapped through dma_map_page()
* @dev: valid struct device pointer, or NULL for ISA and EISA-like devices * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
* @handle: DMA address of buffer * @handle: DMA address of buffer
* @size: size of buffer to map * @size: size of buffer (same as passed to dma_map_page)
* @dir: DMA transfer direction * @dir: DMA transfer direction (same as passed to dma_map_page)
* *
* Unmap a single streaming mode DMA translation. The handle and size * Unmap a page streaming mode DMA translation. The handle and size
* must match what was provided in the previous dma_map_single() call. * must match what was provided in the previous dma_map_page() call.
* All other usages are undefined. * All other usages are undefined.
* *
* After this call, reads by the CPU to the buffer are guaranteed to see * After this call, reads by the CPU to the buffer are guaranteed to see
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment