1e86f1266SJens Wiklander /* 2e86f1266SJens Wiklander * Copyright (c) 2015, Linaro Limited 3e86f1266SJens Wiklander * All rights reserved. 4e86f1266SJens Wiklander * 5e86f1266SJens Wiklander * Redistribution and use in source and binary forms, with or without 6e86f1266SJens Wiklander * modification, are permitted provided that the following conditions are met: 7e86f1266SJens Wiklander * 8e86f1266SJens Wiklander * 1. Redistributions of source code must retain the above copyright notice, 9e86f1266SJens Wiklander * this list of conditions and the following disclaimer. 10e86f1266SJens Wiklander * 11e86f1266SJens Wiklander * 2. Redistributions in binary form must reproduce the above copyright notice, 12e86f1266SJens Wiklander * this list of conditions and the following disclaimer in the documentation 13e86f1266SJens Wiklander * and/or other materials provided with the distribution. 14e86f1266SJens Wiklander * 15e86f1266SJens Wiklander * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16e86f1266SJens Wiklander * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17e86f1266SJens Wiklander * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18e86f1266SJens Wiklander * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 19e86f1266SJens Wiklander * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20e86f1266SJens Wiklander * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21e86f1266SJens Wiklander * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22e86f1266SJens Wiklander * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23e86f1266SJens Wiklander * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24e86f1266SJens Wiklander * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25e86f1266SJens Wiklander * POSSIBILITY OF SUCH DAMAGE. 26e86f1266SJens Wiklander */ 27e86f1266SJens Wiklander #ifndef TEE_API_PRIVATE 28e86f1266SJens Wiklander #define TEE_API_PRIVATE 29e86f1266SJens Wiklander 30e86f1266SJens Wiklander #include <tee_api_types.h> 31e86f1266SJens Wiklander #include <utee_types.h> 32e86f1266SJens Wiklander 33e86f1266SJens Wiklander 34e86f1266SJens Wiklander void __utee_from_attr(struct utee_attribute *ua, const TEE_Attribute *attrs, 35e86f1266SJens Wiklander uint32_t attr_count); 36e86f1266SJens Wiklander 37e86f1266SJens Wiklander void __utee_from_param(struct utee_params *up, uint32_t param_types, 38e86f1266SJens Wiklander const TEE_Param params[TEE_NUM_PARAMS]); 39e86f1266SJens Wiklander 40e86f1266SJens Wiklander void __utee_to_param(TEE_Param params[TEE_NUM_PARAMS], 41e86f1266SJens Wiklander uint32_t *param_types, const struct utee_params *up); 42e86f1266SJens Wiklander 43*2f04385cSJens Wiklander void __utee_entry(unsigned long func, unsigned long session_id, 44*2f04385cSJens Wiklander struct utee_params *up, unsigned long cmd_id); 45e86f1266SJens Wiklander 46e86f1266SJens Wiklander 47e86f1266SJens Wiklander #endif /*TEE_API_PRIVATE*/ 48e86f1266SJens Wiklander 49