blob: 3dad8820a49e262c48df8b2ded731144711acdee (
plain)
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
|
#ifndef __FASTUH_H__
#define __FASTUH_H__
#ifndef __ASSEMBLY__
/* For fastuH Command */
#define APP_INIT 0
#define APP_RKP 1
#define APP_KDP 2
#define APP_HDM 6
#define FASTUH_APP_INIT FASTUH_APPID(APP_INIT)
#define FASTUH_APP_RKP FASTUH_APPID(APP_RKP)
#define FASTUH_APP_KDP FASTUH_APPID(APP_KDP)
#define FASTUH_APP_HDM FASTUH_APPID(APP_HDM)
#define FASTUH_PREFIX UL(0xc300c000)
#define FASTUH_APPID(APP_ID) ((UL(APP_ID) & UL(0xFF)) | FASTUH_PREFIX)
/* For uH Memory */
#define UH_NUM_MEM 0x00
#define FASTUH_LOG_START 0xB0200000
#define FASTUH_LOG_SIZE 0x40000
int fastuh_call(u64 app_id, u64 command, u64 arg0, u64 arg1, u64 arg2, u64 arg3);
struct test_case_struct {
int (* fn)(void); //test case func
char * describe;
};
#endif //__ASSEMBLY__
#endif //__FASTUH_H__
|