projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
645ae3b
)
common: dma-mapping: introduce mmap method
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Wed, 21 Dec 2011 15:55:33 +0000
(16:55 +0100)
committer
Marek Szyprowski
<m.szyprowski@samsung.com>
Wed, 28 Mar 2012 14:36:42 +0000
(16:36 +0200)
Introduce new generic mmap method with attributes argument.
This method lets drivers to create a userspace mapping for a DMA buffer
in generic, architecture independent way.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
include/linux/dma-mapping.h
patch
|
blob
|
history
diff --git
a/include/linux/dma-mapping.h
b/include/linux/dma-mapping.h
index 2fc413a873eac567260d2bc7459abf255db0a821..b903a20867f789dc7765c9e5591e374096e046ca 100644
(file)
--- a/
include/linux/dma-mapping.h
+++ b/
include/linux/dma-mapping.h
@@
-15,6
+15,9
@@
struct dma_map_ops {
void (*free)(struct device *dev, size_t size,
void *vaddr, dma_addr_t dma_handle,
struct dma_attrs *attrs);
+ int (*mmap)(struct device *, struct vm_area_struct *,
+ void *, dma_addr_t, size_t, struct dma_attrs *attrs);
+
dma_addr_t (*map_page)(struct device *dev, struct page *page,
unsigned long offset, size_t size,
enum dma_data_direction dir,