1 /* 2 * Copyright 2017, Rockchip Electronics Co., Ltd 3 * hisping lin, <hisping.lin@rock-chips.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 #ifndef TEE_RPC_TYPES_H 8 #define TEE_RPC_TYPES_H 9 10 #include <optee_include/tee_base_types.h> 11 #include <optee_include/tee_api_types.h> 12 13 struct tee_rpc_load_ta_cmd { 14 TEE_UUID uuid; 15 uint32_t va; 16 }; 17 18 struct tee_rpc_rpmb_cmd { 19 uint16_t cmd; 20 uint16_t dev_id; 21 uint16_t block_count; 22 /* variable length of data */ 23 /* uint8_t data[]; REMOVED! */ 24 }; 25 26 #define TEE_RPC_RPMB_EMMC_CID_SIZE 16 27 struct tee_rpc_rpmb_dev_info { 28 uint8_t cid[TEE_RPC_RPMB_EMMC_CID_SIZE]; 29 /* EXT CSD-slice 168 "RPMB Size" */ 30 uint8_t rpmb_size_mult; 31 /* EXT CSD-slice 222 "Reliable Write Sector Count" */ 32 uint8_t rel_wr_sec_c; 33 /* Check the ret code and accept the data only if it is OK. */ 34 uint8_t ret_code; 35 }; 36 37 #endif 38