aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ion.h')
-rw-r--r--include/linux/ion.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h
index a55d11fbcbd..31045a150dc 100644
--- a/include/linux/ion.h
+++ b/include/linux/ion.h
@@ -41,6 +41,21 @@ enum ion_heap_type {
41 ION_NUM_HEAPS = 16, 41 ION_NUM_HEAPS = 16,
42}; 42};
43 43
44/**
45 * enum ion_data_direction - sync operation arguments
46 * @ION_BIDIRECTIONAL: memory written to & read from device
47 * @ION_TO_DEVICE: memory going to be transferred to device
48 * @ION_FROM_DEVICE: memory populated by device
49 * @ION_NONE: None of the above
50 */
51enum ion_data_direction {
52 ION_BIDIRECTIONAL = 0,
53 ION_TO_DEVICE = 1,
54 ION_FROM_DEVICE = 2,
55 ION_NONE = 3,
56};
57
58
44#define ION_HEAP_SYSTEM_MASK (1 << ION_HEAP_TYPE_SYSTEM) 59#define ION_HEAP_SYSTEM_MASK (1 << ION_HEAP_TYPE_SYSTEM)
45#define ION_HEAP_SYSTEM_CONTIG_MASK (1 << ION_HEAP_TYPE_SYSTEM_CONTIG) 60#define ION_HEAP_SYSTEM_CONTIG_MASK (1 << ION_HEAP_TYPE_SYSTEM_CONTIG)
46#define ION_HEAP_CARVEOUT_MASK (1 << ION_HEAP_TYPE_CARVEOUT) 61#define ION_HEAP_CARVEOUT_MASK (1 << ION_HEAP_TYPE_CARVEOUT)
@@ -273,6 +288,7 @@ struct ion_allocation_data {
273struct ion_fd_data { 288struct ion_fd_data {
274 struct ion_handle *handle; 289 struct ion_handle *handle;
275 int fd; 290 int fd;
291 enum ion_data_direction dir;
276}; 292};
277 293
278/** 294/**