comparison rvinterf/include/etm.h @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children c535e7438c25
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 /*
2 * This header file contains various definitions for talking to ETM.
3 */
4
5 #define ETM_USE_ID 0x001E0004
6
7 /* ETM Module IDs */
8 enum {
9 ETM_TM3 = 0x00, // Use of old TM3 protocol
10 ETM_CORE = 0x01,
11 ETM_TMT = 0x02, // Pseudo module
12 ETM_SH = 0x03, // Pseudo module
13 ETM_TM3_MISC = 0x04, // Pseudo module - Target side
14 ETM_RF = 0x05,
15 ETM_IMEI = 0x06,
16 ETM_FFS2 = 0x07,
17 ETM_AUDIO = 0x08,
18 ETM_TPU = 0x09, // Not official part ETM
19 ETM_PWR = 0x0A,
20 ETM_BT = 0x0B,
21 ETM_L23 = 0x0C,
22 ETM_RESERVED10 = 0x0D,
23 ETM_RESERVED11 = 0x0E,
24 ETM_RESERVED12 = 0x0F,
25
26 ETM_CUST = 0xC0, // Customize id
27 ETM_CUST1 = 0xC1, // Customize id
28 ETM_CUST2 = 0xC2, // Customize id
29 ETM_CUST3 = 0xC3, // Customize id
30 ETM_CUST4 = 0xC4, // Customize id
31 ETM_CUST5 = 0xC5, // Customize id
32 ETM_CUST6 = 0xC6, // Customize id
33 ETM_CUST7 = 0xC7, // Customize id
34 ETM_CUST8 = 0xC8, // Customize id
35
36 ETM_TEST = 0xAA, // used for test of dll's
37 ETM_TASK = 0xEE, // ETM TASK in Target
38
39 ETM_FFS1 = 0x70
40 };
41
42 /* ETM_CORE opcodes */
43 #define TMCORE_OPC_MEM 0x61
44 #define TMCORE_OPC_ECHO 0x62
45 #define TMCORE_OPC_RESET 0x63
46 #define TMCORE_OPC_DEBUG 0x64
47 #define TMCORE_OPC_VERSION 0x65
48 #define TMCORE_OPC_CODEC_RD 0x66
49 #define TMCORE_OPC_CODEC_WR 0x67
50 #define TMCORE_OPC_DIEID 0x68
51
52 #define MAX_MEMREAD_BYTES 238
53 #define MAX_MEMREAD_16BIT 119