24 #ifndef __OTE_STORAGE_PROTOCOL_H
25 #define __OTE_STORAGE_PROTOCOL_H
52 #define OTE_STORAGE_NS_CONFIG_FLAGS_RPMB_AVAILABLE (1 << 0)
53 #define OTE_STORAGE_NS_CONFIG_FLAGS_CPC_AVAILABLE (1 << 1)
54 #define OTE_STORAGE_NS_CONFIG_FLAGS_USE_1K_BLOCKS (1 << 2)
56 #define OTE_MAX_DIR_NAME_LEN (64)
57 #define OTE_MAX_FILE_NAME_LEN (128)
58 #define OTE_MAX_DATA_SIZE (8192)
60 #define DAEMON_FLAG_OP_GET_GLOBAL 0
61 #define DAEMON_FLAG_OP_SET_GLOBAL 1
62 #define DAEMON_FLAG_OP_SET_FILE 2
63 #define DAEMON_FLAG_OP_SYNC 3
66 #define DAEMON_GFLAG_NONE 0x0000
67 #define DAEMON_GFLAG_FSYNC 0x0001
68 #define DAEMON_GFLAG_FDATASYNC 0x0002
70 #define DAEMON_GFLAG_FILE_O_DIRECT 0x0010
71 #define DAEMON_GFLAG_FILE_O_SYNC 0x0020
72 #define DAEMON_GFLAG_FILE_O_DSYNC 0x0040
73 #define DAEMON_GFLAG_FILE_O_APPEND 0x0080
74 #define DAEMON_GFLAG_FILE_O_ASYNC 0x0100
75 #define DAEMON_GFLAG_FILE_O_NOATIME 0x0200
76 #define DAEMON_GFLAG_FILE_O_NONBLOCK 0x0400
154 #define FS_TYPE_OLD 2
164 #define OTE_RPMB_FRAME_SIZE 512
178 #define OTE_CPC_FRAME_SIZE 128
203 #define OTE_STORAGE_PROTOCOL_MAGIC (0xfeedbeefcafebabe)
ote_file_flag_params_t f_flags
ote_file_close_params_t f_close
ote_file_get_size_params_t f_getsize
#define OTE_MAX_FILE_NAME_LEN
ote_rpmb_write_params_t f_rpmb_write
#define OTE_MAX_DIR_NAME_LEN
ote_file_get_name_params_t f_get_name
ote_file_trunc_params_t f_trunc
ote_cpc_io_params_t f_cpc_io
ote_file_req_params_t params
ote_file_delete_params_t f_delete
ote_rpmb_read_params_t f_rpmb_read
#define OTE_MAX_DATA_SIZE
#define OTE_RPMB_FRAME_SIZE
ote_file_sync_params_t f_sync
ote_file_write_params_t f_write
ote_file_test_exist_params_t f_test_exist
ote_file_read_params_t f_read
#define OTE_CPC_FRAME_SIZE
ote_file_open_params_t f_open
ote_file_create_params_t f_create
te_error_t
Defines Open Trusted Environment (OTE) error codes.
ote_file_seek_params_t f_seek