| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

irs.h
Go to the documentation of this file.
1
9 #ifndef __IRS_H__
10 #define __IRS_H__
11
12
60 #define IRS_FAIL_TZ -1
61 #define IRS_UNKNOWN_ID_TZ -2
62 #define IRS_UNKNOWN_INT_CMD_TZ -3
63 #define IRS_INCORRECT_FLAG_TYPE_TZ -4
64 #define IRS_RT_FLAGS_EMPTY_TZ -5
65 #define IRS_RT_FLAGS_FULL_TZ -6
66 #define IRS_INCORRECT_RT_ID_TZ -7
67 #define IRS_DENY_READ_FROM_SMC_TZ -8
68 #define IRS_DENY_WRITE_FROM_SMC_TZ -9
69 #define IRS_DENY_DELETE_FROM_SMC_TZ -10
70 #define IRS_MAX_VAL_COUNTER_TZ -11
71 #define IRS_MAX_VAL_COUNTER_RT_TZ -12
72 #define IRS_INCORRECT_CHECKSUM_TZ -13
73 #define IRS_UNKNOWN_ERROR_TZ -14
74 #define IRS_SUCCESS_TZ 0
75
77 typedef enum {
78 IRS_SET_FLAG_CMD = 1,
79 IRS_SET_FLAG_VALUE_CMD,
80 IRS_INC_FLAG_CMD,
81 IRS_GET_FLAG_VALUE_CMD,
82 IRS_ADD_FLAG_CMD,
83 IRS_DEL_FLAG_CMD,
84 } IRS_INTERNAL_CMD;
85
87 typedef enum {
88 IRS_TYPE_BOOLEAN = 0x00000001,
89 IRS_TYPE_VALUE = 0x00000002,
90 IRS_TYPE_COUNTER = 0x00000004,
91 IRS_NWD_RD = 0x00000008,
92 IRS_NWD_WR = 0x00000010,
93 IRS_NWD_CTRL = 0x00000020,
94 IRS_SWD_RD = 0x00000040,
95 IRS_SWD_WR = 0x00000080,
96 IRS_SWD_CTRL = 0x00000100
97 } IRS_PARAM;
98
106 int TEES_SetIrsFlag(unsigned int *flag_id);
107
116 int TEES_SetIrsFlagValue(unsigned int *flag_id, unsigned int value);
117
125 int TEES_IncIrsFlag(unsigned int *flag_id);
126
136 int TEES_GetIrsFlagValue(unsigned int *flag_id, unsigned int *value);
137
149 int TEES_AddIrsFlag(unsigned int *flag_id, unsigned int param);
150
158 int TEES_DelIrsFlag(unsigned int *flag_id);
159
160 #endif /* __IRS_H__ */
161
IRS_INC_FLAG_CMD
Definition: irs.h:80
IRS_SET_FLAG_CMD
Definition: irs.h:78
IRS_SWD_CTRL
Definition: irs.h:96
TEES_SetIrsFlagValue
int TEES_SetIrsFlagValue(unsigned int *flag_id, unsigned int value)
Set flag by flag_id in value by value.
TEES_IncIrsFlag
int TEES_IncIrsFlag(unsigned int *flag_id)
Increment flag by flag_id in 1. Used only for IRS_TYPE_VALUE flag type.
IRS_TYPE_COUNTER
Definition: irs.h:90
IRS_ADD_FLAG_CMD
Definition: irs.h:82
TEES_GetIrsFlagValue
int TEES_GetIrsFlagValue(unsigned int *flag_id, unsigned int *value)
Get value by flag_id.
IRS_TYPE_BOOLEAN
Definition: irs.h:88
IRS_DEL_FLAG_CMD
Definition: irs.h:83
IRS_GET_FLAG_VALUE_CMD
Definition: irs.h:81
IRS_SWD_RD
Definition: irs.h:94
IRS_PARAM
IRS_PARAM
Bit position of params.
Definition: irs.h:87
IRS_NWD_RD
Definition: irs.h:91
IRS_SWD_WR
Definition: irs.h:95
TEES_DelIrsFlag
int TEES_DelIrsFlag(unsigned int *flag_id)
Delete run-time flag by flag_id.
IRS_NWD_CTRL
Definition: irs.h:93
IRS_NWD_WR
Definition: irs.h:92
IRS_INTERNAL_CMD
IRS_INTERNAL_CMD
Internal IRS commands ids.
Definition: irs.h:77
TEES_AddIrsFlag
int TEES_AddIrsFlag(unsigned int *flag_id, unsigned int param)
Function for control run-time flags.
IRS_SET_FLAG_VALUE_CMD
Definition: irs.h:79
TEES_SetIrsFlag
int TEES_SetIrsFlag(unsigned int *flag_id)
Set flag by flag_id in 1. Used only for boolean flag type.
IRS_TYPE_VALUE
Definition: irs.h:89