FreeCalypso > hg > freecalypso-citrine
comparison services/etm/etm_env.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /******************************************************************************** | |
2 * Enhanced TestMode (ETM) | |
3 * @file etm_env.h | |
4 * | |
5 * Declarations of the Riviera Generic Functions | |
6 * (except handle message and handle timer). | |
7 * | |
8 * @author Laurent Sollier (l-sollier@ti.com) and | |
9 * Kim T. Peteren (ktp@ti.com) | |
10 * @version 0.1 | |
11 * | |
12 | |
13 * | |
14 * History: | |
15 * | |
16 * Date Modification | |
17 * ------------------------------------ | |
18 * 10/24/2001 Creation | |
19 * | |
20 * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved | |
21 *********************************************************************************/ | |
22 | |
23 | |
24 #ifndef _ETM_ENV_H_ | |
25 #define _ETM_ENV_H_ | |
26 | |
27 #include "../../riviera/rvm/rvm_gen.h" | |
28 #include "etm_pool_size.h" /* Stack & Memory Bank sizes definitions */ | |
29 | |
30 /** | |
31 * Mailbox ID used by the SWE. | |
32 */ | |
33 #define ETM_MAILBOX RVF_TASK_MBOX_0 | |
34 | |
35 /** | |
36 * @name Mem bank | |
37 * Memory bank size and watermark. | |
38 */ | |
39 /*@{*/ | |
40 #define ETM_MB_PRIM_SIZE ETM_MB1_SIZE | |
41 #define ETM_MB_PRIM_WATERMARK ETM_MB_PRIM_SIZE | |
42 /*@}*/ | |
43 | |
44 | |
45 /** Define a structure used to store all the informations related to KPD's task | |
46 * & MBs identifiers. | |
47 */ | |
48 typedef struct ctrl_blk | |
49 { | |
50 T_RVF_MB_ID prim_id; | |
51 T_RVF_ADDR_ID addr_id; | |
52 T_RVM_RETURN (*error_ft)(T_RVM_NAME swe_name, | |
53 T_RVM_RETURN error_cause, | |
54 T_RVM_ERROR_TYPE error_type, | |
55 T_RVM_STRING error_msg); | |
56 } T_ETM_ENV_CTRL_BLK; | |
57 | |
58 | |
59 /** | |
60 * @name Generic functions | |
61 * Generic functions declarations. | |
62 */ | |
63 /*@{*/ | |
64 | |
65 T_RVM_RETURN etm_get_info(T_RVM_INFO_SWE *infoSWE); | |
66 | |
67 T_RVM_RETURN etm_set_info( T_RVF_ADDR_ID addr_id, | |
68 T_RV_RETURN return_path[], | |
69 T_RVF_MB_ID bk_id[], | |
70 T_RVM_RETURN (*rvm_error_ft)(T_RVM_NAME swe_name, | |
71 T_RVM_RETURN error_cause, | |
72 T_RVM_ERROR_TYPE error_type, | |
73 T_RVM_STRING error_msg)); | |
74 | |
75 T_RVM_RETURN etm_init(void); | |
76 T_RVM_RETURN etm_start(void); | |
77 T_RVM_RETURN etm_stop(void); | |
78 T_RVM_RETURN etm_kill(void); | |
79 | |
80 /*@}*/ | |
81 | |
82 | |
83 #endif /* #ifndef _ETM_ENV_H_ */ |