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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#ifndef __UH_H__
#define __UH_H__
#ifndef __ASSEMBLY__
/* For uH Command */
#define APP_INIT 0
#ifdef CONFIG_FASTUH_RKP
#define APP_RKP 1
#define APP_KDP 2
//#define APP_CFP 3
#define APP_HDM 4
#define APP_HARSH 5
#else
#define APP_SAMPLE 1
#define APP_RKP 2
#define APP_KDP 2
#define APP_HDM 6
#define APP_HARSH 7
#endif
/*
#define UH_PREFIX UL(0xc300c000)
#define UH_APPID(APP_ID) ((UL(APP_ID) & UL(0xFF)) | UH_PREFIX)
*/
/* for test with H-Arx */
#define UH_PREFIX UL(0x83000000)
#define UH_APPID(APP_ID) (((UL(APP_ID) << 8) & UL(0xFF00)) | UH_PREFIX)
#ifdef CONFIG_FASTUH_RKP
#define UH_EVENT_SUSPEND (0x8)
#endif
enum __UH_APP_ID {
UH_APP_INIT = UH_APPID(APP_INIT),
UH_APP_RKP = UH_APPID(APP_RKP),
UH_APP_KDP = UH_APPID(APP_KDP),
UH_APP_HDM = UH_APPID(APP_HDM),
UH_APP_HARSH = UH_APPID(APP_HARSH)
};
struct test_case_struct {
int (* fn)(void); //test case func
char * describe;
};
#define UH_LOG_START (0xC1500000)
#define UH_LOG_SIZE (0x40000)
unsigned long _uh_call(u64 app_id, u64 command, u64 arg0, u64 arg1, u64 arg2, u64 arg3);
inline static void uh_call(u64 app_id, u64 command, u64 arg0, u64 arg1, u64 arg2, u64 arg3)
{
_uh_call(app_id | command, arg0, arg1, arg2, arg3, 0);
}
#endif //__ASSEMBLY__
#endif //__UH_H__
|