Guest User

diagcmd.h

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