summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2013-07-08 14:18:18 -0700
committerGreg Hackmann <ghackmann@google.com>2013-10-11 16:40:59 -0700
commit23240e2e9a0420a4d1cf460a8c3549e952656f89 (patch)
treeec374aea64a370d1b986d8c1eced18ce5b08f925 /include/video
parentaa431ca700139dbaaddd14e689f58625469f94d0 (diff)
video: adf: add memblock helper
Provides a dma-buf exporter for memblocks, mainly useful for ADF devices to wrap their bootloader logos Change-Id: I936a9b5df099ab6084d433fcaf50f3bc29f93289 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/adf_memblock.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/video/adf_memblock.h b/include/video/adf_memblock.h
new file mode 100644
index 000000000000..6256e0eebcc9
--- /dev/null
+++ b/include/video/adf_memblock.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2013 Google, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef _VIDEO_ADF_MEMBLOCK_H_
+#define _VIDEO_ADF_MEMBLOCK_H_
+
+struct dma_buf *adf_memblock_export(phys_addr_t base, size_t size, int flags);
+
+#endif /* _VIDEO_ADF_MEMBLOCK_H_ */