diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-06-26 13:49:44 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-09-17 15:32:37 +0100 |
commit | 4aa806b771d16b810771d86ce23c4c3160888db3 (patch) | |
tree | 5450d1495c1ffbb6d852df44002b95de275deb3f /Documentation/DMA-API.txt | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
download | linux-4aa806b771d16b810771d86ce23c4c3160888db3.tar.bz2 |
DMA-API: provide a helper to set both DMA and coherent DMA masks
Provide a helper to set both the DMA and coherent DMA masks to the
same value - this avoids duplicated code in a number of drivers,
sometimes with buggy error handling, and also allows us identify
which drivers do things differently.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'Documentation/DMA-API.txt')
-rw-r--r-- | Documentation/DMA-API.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt index 78a6c569d204..e865279cec58 100644 --- a/Documentation/DMA-API.txt +++ b/Documentation/DMA-API.txt @@ -142,6 +142,14 @@ internal API for use by the platform than an external API for use by driver writers. int +dma_set_mask_and_coherent(struct device *dev, u64 mask) + +Checks to see if the mask is possible and updates the device +streaming and coherent DMA mask parameters if it is. + +Returns: 0 if successful and a negative error if not. + +int dma_set_mask(struct device *dev, u64 mask) Checks to see if the mask is possible and updates the device |