diff options
| author | Liam Mark <lmark@codeaurora.org> | 2016-12-09 14:42:52 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-04 14:18:37 -0800 |
| commit | 7e89aa7680648d68b34ce98f9414e6c8dfcc1a6b (patch) | |
| tree | e1ade29567bade7106dadf440c419e5715a5a523 /include | |
| parent | cca053110c719c2e6f0756797173951da1dab5a6 (diff) | |
common: DMA-mapping: add per-buffer coherent mappings attributes
The DMA_ATTR_FORCE_COHERENT DMA attribute can be used to force a buffer
to be mapped as IO coherent.
The DMA_ATTR_FORCE_NON_COHERENT DMA attribute can be used to force a
buffer to not be mapped as IO coherent.
Change-Id: Id80d77a5ccd797eec36b45b320423fb46c9f5861
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dma-attrs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h index 9799594ce09d..4c86e4483e0d 100644 --- a/include/linux/dma-attrs.h +++ b/include/linux/dma-attrs.h @@ -22,6 +22,8 @@ enum dma_attr { DMA_ATTR_SKIP_ZEROING, DMA_ATTR_NO_DELAYED_UNMAP, DMA_ATTR_EXEC_MAPPING, + DMA_ATTR_FORCE_COHERENT, + DMA_ATTR_FORCE_NON_COHERENT, DMA_ATTR_MAX, }; |
