aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DMA-API.txt
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-06-26 12:49:44 (GMT)
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-09-17 14:32:37 (GMT)
commit4aa806b771d16b810771d86ce23c4c3160888db3 (patch)
tree5450d1495c1ffbb6d852df44002b95de275deb3f /Documentation/DMA-API.txt
parent272b98c6455f00884f0350f775c5342358ebb73f (diff)
downloadkernel_replicant_linux-4aa806b771d16b810771d86ce23c4c3160888db3.zip
kernel_replicant_linux-4aa806b771d16b810771d86ce23c4c3160888db3.tar.gz
kernel_replicant_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.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt
index 78a6c56..e865279 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