2
0

mbim-cid.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /*
  3. * libmbim-glib -- GLib/GIO based library to control MBIM devices
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the
  17. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301 USA.
  19. *
  20. * Copyright (C) 2013 - 2014 Aleksander Morgado <aleksander@aleksander.es>
  21. */
  22. #ifndef _LIBMBIM_GLIB_MBIM_CID_H_
  23. #define _LIBMBIM_GLIB_MBIM_CID_H_
  24. /**
  25. * MbimCidBasicConnect:
  26. * @MBIM_CID_BASIC_CONNECT_UNKNOWN: Unknown command.
  27. * @MBIM_CID_BASIC_CONNECT_DEVICE_CAPS: Device capabilities.
  28. * @MBIM_CID_BASIC_CONNECT_SUBSCRIBER_READY_STATUS: Subscriber ready status.
  29. * @MBIM_CID_BASIC_CONNECT_RADIO_STATE: Radio state.
  30. * @MBIM_CID_BASIC_CONNECT_PIN: PIN.
  31. * @MBIM_CID_BASIC_CONNECT_PIN_LIST: PIN list.
  32. * @MBIM_CID_BASIC_CONNECT_HOME_PROVIDER: Home provider.
  33. * @MBIM_CID_BASIC_CONNECT_PREFERRED_PROVIDERS: Preferred providers.
  34. * @MBIM_CID_BASIC_CONNECT_VISIBLE_PROVIDERS: Visible providers.
  35. * @MBIM_CID_BASIC_CONNECT_REGISTER_STATE: Register state.
  36. * @MBIM_CID_BASIC_CONNECT_PACKET_SERVICE: Packet service.
  37. * @MBIM_CID_BASIC_CONNECT_SIGNAL_STATE: Signal state.
  38. * @MBIM_CID_BASIC_CONNECT_CONNECT: Connect.
  39. * @MBIM_CID_BASIC_CONNECT_PROVISIONED_CONTEXTS: Provisioned contexts.
  40. * @MBIM_CID_BASIC_CONNECT_SERVICE_ACTIVATION: Service activation.
  41. * @MBIM_CID_BASIC_CONNECT_IP_CONFIGURATION: IP configuration.
  42. * @MBIM_CID_BASIC_CONNECT_DEVICE_SERVICES: Device services.
  43. * @MBIM_CID_BASIC_CONNECT_DEVICE_SERVICE_SUBSCRIBE_LIST: Device service subscribe list.
  44. * @MBIM_CID_BASIC_CONNECT_PACKET_STATISTICS: Packet statistics.
  45. * @MBIM_CID_BASIC_CONNECT_NETWORK_IDLE_HINT: Network idle hint.
  46. * @MBIM_CID_BASIC_CONNECT_EMERGENCY_MODE: Emergency mode.
  47. * @MBIM_CID_BASIC_CONNECT_IP_PACKET_FILTERS: IP packet filters.
  48. * @MBIM_CID_BASIC_CONNECT_MULTICARRIER_PROVIDERS: Multicarrier providers.
  49. *
  50. * MBIM commands in the %MBIM_SERVICE_BASIC_CONNECT service.
  51. */
  52. typedef enum {
  53. MBIM_CID_BASIC_CONNECT_UNKNOWN = 0,
  54. MBIM_CID_BASIC_CONNECT_DEVICE_CAPS = 1,
  55. MBIM_CID_BASIC_CONNECT_SUBSCRIBER_READY_STATUS = 2,
  56. MBIM_CID_BASIC_CONNECT_RADIO_STATE = 3,
  57. MBIM_CID_BASIC_CONNECT_PIN = 4,
  58. MBIM_CID_BASIC_CONNECT_PIN_LIST = 5,
  59. MBIM_CID_BASIC_CONNECT_HOME_PROVIDER = 6,
  60. MBIM_CID_BASIC_CONNECT_PREFERRED_PROVIDERS = 7,
  61. MBIM_CID_BASIC_CONNECT_VISIBLE_PROVIDERS = 8,
  62. MBIM_CID_BASIC_CONNECT_REGISTER_STATE = 9,
  63. MBIM_CID_BASIC_CONNECT_PACKET_SERVICE = 10,
  64. MBIM_CID_BASIC_CONNECT_SIGNAL_STATE = 11,
  65. MBIM_CID_BASIC_CONNECT_CONNECT = 12,
  66. MBIM_CID_BASIC_CONNECT_PROVISIONED_CONTEXTS = 13,
  67. MBIM_CID_BASIC_CONNECT_SERVICE_ACTIVATION = 14,
  68. MBIM_CID_BASIC_CONNECT_IP_CONFIGURATION = 15,
  69. MBIM_CID_BASIC_CONNECT_DEVICE_SERVICES = 16,
  70. /* 17, 18 reserved */
  71. MBIM_CID_BASIC_CONNECT_DEVICE_SERVICE_SUBSCRIBE_LIST = 19,
  72. MBIM_CID_BASIC_CONNECT_PACKET_STATISTICS = 20,
  73. MBIM_CID_BASIC_CONNECT_NETWORK_IDLE_HINT = 21,
  74. MBIM_CID_BASIC_CONNECT_EMERGENCY_MODE = 22,
  75. MBIM_CID_BASIC_CONNECT_IP_PACKET_FILTERS = 23,
  76. MBIM_CID_BASIC_CONNECT_MULTICARRIER_PROVIDERS = 24,
  77. } MbimCidBasicConnect;
  78. /**
  79. * MbimCidSms:
  80. * @MBIM_CID_SMS_UNKNOWN: Unknown command.
  81. * @MBIM_CID_SMS_CONFIGURATION: SMS configuration.
  82. * @MBIM_CID_SMS_READ: Read.
  83. * @MBIM_CID_SMS_SEND: Send.
  84. * @MBIM_CID_SMS_DELETE: Delete.
  85. * @MBIM_CID_SMS_MESSAGE_STORE_STATUS: Store message status.
  86. *
  87. * MBIM commands in the %MBIM_SERVICE_SMS service.
  88. */
  89. typedef enum {
  90. MBIM_CID_SMS_UNKNOWN = 0,
  91. MBIM_CID_SMS_CONFIGURATION = 1,
  92. MBIM_CID_SMS_READ = 2,
  93. MBIM_CID_SMS_SEND = 3,
  94. MBIM_CID_SMS_DELETE = 4,
  95. MBIM_CID_SMS_MESSAGE_STORE_STATUS = 5,
  96. } MbimCidSms;
  97. /**
  98. * MbimCidUssd:
  99. * @MBIM_CID_USSD_UNKNOWN: Unknown command.
  100. * @MBIM_CID_USSD: USSD operation.
  101. *
  102. * MBIM commands in the %MBIM_SERVICE_USSD service.
  103. */
  104. typedef enum {
  105. MBIM_CID_USSD_UNKNOWN = 0,
  106. MBIM_CID_USSD = 1,
  107. } MbimCidUssd;
  108. /**
  109. * MbimCidPhonebook:
  110. * @MBIM_CID_PHONEBOOK_UNKNOWN: Unknown command.
  111. * @MBIM_CID_PHONEBOOK_CONFIGURATION: Configuration.
  112. * @MBIM_CID_PHONEBOOK_READ: Read.
  113. * @MBIM_CID_PHONEBOOK_DELETE: Delete.
  114. * @MBIM_CID_PHONEBOOK_WRITE: Write.
  115. *
  116. * MBIM commands in the %MBIM_SERVICE_PHONEBOOK service.
  117. */
  118. typedef enum {
  119. MBIM_CID_PHONEBOOK_UNKNOWN = 0,
  120. MBIM_CID_PHONEBOOK_CONFIGURATION = 1,
  121. MBIM_CID_PHONEBOOK_READ = 2,
  122. MBIM_CID_PHONEBOOK_DELETE = 3,
  123. MBIM_CID_PHONEBOOK_WRITE = 4,
  124. } MbimCidPhonebook;
  125. /**
  126. * MbimCidStk:
  127. * @MBIM_CID_STK_UNKNOWN: Unknown command.
  128. * @MBIM_CID_STK_PAC: PAC.
  129. * @MBIM_CID_STK_TERMINAL_RESPONSE: Terminal response.
  130. * @MBIM_CID_STK_ENVELOPE: Envelope.
  131. *
  132. * MBIM commands in the %MBIM_SERVICE_STK service.
  133. */
  134. typedef enum {
  135. MBIM_CID_STK_UNKNOWN = 0,
  136. MBIM_CID_STK_PAC = 1,
  137. MBIM_CID_STK_TERMINAL_RESPONSE = 2,
  138. MBIM_CID_STK_ENVELOPE = 3,
  139. } MbimCidStk;
  140. /**
  141. * MbimCidAuth:
  142. * @MBIM_CID_AUTH_UNKNOWN: Unknow command
  143. * @MBIM_CID_AUTH_AKA: AKA.
  144. * @MBIM_CID_AUTH_AKAP: AKAP.
  145. * @MBIM_CID_AUTH_SIM: SIM.
  146. *
  147. * MBIM commands in the %MBIM_SERVICE_AUTH service.
  148. */
  149. typedef enum {
  150. MBIM_CID_AUTH_UNKNOWN = 0,
  151. MBIM_CID_AUTH_AKA = 1,
  152. MBIM_CID_AUTH_AKAP = 2,
  153. MBIM_CID_AUTH_SIM = 3,
  154. } MbimCidAuth;
  155. /**
  156. * MbimCidDss:
  157. * @MBIM_CID_DSS_UNKNOWN: Unknown command.
  158. * @MBIM_CID_DSS_CONNECT: Connect.
  159. *
  160. * MBIM commands in the %MBIM_SERVICE_DSS service.
  161. */
  162. typedef enum {
  163. MBIM_CID_DSS_UNKNOWN = 0,
  164. MBIM_CID_DSS_CONNECT = 1
  165. } MbimCidDss;
  166. /**
  167. * MbimCidMsFirmwareId:
  168. * @MBIM_CID_MS_FIRMWARE_ID_UNKNOWN: Unknown command.
  169. * @MBIM_CID_MS_FIRMWARE_ID_GET: Get Firmware ID.
  170. *
  171. * MBIM commands in the %MBIM_SERVICE_MS_FIRMWARE_ID service.
  172. */
  173. typedef enum {
  174. MBIM_CID_MS_FIRMWARE_ID_UNKNOWN = 0,
  175. MBIM_CID_MS_FIRMWARE_ID_GET = 1
  176. } MbimCidMsFirmwareId;
  177. /**
  178. * MbimCidMsHostShutdown:
  179. * @MBIM_CID_MS_HOST_SHUTDOWN_UNKNOWN: Unknown command.
  180. * @MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY: Notify that the host is shutting down.
  181. *
  182. * MBIM commands in the %MBIM_SERVICE_MS_HOST_SHUTDOWN service.
  183. */
  184. typedef enum {
  185. MBIM_CID_MS_HOST_SHUTDOWN_UNKNOWN = 0,
  186. MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY = 1
  187. } MbimCidMsHostShutdown;
  188. /**
  189. * MbimCidProxyControl:
  190. * @MBIM_CID_PROXY_CONTROL_UNKNOWN: Unknown command.
  191. * @MBIM_CID_PROXY_CONTROL_CONFIGURATION: Configuration.
  192. *
  193. * MBIM commands in the %MBIM_SERVICE_PROXY_CONTROL service.
  194. */
  195. typedef enum {
  196. MBIM_CID_PROXY_CONTROL_UNKNOWN = 0,
  197. MBIM_CID_PROXY_CONTROL_CONFIGURATION = 1
  198. } MbimCidProxyControl;
  199. #endif /* _LIBMBIM_GLIB_MBIM_CID_H_ */