Samsung Internal API reference  2.0
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 {
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 
Definition: irs.h:80
Definition: irs.h:78
Definition: irs.h:96
int TEES_SetIrsFlagValue(unsigned int *flag_id, unsigned int value)
Set flag by flag_id in value by value.
int TEES_IncIrsFlag(unsigned int *flag_id)
Increment flag by flag_id in 1. Used only for IRS_TYPE_VALUE flag type.
Definition: irs.h:90
Definition: irs.h:82
int TEES_GetIrsFlagValue(unsigned int *flag_id, unsigned int *value)
Get value by flag_id.
Definition: irs.h:88
Definition: irs.h:83
Definition: irs.h:81
Definition: irs.h:94
IRS_PARAM
Bit position of params.
Definition: irs.h:87
Definition: irs.h:91
Definition: irs.h:95
int TEES_DelIrsFlag(unsigned int *flag_id)
Delete run-time flag by flag_id.
Definition: irs.h:93
Definition: irs.h:92
IRS_INTERNAL_CMD
Internal IRS commands ids.
Definition: irs.h:77
int TEES_AddIrsFlag(unsigned int *flag_id, unsigned int param)
Function for control run-time flags.
Definition: irs.h:79
int TEES_SetIrsFlag(unsigned int *flag_id)
Set flag by flag_id in 1. Used only for boolean flag type.
Definition: irs.h:89