diff options
-rw-r--r-- | Documentation/DMA-attributes.txt | 8 | ||||
-rw-r--r-- | include/linux/dma-attrs.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/DMA-attributes.txt b/Documentation/DMA-attributes.txt index 811a5d458da..5c72eed8956 100644 --- a/Documentation/DMA-attributes.txt +++ b/Documentation/DMA-attributes.txt | |||
@@ -41,3 +41,11 @@ buffered to improve performance. | |||
41 | Since it is optional for platforms to implement DMA_ATTR_WRITE_COMBINE, | 41 | Since it is optional for platforms to implement DMA_ATTR_WRITE_COMBINE, |
42 | those that do not will simply ignore the attribute and exhibit default | 42 | those that do not will simply ignore the attribute and exhibit default |
43 | behavior. | 43 | behavior. |
44 | |||
45 | DMA_ATTR_NON_CONSISTENT | ||
46 | ----------------------- | ||
47 | |||
48 | DMA_ATTR_NON_CONSISTENT lets the platform to choose to return either | ||
49 | consistent or non-consistent memory as it sees fit. By using this API, | ||
50 | you are guaranteeing to the platform that you have all the correct and | ||
51 | necessary sync points for this memory in the driver. | ||
diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h index ada61e1abf2..547ab568d3a 100644 --- a/include/linux/dma-attrs.h +++ b/include/linux/dma-attrs.h | |||
@@ -14,6 +14,7 @@ enum dma_attr { | |||
14 | DMA_ATTR_WRITE_BARRIER, | 14 | DMA_ATTR_WRITE_BARRIER, |
15 | DMA_ATTR_WEAK_ORDERING, | 15 | DMA_ATTR_WEAK_ORDERING, |
16 | DMA_ATTR_WRITE_COMBINE, | 16 | DMA_ATTR_WRITE_COMBINE, |
17 | DMA_ATTR_NON_CONSISTENT, | ||
17 | DMA_ATTR_MAX, | 18 | DMA_ATTR_MAX, |
18 | }; | 19 | }; |
19 | 20 | ||