comparison chipsetsw/services/etm/etm_env.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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 aurent Sollier (l-sollier@ti.com) and Kim T. Peteren (ktp@ti.com)
9 * @version 0.1
10 *
11
12 *
13 * History:
14 *
15 * Date Modification
16 * ------------------------------------
17 * 10/24/2001 Creation
18 *
19 * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
20 *********************************************************************************/
21
22
23 #ifndef _ETM_ENV_H_
24 #define _ETM_ENV_H_
25
26 #include "rvm/rvm_gen.h"
27 #include "etm/etm_pool_size.h" /* Stack & Memory Bank sizes definitions */
28
29 /**
30 * Mailbox ID used by the SWE.
31 */
32 #define ETM_MAILBOX RVF_TASK_MBOX_0
33
34 /**
35 * @name Mem bank
36 * Memory bank size and watermark.
37 */
38 /*@{*/
39 #define ETM_MB_PRIM_SIZE ETM_MB1_SIZE
40 #define ETM_MB_PRIM_WATERMARK ETM_MB_PRIM_SIZE
41 /*@}*/
42
43
44 /** Define a structure used to store all the informations related to KPD's task
45 * & MBs identifiers.
46 */
47 typedef struct ctrl_blk
48 {
49 T_RVF_MB_ID prim_id;
50 T_RVF_ADDR_ID addr_id;
51 T_RVM_RETURN (*error_ft)(T_RVM_NAME swe_name,
52 T_RVM_RETURN error_cause,
53 T_RVM_ERROR_TYPE error_type,
54 T_RVM_STRING error_msg);
55 } T_ETM_ENV_CTRL_BLK;
56
57
58 /**
59 * @name Generic functions
60 * Generic functions declarations.
61 */
62 /*@{*/
63
64 T_RVM_RETURN etm_get_info(T_RVM_INFO_SWE *infoSWE);
65
66 T_RVM_RETURN etm_set_info( T_RVF_ADDR_ID addr_id,
67 T_RV_RETURN return_path[],
68 T_RVF_MB_ID bk_id[],
69 T_RVM_RETURN (*rvm_error_ft)(T_RVM_NAME swe_name,
70 T_RVM_RETURN error_cause,
71 T_RVM_ERROR_TYPE error_type,
72 T_RVM_STRING error_msg));
73
74 T_RVM_RETURN etm_init(void);
75 T_RVM_RETURN etm_start(void);
76 T_RVM_RETURN etm_stop(void);
77 T_RVM_RETURN etm_kill(void);
78
79 /*@}*/
80
81
82 #endif /* #ifndef _ETM_ENV_H_ */