comparison src/cs/services/etm/etm.h @ 250:eb743902a0e4

.../etm/etm.h: white space fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 May 2021 03:11:40 +0000
parents 4e78acac3d88
children 1fe443ccb656
comparison
equal deleted inserted replaced
249:00767f051056 250:eb743902a0e4
1 /****************************************************************************** 1 /******************************************************************************
2 * Enhanced TestMode (ETM) 2 * Enhanced TestMode (ETM)
3 * @file etm.h 3 * @file etm.h
4 * 4 *
5 * Design and coding Mads Meisner-Jensen, (mmj@ti.com) 5 * Design and coding Mads Meisner-Jensen, (mmj@ti.com)
6 * Kim T. Petersn, (ktp@ti.com) 6 * Kim T. Petersn, (ktp@ti.com)
7 * 7 *
38 ETM_TM3 = 0x00, // Use of old TM3 protocol 38 ETM_TM3 = 0x00, // Use of old TM3 protocol
39 ETM_CORE = 0x01, 39 ETM_CORE = 0x01,
40 ETM_TMT = 0x02, // Pseudo module 40 ETM_TMT = 0x02, // Pseudo module
41 ETM_SH = 0x03, // Pseudo module 41 ETM_SH = 0x03, // Pseudo module
42 ETM_TM3_MISC = 0x04, // Pseudo module - Target side 42 ETM_TM3_MISC = 0x04, // Pseudo module - Target side
43 ETM_RF = 0x05, 43 ETM_RF = 0x05,
44 ETM_IMEI = 0x06, 44 ETM_IMEI = 0x06,
45 ETM_FFS2 = 0x07, 45 ETM_FFS2 = 0x07,
46 ETM_AUDIO = 0x08, 46 ETM_AUDIO = 0x08,
47 ETM_TPU = 0x09, // Not official part ETM 47 ETM_TPU = 0x09, // Not official part ETM
48 ETM_PWR = 0x0A, 48 ETM_PWR = 0x0A,
50 ETM_L23 = 0x0C, 50 ETM_L23 = 0x0C,
51 ETM_RESERVED10 = 0x0D, 51 ETM_RESERVED10 = 0x0D,
52 ETM_RESERVED11 = 0x0E, 52 ETM_RESERVED11 = 0x0E,
53 ETM_RESERVED12 = 0x0F, 53 ETM_RESERVED12 = 0x0F,
54 54
55 ETM_CUST = 0xC0, // Customize id 55 ETM_CUST = 0xC0, // Customize id
56 ETM_CUST1 = 0xC1, // Customize id 56 ETM_CUST1 = 0xC1, // Customize id
57 ETM_CUST2 = 0xC2, // Customize id 57 ETM_CUST2 = 0xC2, // Customize id
58 ETM_CUST3 = 0xC3, // Customize id 58 ETM_CUST3 = 0xC3, // Customize id
59 ETM_CUST4 = 0xC4, // Customize id 59 ETM_CUST4 = 0xC4, // Customize id
60 ETM_CUST5 = 0xC5, // Customize id 60 ETM_CUST5 = 0xC5, // Customize id
78 ETM_AUDIO_ERROR = -100 * ETM_AUDIO, 78 ETM_AUDIO_ERROR = -100 * ETM_AUDIO,
79 ETM_TPU_ERROR = -100 * ETM_TPU, 79 ETM_TPU_ERROR = -100 * ETM_TPU,
80 ETM_IMEI_ERROR = -100 * ETM_IMEI, 80 ETM_IMEI_ERROR = -100 * ETM_IMEI,
81 ETM_PWR_ERROR = -100 * ETM_PWR, 81 ETM_PWR_ERROR = -100 * ETM_PWR,
82 ETM_BT_ERROR = -100 * ETM_BT, 82 ETM_BT_ERROR = -100 * ETM_BT,
83 ETM_FFS_ERROR = -100 * ETM_FFS2, 83 ETM_FFS_ERROR = -100 * ETM_FFS2,
84 84
85 ETM_TEST_ERROR = -100 * ETM_TEST, // used for test of dll's 85 ETM_TEST_ERROR = -100 * ETM_TEST, // used for test of dll's
86 86
87 ETM_OS_ERROR = -100 * 1000 // OS Error (specially handled!) 87 ETM_OS_ERROR = -100 * 1000 // OS Error (specially handled!)
88 }; 88 };
95 enum ETMCommonTargetErrors { 95 enum ETMCommonTargetErrors {
96 ETM_OK = 0, // Ok 96 ETM_OK = 0, // Ok
97 ETM_FINISHED = -1, // Previously started operation has finished. 97 ETM_FINISHED = -1, // Previously started operation has finished.
98 98
99 // Errors that are related to the Riv env. 99 // Errors that are related to the Riv env.
100 ETM_RV_FATAL = -48, // Fatal error in RIV environment eg. memory error 100 ETM_RV_FATAL = -48, // Fatal error in RIV environment eg. memory error
101 ETM_RV_NOT_SUPPORTED = -49, // Funtionality not supported by RIV 101 ETM_RV_NOT_SUPPORTED = -49, // Funtionality not supported by RIV
102 102
103 // Error codes related to L1 Test mode 103 // Error codes related to L1 Test mode
104 ETM_L1TESTMODE = -50, // Layer 1 is not in test mode 104 ETM_L1TESTMODE = -50, // Layer 1 is not in test mode
105 105
134 134
135 ETM_INVALID = -70, // Invalid parameter/argument 135 ETM_INVALID = -70, // Invalid parameter/argument
136 ETM_MEMORY = -71, // Out of memory 136 ETM_MEMORY = -71, // Out of memory
137 ETM_BUFFER = -72, // Buffer too small (maybe internal buffer) 137 ETM_BUFFER = -72, // Buffer too small (maybe internal buffer)
138 ETM_BADDATA = -73, // Bad/unexpected data in uplink packet 138 ETM_BADDATA = -73, // Bad/unexpected data in uplink packet
139 ETM_NOSUPPORT = -74, // Not supported 139 ETM_NOSUPPORT = -74, // Not supported
140 ETM_BADVALUE = -75, // Bad argument/parameter value 140 ETM_BADVALUE = -75, // Bad argument/parameter value
141 141
142 ETM_FILE_IO = -76, // File I/O error (file not found?) 142 ETM_FILE_IO = -76, // File I/O error (file not found?)
143 ETM_HOST_FIO = -78 // Host system file I/O error 143 ETM_HOST_FIO = -78 // Host system file I/O error
144 }; 144 };
148 TgTrEtmLow = 0x00000002, 148 TgTrEtmLow = 0x00000002,
149 TgTrEtmMed = 0x00000004, 149 TgTrEtmMed = 0x00000004,
150 TgTrEtmHigh = 0x00000008, 150 TgTrEtmHigh = 0x00000008,
151 TgTrCore = 0x00000100, 151 TgTrCore = 0x00000100,
152 TgTrAudio = 0x00000200, 152 TgTrAudio = 0x00000200,
153 TgTrFfs = 0x00000400, 153 TgTrFfs = 0x00000400,
154 TgTrRf = 0x00000800, 154 TgTrRf = 0x00000800,
155 TgTrFatal = 0x80000000, 155 TgTrFatal = 0x80000000,
156 TgTrAll = 0xFFFFFFFF 156 TgTrAll = 0xFFFFFFFF
157 }; 157 };
158 158
200 200
201 enum HW_SW_revisions_fids 201 enum HW_SW_revisions_fids
202 { 202 {
203 SW_REV_ETM_TASK = 0x01, 203 SW_REV_ETM_TASK = 0x01,
204 SW_REV_ETM_API = 0x02, 204 SW_REV_ETM_API = 0x02,
205 SW_REV_ETM_CORE = 0x10, 205 SW_REV_ETM_CORE = 0x10,
206 SW_REV_ETM_AUDIO = 0x11, 206 SW_REV_ETM_AUDIO = 0x11,
207 SW_REV_ETM_RF = 0x12, 207 SW_REV_ETM_RF = 0x12,
208 SW_REV_ETM_FFS = 0x13, 208 SW_REV_ETM_FFS = 0x13,
209 SW_REV_ETM_PWR = 0x14, 209 SW_REV_ETM_PWR = 0x14,
210 SW_REV_ETM_BT = 0x15, 210 SW_REV_ETM_BT = 0x15,