comparison src/cs/drivers/drv_app/fchg/fchg_env.h @ 322:c4077830aeeb

FCHG implementation code started
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 04 Dec 2017 05:55:58 +0000
parents
children d583a1f5bd6a
comparison
equal deleted inserted replaced
321:5dea7e937c37 322:c4077830aeeb
1 /*
2 * RiViera environment boilerplate header for the FCHG SWE
3 */
4
5 #ifndef __FCHG_ENV_H__
6 #define __FCHG_ENV_H__
7
8 #include "rvm/rvm_gen.h"
9 #include "fchg/fchg_struct.h"
10 #include "fchg/fchg_pool_size.h"
11
12 #define FCHG_MAILBOX_USED RVF_TASK_MBOX_1
13
14 /* memory bank size and watermark */
15 #define FCHG_MB_PRIM_SIZE FCHG_MB1_SIZE
16 #define FCHG_MB_PRIM_WATERMARK (FCHG_MB_PRIM_SIZE)
17
18 #define FCHG_MB_PRIM_INC_SIZE 0
19 #define FCHG_MB_PRIM_INC_WATERMARK 0
20
21 extern T_PWR_CTRL_BLOCK *pwr_ctrl;
22
23 /* Prototypes */
24
25 T_RVM_RETURN fchg_get_info (T_RVM_INFO_SWE *infoSWE);
26
27 T_RVM_RETURN fchg_set_info(T_RVF_ADDR_ID addr_id,
28 T_RV_RETURN return_path[],
29 T_RVF_MB_ID mbId[],
30 T_RVM_RETURN (*callBackFct) (T_RVM_NAME SWEntName,
31 T_RVM_RETURN errorCause,
32 T_RVM_ERROR_TYPE errorType,
33 T_RVM_STRING errorMsg));
34
35 T_RVM_RETURN fchg_init (void);
36 T_RVM_RETURN fchg_core (void);
37 T_RVM_RETURN fchg_stop (void);
38 T_RVM_RETURN fchg_kill (void);
39
40 #endif /* include guard */