Lines Matching +full:shared +full:- +full:memory
1 /* SPDX-License-Identifier: BSD-2-Clause */
3 * Copyright (c) 2015-2020, Linaro Limited
15 * This file defines the OP-TEE message protocol used to communicate
16 * with an instance of OP-TEE running in secure world.
20 * Part 1 - formatting of messages
48 * Pointer to a list of pages used to register user-defined SHM buffer.
51 * list of page addresses. OP-TEE core can reconstruct contiguous buffer from
63 * uint64_t pages_array[OPTEE_MSG_NONCONTIG_PAGE_SIZE/sizeof(uint64_t) - 1];
76 * Memory attributes for caching passed with temp memrefs. The actual value
79 * defined for the memory range should be used. If optee_smc.h is used as
97 * Page size used in non-contiguous buffer entries
105 * struct optee_msg_param_tmem - temporary memory reference parameter
108 * @shm_ref: Temporary shared memory reference, pointer to a struct tee_shm
112 * have completely independent memory mapping. Normal world can even have a
124 * struct optee_msg_param_rmem - registered memory reference parameter
125 * @offs: Offset into shared memory reference
127 * @shm_ref: Shared memory reference, pointer to a struct tee_shm
136 * struct optee_msg_param_fmem - FF-A memory reference parameter
137 * @offs_lower: Lower bits of offset into shared memory reference
138 * @offs_upper: Upper bits of offset into shared memory reference
139 * @internal_offs: Internal offset into the first page of shared memory
142 * @global_id: Global identifier of the shared memory
153 * struct optee_msg_param_value - opaque value parameter
164 * struct optee_msg_param - parameter used together with struct optee_msg_arg
166 * @tmem: parameter by temporary memory reference
167 * @rmem: parameter by registered memory reference
168 * @fmem: parameter by FF-A registered memory reference
189 * struct optee_msg_arg - call argument
221 * OPTEE_MSG_GET_ARG_SIZE - return size of struct optee_msg_arg
237 ((OPTEE_MSG_NONCONTIG_PAGE_SIZE - sizeof(struct optee_msg_arg)) / \
243 * Part 2 - requests from normal world
249 * 384fb3e0-e7f8-11e3-af63-0002a5d5c51b.
250 * Represented in 4 32-bit words in OPTEE_MSG_UID_0, OPTEE_MSG_UID_1,
261 * extensions. Represented in 2 32-bit words in OPTEE_MSG_REVISION_MAJOR
271 * Used by non-secure world to figure out which Trusted OS is installed.
274 * Returns UUID in 4 32-bit words in the same way as
286 * Used by non-secure world to figure out which version of the Trusted OS
290 * Returns revision in 2 32-bit words in the same way as
302 * param[0].u.value.a-b uuid of Trusted Application
303 * param[1].u.value.a-b uuid of Client
315 * OPTEE_MSG_CMD_REGISTER_SHM registers a shared memory reference. The
321 * [in] param[0].u.tmem.shm_ref holds shared memory reference
323 * OPTEE_MSG_CMD_UNREGISTER_SHM unregisteres a previously registered shared
324 * memory reference. The information is passed as:
326 * [in] param[0].u.rmem.shm_ref holds shared memory reference