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