mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-12 07:58:10 +09:00
1.Rename some functions to fix multiple definition compile error. 2.Build optee_linuxdriver when TEE_SUPPORT is enabled. 3.Rename "optee" obj name to "optee_v1" to fix module name conflict error: [ 0.211629] sysfs: cannot create duplicate filename '/module/optee/version' [ 0.211670] ------------[ cut here ]------------ [ 0.211684] WARNING: at fs/sysfs/dir.c:31 [ 0.211697] Modules linked in: [ 0.211713] [ 0.211726] CPU: 4 PID: 1 Comm: swapper/0 Not tainted 4.4.93 #42 [ 0.211738] Hardware name: Rockchip RK3399 Excavator Board edp (Android) (DT) [ 0.211752] task: ffffffc0f2160000 task.stack: ffffffc0f2168000 [ 0.211772] PC is at sysfs_warn_dup+0x60/0x7c [ 0.211785] LR is at sysfs_warn_dup+0x60/0x7c Change-Id: I9cc98307a32d9b186f7aac86027da231b486c487 Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2014, STMicroelectronics International N.V.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License Version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* 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 __TEE_SHM_H__
|
|
#define __TEE_SHM_H__
|
|
|
|
#include <linux/tee_client_api.h>
|
|
struct tee_context;
|
|
struct tee_shm;
|
|
struct tee_shm_io;
|
|
struct tee;
|
|
|
|
int tee_shm_alloc_io(struct tee_context *ctx, struct tee_shm_io *shm_io);
|
|
void tee_shm_free_io(struct tee_shm *shm);
|
|
|
|
int tee_shm_fd_for_rpc(struct tee_context *ctx, struct tee_shm_io *shm_io);
|
|
|
|
struct tee_shm *rk_tee_shm_alloc(struct tee *tee, size_t size, uint32_t flags);
|
|
void rk_tee_shm_free(struct tee_shm *shm);
|
|
|
|
struct tee_shm *tee_shm_get(struct tee_context *ctx, TEEC_SharedMemory *c_shm,
|
|
size_t size, int offset);
|
|
void rk_tee_shm_put(struct tee_context *ctx, struct tee_shm *shm);
|
|
|
|
#endif /* __TEE_SHM_H__ */
|