diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-03-28 07:55:56 +0200 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-03-28 16:36:44 +0200 |
commit | 64d70fe5d3640e1a89790ed21120921278f8cb86 (patch) | |
tree | cc4983a830d8cfe0975ba4c606b84944f925eb70 /include | |
parent | 8a4134322bd429d24f71147eb59a47a981e8f63a (diff) | |
download | linux-64d70fe5d3640e1a89790ed21120921278f8cb86.tar.gz linux-64d70fe5d3640e1a89790ed21120921278f8cb86.tar.bz2 linux-64d70fe5d3640e1a89790ed21120921278f8cb86.zip |
common: DMA-mapping: add NON-CONSISTENT attribute
DMA_ATTR_NON_CONSISTENT lets the platform to choose to return either
consistent or non-consistent memory as it sees fit. By using this API,
you are guaranteeing to the platform that you have all the correct and
necessary sync points for this memory in the driver.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dma-attrs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h index ada61e1abf29..547ab568d3ae 100644 --- a/include/linux/dma-attrs.h +++ b/include/linux/dma-attrs.h @@ -14,6 +14,7 @@ enum dma_attr { DMA_ATTR_WRITE_BARRIER, DMA_ATTR_WEAK_ORDERING, DMA_ATTR_WRITE_COMBINE, + DMA_ATTR_NON_CONSISTENT, DMA_ATTR_MAX, }; |