diff options
author | Greg Hackmann <ghackmann@google.com> | 2013-07-08 14:18:18 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-11-19 12:38:06 -0800 |
commit | b1cf7a551e1243a056492917219721113c28e4e0 (patch) | |
tree | a6f6ea5d0cf2c7515242f7af774b275e219c9d9c /include/video | |
parent | a577a8fe70715834fda7c21261fa2ea91ae5c156 (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.h | 20 |
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_ */ |