mirror from https://www.codeaurora.org/git/projects/hisense-ts7008/repository/
[huawei.git] / AMSS / diagcmd.h
1 #ifndef DIAGCMD_H
2 #define DIAGCMD_H
3 /*!
4 @ingroup packet_service
5 @file diagcmd.h
6
7 @brief 
8
9  Diagnostic Services Packet Processing Command Code Defintions
10
11
12  @details
13   This file contains packet id definitions and enumeration constants for subsystem identifiers (diagpkt_subsys_cmd_enum_type) 
14   for the serial interface to the dmss.  All packets must have unique identifiers (command codes). Once published, an identifier cannot
15   be changed. Subsystem identifiers (SSIDs) allow each technology area to define, grow, and maintain a list of unique packet identifiers
16   without coordinating with each other. It is required that all clients of the diagnostic dispatching service use the subsystem commands.
17   Subsystem Identifiers 250 to 254 are reserved for OEMs use only .Please refer to the documentation of 80-V1294-1 for the packet request/response 
18   defintions of each packet id . 
19
20  @note
21   DO NOT MODIFY THIS FILE WITHOUT PRIOR APPROVAL
22   Diag commands, by design, are a tightly controlled set of values.  
23   Developers may not create command IDs at will.
24   Request new commands using the following process:
25
26   1. Send email to asw.diag.request requesting command ID assignments.
27   2. Identify the command needed by name.
28   3. Provide a brief description for the command.
29
30 */
31   
32 /*
33 Copyright (c) 1993-2010 by QUALCOMM, Incorporated.  All Rights Reserved.
34 */
35
36
37
38 /*===========================================================================
39
40                             Edit History
41
42 $Header: //source/qcom/qct/core/pkg/2H09/halcyon_modem/rel/LA2.0/AMSS/products/7x30/core/api/services/diagcmd.h#2 $
43
44 when       who     what, where, why
45 --------   ---     ----------------------------------------------------------
46 02/25/11   hm      Added subsystem id for USCRIPT tool
47 01/18/11   hm      Added subsystem id for Q5 CORE 
48 09/22/10   vg      Added subsystem id for STRIDE
49 07/15/10   sg      Added subsystem id for QNP
50 05/21/10   sg      Doxygenated the file 
51 05/16/10   as      Added cmd_codes 101,102,105&106 for backward comparibility
52 04/21/10   sg      Added new SSID for Ulog Services
53 04/20/10   is    Remove support for DIAG_GET_PROPERTY_F, DIAG_PUT_PROPERTY_F,
54                             DIAG_GET_PERM_PROPERTY_F, and DIAG_PUT_PERM_PROPERTY_F.
55 06/10/02   lcl/jwh FEATURE_HWTC changes.
56 05/23/02   sfh     Added DIAG_PROTOCOL_LOOPBACK_F  (123) command.
57 06/27/01   lad     Assigned equipment ID 0 to be for OEMs to use.
58 05/21/01   sfh     Added DIAG_TRACE_EVENT_REPORT_F for trace event support.
59 04/17/01   lad     Moved subsystem dispatch IDs from diagpkt.h.
60 04/06/01   lad     Changed the name of cmd code 111 from DUAG_TUNNEL_F to 
61                    DIAG_ROUTE_F.
62 02/23/01   lad     Cosmetic changes.
63 09/06/00   bgc     Added support for FEATURE_FACTORY_TESTMODE with
64                    DIAG_FTM_CMD_F (set to 59, which is also DIAG_TMOB_F).
65 08/31/00   lad     Added command code for tunneling capability.
66 06/23/00   lad     Removed obsolete command codes and marked them "reserved".
67 06/19/00   lad     Added DIAG_PARM_RETRIEVE_F
68 05/31/00   jal     Added GPS statistics, session control, and grid support.
69 05/15/00   lad     Added streaming config support (nice).
70 02/28/00   lad     Added codes for event reporting service.
71 02/02/00   lad     Added commands used with FEATURE_DIAG_QCT_EXT.
72 09/17/99   lcc     Merged in RPC support from PLT archive.
73 08/17/99   tac     Merged in EFS changes from branch.
74 07/19/99    sk     Replacing reset_sup_fer with walsh code.
75 07/19/99    sk     Added walsh code display command.
76 03/30/99   lad     Added support for FEATURE_IS95B_MDR and FEATURE_SPECIAL_MDR.
77 11/04/98   lad     Added 1998/1999 copyright information.
78 10/29/98   jmk     Merged Module command changes into the mainline.
79                    (Replaced MOD_GET_STATUS with MOD_EXTENDED_PKT cmd code 75)
80 10/27/98   jmk     Added cmd IDs for CSS command, and SMS message read/write.
81 09/11/98   grl     Added feature query command
82 10/06/97   jjn     Added new commands for the Module Phase 1 interface.  These
83                    include Module Status Mask, AKEY and audio control packets.
84 04/23/97   jjn     Added new packet pair to allow System Unit to access 
85                    service option and caller ID information
86 03/25/97   jjn     Added new command (and packets) that allow writing to NV 
87                    without going offline (for the Module only)
88 02/28/97   jjn     Enabled RSSI packets for the Module, added a packet for
89                    module status and sound reporting, and added a pcket for
90                    retrieving SMS messages
91 06/25/96   jmk     Added cmd id for preferred roaming list read.
92 06/24/96   jmk     Added cmd id for preferred roaming list write.
93 04/09/96   jmk     Added cmd ids for sending security code, and return code 
94                    if phone is not unlocked for operations that require it.
95 03/06/96   jmk     Added command id for serial mode change (to AT cmd mode)
96                    and command id for get rssi (for antenna aiming/WLL only)
97 08/16/95   jmk     Added command id for parm_get2 (includes MUX2 parms)
98 08/10/95   jmk     Added command id for Phone State, Pilot Sets and SPC reqs
99 01/28/95   ptw     Added command id to obtain System Time from the mobile.
100 12/07/94   jmk     Added command id for portable sleep on/off request.
101 11/07/94   jmk     Added command to request that seq_nums be used in pkts.
102 09/26/94   jmk     Put DIAG_ORIG_F and DIAG_END_F back in.
103 07/23/93   twp     Added DIAG_TMOB_F
104 01/14/93   twp     First release
105
106 ===========================================================================*/
107 \f
108 /*--------------------------------------------------------------------------
109
110   Command Codes between the Diagnostic Monitor and the mobile. Packets
111   travelling in each direction are defined here, while the packet templates
112   for requests and responses are distinct.  Note that the same packet id
113   value can be used for both a request and a response.  These values
114   are used to index a dispatch table in diag.c, so 
115
116   DON'T CHANGE THE NUMBERS ( REPLACE UNUSED IDS WITH FILLERS ). NEW IDs
117   MUST BE ASSIGNED AT THE END.
118   
119 ----------------------------------------------------------------------------*/
120
121 /*!
122 @cond DOXYGEN_BLOAT
123 */
124 /* Version Number Request/Response            */
125 #define DIAG_VERNO_F    0
126
127 /* Mobile Station ESN Request/Response        */
128 #define DIAG_ESN_F      1
129
130 /* Peek byte Request/Response                 */
131 #define DIAG_PEEKB_F    2
132   
133 /* Peek word Request/Response                 */
134 #define DIAG_PEEKW_F    3
135
136 /* Peek dword Request/Response                */
137 #define DIAG_PEEKD_F    4  
138
139 /* Poke byte Request/Response                 */
140 #define DIAG_POKEB_F    5  
141
142 /* Poke word Request/Response                 */
143 #define DIAG_POKEW_F    6  
144
145 /* Poke dword Request/Response                */
146 #define DIAG_POKED_F    7  
147
148 /* Byte output Request/Response               */
149 #define DIAG_OUTP_F     8
150
151 /* Word output Request/Response               */
152 #define DIAG_OUTPW_F    9  
153
154 /* Byte input Request/Response                */
155 #define DIAG_INP_F      10 
156
157 /* Word input Request/Response                */
158 #define DIAG_INPW_F     11 
159
160 /* DMSS status Request/Response               */
161 #define DIAG_STATUS_F   12 
162
163 /* 13-14 Reserved */
164 #ifdef FEATURE_TECHNICS_DIAG
165 /* ÓÃÓÚ²âÊÔÈí¼þʶ±ðºÍËø¿¨*/
166 #define DIAG_ENCRYPT_TEST_F  13  
167 /* ÓÃÓÚÉú²ú¹¤ÒÕ²âÊÔ*/
168 #define DIAG_MANUFACTURE_TEST_F  14  
169 #endif
170
171 /* Set logging mask Request/Response          */
172 #define DIAG_LOGMASK_F  15 
173
174 /* Log packet Request/Response                */
175 #define DIAG_LOG_F      16 
176
177 /* Peek at NV memory Request/Response         */
178 #define DIAG_NV_PEEK_F  17 
179
180 /* Poke at NV memory Request/Response         */
181 #define DIAG_NV_POKE_F  18 
182
183 /* Invalid Command Response                   */
184 #define DIAG_BAD_CMD_F  19 
185
186 /* Invalid parmaeter Response                 */
187 #define DIAG_BAD_PARM_F 20 
188
189 /* Invalid packet length Response             */
190 #define DIAG_BAD_LEN_F  21 
191
192 /* 22-23 Reserved */
193
194 /* Packet not allowed in this mode 
195    ( online vs offline )                      */
196 #define DIAG_BAD_MODE_F     24
197                             
198 /* info for TA power and voice graphs         */
199 #define DIAG_TAGRAPH_F      25 
200
201 /* Markov statistics                          */
202 #define DIAG_MARKOV_F       26 
203
204 /* Reset of Markov statistics                 */
205 #define DIAG_MARKOV_RESET_F 27 
206
207 /* Return diag version for comparison to
208    detect incompatabilities                   */
209 #define DIAG_DIAG_VER_F     28 
210                             
211 /* Return a timestamp                         */
212 #define DIAG_TS_F           29 
213
214 /* Set TA parameters                          */
215 #define DIAG_TA_PARM_F      30 
216
217 /* Request for msg report                     */
218 #define DIAG_MSG_F          31 
219
220 /* Handset Emulation -- keypress              */
221 #define DIAG_HS_KEY_F       32 
222
223 /* Handset Emulation -- lock or unlock        */
224 #define DIAG_HS_LOCK_F      33 
225
226 /* Handset Emulation -- display request       */
227 #define DIAG_HS_SCREEN_F    34 
228
229 /* 35 Reserved */
230
231 /* Parameter Download                         */
232 #define DIAG_PARM_SET_F     36 
233
234 /* 37 Reserved */
235
236 /* Read NV item                               */
237 #define DIAG_NV_READ_F  38 
238 /* Write NV item                              */
239 #define DIAG_NV_WRITE_F 39 
240 /* 40 Reserved */
241
242 /* Mode change request                        */
243 #define DIAG_CONTROL_F    41 
244
245 /* Error record retreival                     */
246 #define DIAG_ERR_READ_F   42 
247
248 /* Error record clear                         */
249 #define DIAG_ERR_CLEAR_F  43 
250
251 /* Symbol error rate counter reset            */
252 #define DIAG_SER_RESET_F  44 
253
254 /* Symbol error rate counter report           */
255 #define DIAG_SER_REPORT_F 45 
256
257 /* Run a specified test                       */
258 #define DIAG_TEST_F       46 
259
260 /* Retreive the current dip switch setting    */
261 #define DIAG_GET_DIPSW_F  47 
262
263 /* Write new dip switch setting               */
264 #define DIAG_SET_DIPSW_F  48 
265
266 /* Start/Stop Vocoder PCM loopback            */
267 #define DIAG_VOC_PCM_LB_F 49 
268
269 /* Start/Stop Vocoder PKT loopback            */
270 #define DIAG_VOC_PKT_LB_F 50 
271
272 /* 51-52 Reserved */
273
274 /* Originate a call                           */
275 #define DIAG_ORIG_F 53 
276 /* End a call                                 */
277 #define DIAG_END_F  54 
278 /* 55-57 Reserved */
279
280 /* Switch to downloader                       */
281 #define DIAG_DLOAD_F 58 
282 /* Test Mode Commands and FTM commands        */
283 #define DIAG_TMOB_F  59 
284 /* Test Mode Commands and FTM commands        */
285 #define DIAG_FTM_CMD_F  59 
286 /* 60-62 Reserved */
287
288 /* Featurization Removal requested by CMI 
289 #ifdef FEATURE_HWTC 
290 */
291
292 #define DIAG_TEST_STATE_F 61
293 /* 
294 #endif 
295 */  
296
297 /* Return the current state of the phone      */
298 #define DIAG_STATE_F        63 
299
300 /* Return all current sets of pilots          */
301 #define DIAG_PILOT_SETS_F   64 
302
303 /* Send the Service Prog. Code to allow SP    */
304 #define DIAG_SPC_F          65 
305
306 /* Invalid nv_read/write because SP is locked */
307 #define DIAG_BAD_SPC_MODE_F 66 
308
309 /* get parms obsoletes PARM_GET               */
310 #define DIAG_PARM_GET2_F    67 
311
312 /* Serial mode change Request/Response        */
313 #define DIAG_SERIAL_CHG_F   68 
314
315 /* 69 Reserved */
316
317 /* Send password to unlock secure operations  
318    the phone to be in a security state that
319    is wasn't - like unlocked.                 */
320 #define DIAG_PASSWORD_F     70 
321
322 /* An operation was attempted which required  */
323 #define DIAG_BAD_SEC_MODE_F 71 
324
325 /* Write Preferred Roaming list to the phone. */
326 #define DIAG_PR_LIST_WR_F   72 
327
328 /* Read Preferred Roaming list from the phone.*/
329 #define DIAG_PR_LIST_RD_F   73 
330
331 /* 74 Reserved */
332
333 /* Subssytem dispatcher (extended diag cmd)   */
334 #define DIAG_SUBSYS_CMD_F   75 
335
336 /* 76-80 Reserved */
337
338 /* Asks the phone what it supports            */
339 #define DIAG_FEATURE_QUERY_F   81 
340
341 /* 82 Reserved */
342
343 /* Read SMS message out of NV                 */
344 #define DIAG_SMS_READ_F        83 
345
346 /* Write SMS message into NV                  */
347 #define DIAG_SMS_WRITE_F       84 
348
349 /* info for Frame Error Rate          
350    on multiple channels                       */
351 #define DIAG_SUP_FER_F         85 
352
353 /* Supplemental channel walsh codes           */
354 #define DIAG_SUP_WALSH_CODES_F 86 
355
356 /* Sets the maximum # supplemental 
357    channels                                   */
358 #define DIAG_SET_MAX_SUP_CH_F  87 
359
360 /* get parms including SUPP and MUX2: 
361    obsoletes PARM_GET and PARM_GET_2          */
362 #define DIAG_PARM_GET_IS95B_F  88 
363
364 /* Performs an Embedded File System
365    (EFS) operation.                           */
366 #define DIAG_FS_OP_F           89 
367
368 /* AKEY Verification.                         */
369 #define DIAG_AKEY_VERIFY_F     90 
370
371 /* Handset emulation - Bitmap screen          */
372 #define DIAG_BMP_HS_SCREEN_F   91 
373
374 /* Configure communications                   */
375 #define DIAG_CONFIG_COMM_F        92 
376
377 /* Extended logmask for > 32 bits.            */
378 #define DIAG_EXT_LOGMASK_F        93 
379
380 /* 94-95 reserved */
381
382 /* Static Event reporting.                    */
383 #define DIAG_EVENT_REPORT_F       96 
384
385 /* Load balancing and more!                   */
386 #define DIAG_STREAMING_CONFIG_F   97 
387
388 /* Parameter retrieval                        */
389 #define DIAG_PARM_RETRIEVE_F      98 
390
391  /* A state/status snapshot of the DMSS.      */
392 #define DIAG_STATUS_SNAPSHOT_F    99
393  
394 /* Used for RPC                               */
395 #define DIAG_RPC_F               100 
396
397 /* Get_property requests                      */
398 #define DIAG_GET_PROPERTY_F      101 
399
400 /* Put_property requests                      */
401 #define DIAG_PUT_PROPERTY_F      102 
402
403 /* Get_guid requests                          */
404 #define DIAG_GET_GUID_F          103 
405
406 /* Invocation of user callbacks               */
407 #define DIAG_USER_CMD_F          104 
408
409 /* Get permanent properties                   */
410 #define DIAG_GET_PERM_PROPERTY_F 105 
411
412 /* Put permanent properties                   */
413 #define DIAG_PUT_PERM_PROPERTY_F 106 
414
415 /* Permanent user callbacks                   */
416 #define DIAG_PERM_USER_CMD_F     107 
417
418 /* GPS Session Control                        */
419 #define DIAG_GPS_SESS_CTRL_F     108 
420
421 /* GPS search grid                            */
422 #define DIAG_GPS_GRID_F          109 
423
424 /* GPS Statistics                             */
425 #define DIAG_GPS_STATISTICS_F    110 
426
427 /* Packet routing for multiple instances of diag */
428 #define DIAG_ROUTE_F             111 
429
430 /* IS2000 status                              */
431 #define DIAG_IS2000_STATUS_F     112
432
433 /* RLP statistics reset                       */
434 #define DIAG_RLP_STAT_RESET_F    113
435
436 /* (S)TDSO statistics reset                   */
437 #define DIAG_TDSO_STAT_RESET_F   114
438
439 /* Logging configuration packet               */
440 #define DIAG_LOG_CONFIG_F        115
441
442 /* Static Trace Event reporting */
443 #define DIAG_TRACE_EVENT_REPORT_F 116
444
445 /* SBI Read */
446 #define DIAG_SBI_READ_F           117
447
448 /* SBI Write */
449 #define DIAG_SBI_WRITE_F          118
450
451 /* SSD Verify */
452 #define DIAG_SSD_VERIFY_F         119
453
454 /* Log on Request */
455 #define DIAG_LOG_ON_DEMAND_F      120
456
457 /* Request for extended msg report */
458 #define DIAG_EXT_MSG_F            121 
459
460 /* ONCRPC diag packet */
461 #define DIAG_ONCRPC_F             122
462
463 /* Diagnostics protocol loopback. */
464 #define DIAG_PROTOCOL_LOOPBACK_F  123
465
466 /* Extended build ID text */
467 #define DIAG_EXT_BUILD_ID_F       124
468
469 /* Request for extended msg report */
470 #define DIAG_EXT_MSG_CONFIG_F     125
471
472 /* Extended messages in terse format */
473 #define DIAG_EXT_MSG_TERSE_F      126
474
475 /* Translate terse format message identifier */
476 #define DIAG_EXT_MSG_TERSE_XLATE_F 127
477
478 /* Subssytem dispatcher Version 2 (delayed response capable) */
479 #define DIAG_SUBSYS_CMD_VER_2_F    128
480
481 /* Get the event mask */
482 #define DIAG_EVENT_MASK_GET_F      129
483
484 /* Set the event mask */
485 #define DIAG_EVENT_MASK_SET_F      130
486
487 /* RESERVED CODES: 131-139 */
488
489 /* Command Code for Changing Port Settings */
490 #define DIAG_CHANGE_PORT_SETTINGS  140
491
492 /* Country network information for assisted dialing */
493 #define DIAG_CNTRY_INFO_F          141
494
495 /* Send a Supplementary Service Request */
496 #define DIAG_SUPS_REQ_F            142
497
498 /* Originate SMS request for MMS */
499 #define DIAG_MMS_ORIG_SMS_REQUEST_F 143
500
501 /* Change measurement mode*/
502 #define DIAG_MEAS_MODE_F           144
503
504 /* Request measurements for HDR channels */
505 #define DIAG_MEAS_REQ_F            145
506
507 /* Send Optimized F3 messages */
508 #define DIAG_QSR_EXT_MSG_TERSE_F   146
509
510 #ifdef FEATURE_TECHNICS_DIAG
511 /* Factory test functions, such as phone resetting the file */
512 #define DIAG_FACTORY_TEST_F  201
513
514 /* Number of packets defined. */
515 #define DIAG_MAX_F                 201
516 #else
517 /* Number of packets defined. */
518 #define DIAG_MAX_F                 146
519 #endif
520
521
522
523 typedef enum {
524   DIAG_SUBSYS_OEM                = 0,       /* Reserved for OEM use */
525   DIAG_SUBSYS_ZREX               = 1,       /* ZREX */
526   DIAG_SUBSYS_SD                 = 2,       /* System Determination */
527   DIAG_SUBSYS_BT                 = 3,       /* Bluetooth */
528   DIAG_SUBSYS_WCDMA              = 4,       /* WCDMA */
529   DIAG_SUBSYS_HDR                = 5,       /* 1xEvDO */
530   DIAG_SUBSYS_DIABLO             = 6,       /* DIABLO */
531   DIAG_SUBSYS_TREX               = 7,       /* TREX - Off-target testing environments */
532   DIAG_SUBSYS_GSM                = 8,       /* GSM */
533   DIAG_SUBSYS_UMTS               = 9,       /* UMTS */
534   DIAG_SUBSYS_HWTC               = 10,      /* HWTC */
535   DIAG_SUBSYS_FTM                = 11,      /* Factory Test Mode */
536   DIAG_SUBSYS_REX                = 12,      /* Rex */
537   DIAG_SUBSYS_OS                 = DIAG_SUBSYS_REX,
538   DIAG_SUBSYS_GPS                = 13,      /* Global Positioning System */
539   DIAG_SUBSYS_WMS                = 14,      /* Wireless Messaging Service (WMS, SMS) */
540   DIAG_SUBSYS_CM                 = 15,      /* Call Manager */
541   DIAG_SUBSYS_HS                 = 16,      /* Handset */
542   DIAG_SUBSYS_AUDIO_SETTINGS     = 17,      /* Audio Settings */
543   DIAG_SUBSYS_DIAG_SERV          = 18,      /* DIAG Services */
544   DIAG_SUBSYS_FS                 = 19,      /* File System - EFS2 */
545   DIAG_SUBSYS_PORT_MAP_SETTINGS  = 20,      /* Port Map Settings */
546   DIAG_SUBSYS_MEDIAPLAYER        = 21,      /* QCT Mediaplayer */
547   DIAG_SUBSYS_QCAMERA            = 22,      /* QCT QCamera */
548   DIAG_SUBSYS_MOBIMON            = 23,      /* QCT MobiMon */
549   DIAG_SUBSYS_GUNIMON            = 24,      /* QCT GuniMon */
550   DIAG_SUBSYS_LSM                = 25,      /* Location Services Manager */
551   DIAG_SUBSYS_QCAMCORDER         = 26,      /* QCT QCamcorder */
552   DIAG_SUBSYS_MUX1X              = 27,      /* Multiplexer */
553   DIAG_SUBSYS_DATA1X             = 28,      /* Data */
554   DIAG_SUBSYS_SRCH1X             = 29,      /* Searcher */
555   DIAG_SUBSYS_CALLP1X            = 30,      /* Call Processor */
556   DIAG_SUBSYS_APPS               = 31,      /* Applications */
557   DIAG_SUBSYS_SETTINGS           = 32,      /* Settings */
558   DIAG_SUBSYS_GSDI               = 33,      /* Generic SIM Driver Interface */
559   DIAG_SUBSYS_UIMDIAG            = DIAG_SUBSYS_GSDI,
560   DIAG_SUBSYS_TMC                = 34,      /* Task Main Controller */
561   DIAG_SUBSYS_USB                = 35,      /* Universal Serial Bus */
562   DIAG_SUBSYS_PM                 = 36,      /* Power Management */
563   DIAG_SUBSYS_DEBUG              = 37,
564   DIAG_SUBSYS_QTV                = 38,
565   DIAG_SUBSYS_CLKRGM             = 39,      /* Clock Regime */
566   DIAG_SUBSYS_DEVICES            = 40,
567   DIAG_SUBSYS_WLAN               = 41,      /* 802.11 Technology */
568   DIAG_SUBSYS_PS_DATA_LOGGING    = 42,      /* Data Path Logging */
569   DIAG_SUBSYS_PS                 = DIAG_SUBSYS_PS_DATA_LOGGING,
570   DIAG_SUBSYS_MFLO               = 43,      /* MediaFLO */
571   DIAG_SUBSYS_DTV                = 44,      /* Digital TV */
572   DIAG_SUBSYS_RRC                = 45,      /* WCDMA Radio Resource Control state */
573   DIAG_SUBSYS_PROF               = 46,      /* Miscellaneous Profiling Related */
574   DIAG_SUBSYS_TCXOMGR            = 47,
575   DIAG_SUBSYS_NV                 = 48,      /* Non Volatile Memory */
576   DIAG_SUBSYS_AUTOCONFIG         = 49,
577   DIAG_SUBSYS_PARAMS             = 50,      /* Parameters required for debugging subsystems */
578   DIAG_SUBSYS_MDDI               = 51,      /* Mobile Display Digital Interface */
579   DIAG_SUBSYS_DS_ATCOP           = 52,
580   DIAG_SUBSYS_L4LINUX            = 53,      /* L4/Linux */
581   DIAG_SUBSYS_MVS                = 54,      /* Multimode Voice Services */
582   DIAG_SUBSYS_CNV                = 55,      /* Compact NV */
583   DIAG_SUBSYS_APIONE_PROGRAM     = 56,      /* apiOne */
584   DIAG_SUBSYS_HIT                = 57,      /* Hardware Integration Test */
585   DIAG_SUBSYS_DRM                = 58,      /* Digital Rights Management */
586   DIAG_SUBSYS_DM                 = 59,      /* Device Management */
587   DIAG_SUBSYS_FC                 = 60,      /* Flow Controller */
588   DIAG_SUBSYS_MEMORY             = 61,      /* Malloc Manager */
589   DIAG_SUBSYS_FS_ALTERNATE       = 62,      /* Alternate File System */
590   DIAG_SUBSYS_REGRESSION         = 63,      /* Regression Test Commands */
591   DIAG_SUBSYS_SENSORS            = 64,      /* The sensors subsystem */
592   DIAG_SUBSYS_FLUTE              = 65,      /* FLUTE */
593   DIAG_SUBSYS_ANALOG             = 66,      /* Analog die subsystem */
594   DIAG_SUBSYS_APIONE_PROGRAM_MODEM = 67,    /* apiOne Program On Modem Processor */
595   DIAG_SUBSYS_LTE                = 68,      /* LTE */
596   DIAG_SUBSYS_BREW               = 69,      /* BREW */
597   DIAG_SUBSYS_PWRDB              = 70,      /* Power Debug Tool */
598   DIAG_SUBSYS_CHORD              = 71,      /* Chaos Coordinator */
599   DIAG_SUBSYS_SEC                = 72,      /* Security */
600   DIAG_SUBSYS_TIME               = 73,      /* Time Services */
601   DIAG_SUBSYS_Q6_CORE            = 74,      /* Q6 core services */
602   DIAG_SUBSYS_COREBSP            = 75,      /* CoreBSP */
603                                             /* Command code allocation: 
604                                                 [0 - 2047]      - HWENGINES
605                                                 [2048 - 2147]   - MPROC
606                                                 [2148 - 2247]   - BUSES
607                                                 [2248 - 2347]   - USB
608                                                 [2348 - 65535]  - Reserved
609                                             */
610                                                                                                                   
611   DIAG_SUBSYS_MFLO2              = 76,      /* Media Flow */
612                                             /* Command code allocation: 
613                                                 [0 - 1023]       - APPs
614                                                 [1024 - 65535]   - Reserved
615                                             */
616   DIAG_SUBSYS_ULOG               = 77,  /* ULog Services */
617   DIAG_SUBSYS_APR              = 78,  /* Asynchronous Packet Router (Yu, Andy)*/
618   DIAG_SUBSYS_QNP    = 79 , /*QNP (Ravinder Are , Arun Harnoor)*/
619   DIAG_SUBSYS_STRIDE    = 80 , /* Ivailo Petrov */
620   DIAG_SUBSYS_OEMDPP    = 81 , /* to read/write calibration to DPP partition */
621   DIAG_SUBSYS_Q5_CORE   = 82 , /* Requested by ADSP team */
622   DIAG_SUBSYS_USCRIPT   = 83 , /* core/power team USCRIPT tool */
623
624   DIAG_SUBSYS_LAST,
625
626   /* Subsystem IDs reserved for OEM use */
627   DIAG_SUBSYS_RESERVED_OEM_0     = 250,
628   DIAG_SUBSYS_RESERVED_OEM_1     = 251,
629   DIAG_SUBSYS_RESERVED_OEM_2     = 252,
630   DIAG_SUBSYS_RESERVED_OEM_3     = 253,
631   DIAG_SUBSYS_RESERVED_OEM_4     = 254,
632   DIAG_SUBSYS_LEGACY             = 255
633 } diagpkt_subsys_cmd_enum_type;
634 /*!
635 @endcond
636 */
637 #endif  /* DIAGCMD_H */
638
639
640