diff options
author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | 2017-11-29 14:48:35 +0200 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2017-12-15 13:36:17 +0100 |
commit | abd135ba215c05ca84f9809e6047db25fc28b835 (patch) | |
tree | fafdd4a10f60ecc4145eb63d16719c4f936740de /drivers/tee/optee/shm_pool.h | |
parent | d885cc5e0759fc19badadddb60a64344b551469b (diff) | |
download | linux-abd135ba215c05ca84f9809e6047db25fc28b835.tar.gz linux-abd135ba215c05ca84f9809e6047db25fc28b835.tar.bz2 linux-abd135ba215c05ca84f9809e6047db25fc28b835.zip |
tee: optee: add optee-specific shared pool implementation
This is simple pool that uses kernel page allocator. This pool can be
used in case OP-TEE supports dynamic shared memory.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee/shm_pool.h')
-rw-r--r-- | drivers/tee/optee/shm_pool.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/tee/optee/shm_pool.h b/drivers/tee/optee/shm_pool.h new file mode 100644 index 000000000000..4e753c3bf7ec --- /dev/null +++ b/drivers/tee/optee/shm_pool.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2015, Linaro Limited + * Copyright (c) 2016, EPAM Systems + * + * 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 SHM_POOL_H +#define SHM_POOL_H + +#include <linux/tee_drv.h> + +struct tee_shm_pool_mgr *optee_shm_pool_alloc_pages(void); + +#endif |