• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/uqmi/qmi-enums-nas.h

  1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2 /*
  3  * uqmi -- tiny QMI support implementation
  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) 2012 Google Inc.
 21  * Copyright (C) 2012-2017 Aleksander Morgado <aleksander@aleksander.es>
 22  */
 23 
 24 #ifndef _LIBQMI_GLIB_QMI_ENUMS_NAS_H_
 25 #define _LIBQMI_GLIB_QMI_ENUMS_NAS_H_
 26 
 27 /**
 28  * SECTION: qmi-enums-nas
 29  *
 30  * This section defines enumerations and flags used in the NAS service
 31  * interface.
 32  */
 33 
 34 /*****************************************************************************/
 35 /* Helper enums for the 'QMI NAS Event Report' indication */
 36 
 37 /**
 38  * QmiNasRadioInterface:
 39  * @QMI_NAS_RADIO_INTERFACE_UNKNOWN: Not known or not needed.
 40  * @QMI_NAS_RADIO_INTERFACE_NONE: None, no service.
 41  * @QMI_NAS_RADIO_INTERFACE_CDMA_1X: CDMA2000 1X.
 42  * @QMI_NAS_RADIO_INTERFACE_CDMA_1XEVDO: CDMA2000 HRPD (1xEV-DO).
 43  * @QMI_NAS_RADIO_INTERFACE_AMPS: AMPS.
 44  * @QMI_NAS_RADIO_INTERFACE_GSM: GSM.
 45  * @QMI_NAS_RADIO_INTERFACE_UMTS: UMTS.
 46  * @QMI_NAS_RADIO_INTERFACE_LTE: LTE.
 47  * @QMI_NAS_RADIO_INTERFACE_TD_SCDMA: TD-SCDMA.
 48  * @QMI_NAS_RADIO_INTERFACE_5GNR: 5G NR. Since 1.26.
 49  *
 50  * Radio interface technology.
 51  *
 52  * Since: 1.0
 53  */
 54 typedef enum { /*< since=1.0 >*/
 55     QMI_NAS_RADIO_INTERFACE_UNKNOWN     = -1,
 56     QMI_NAS_RADIO_INTERFACE_NONE        = 0x00,
 57     QMI_NAS_RADIO_INTERFACE_CDMA_1X     = 0x01,
 58     QMI_NAS_RADIO_INTERFACE_CDMA_1XEVDO = 0x02,
 59     QMI_NAS_RADIO_INTERFACE_AMPS        = 0x03,
 60     QMI_NAS_RADIO_INTERFACE_GSM         = 0x04,
 61     QMI_NAS_RADIO_INTERFACE_UMTS        = 0x05,
 62     QMI_NAS_RADIO_INTERFACE_LTE         = 0x08,
 63     QMI_NAS_RADIO_INTERFACE_TD_SCDMA    = 0x09,
 64     QMI_NAS_RADIO_INTERFACE_5GNR        = 0x0C,
 65 } QmiNasRadioInterface;
 66 
 67 /**
 68  * QmiNasActiveBand:
 69  * @QMI_NAS_ACTIVE_BAND_BC_0: Band class 0.
 70  * @QMI_NAS_ACTIVE_BAND_BC_1: Band class 1.
 71  * @QMI_NAS_ACTIVE_BAND_BC_2: Band class 2.
 72  * @QMI_NAS_ACTIVE_BAND_BC_3: Band class 3.
 73  * @QMI_NAS_ACTIVE_BAND_BC_4: Band class 4.
 74  * @QMI_NAS_ACTIVE_BAND_BC_5: Band class 5.
 75  * @QMI_NAS_ACTIVE_BAND_BC_6: Band class 6.
 76  * @QMI_NAS_ACTIVE_BAND_BC_7: Band class 7.
 77  * @QMI_NAS_ACTIVE_BAND_BC_8: Band class 8.
 78  * @QMI_NAS_ACTIVE_BAND_BC_9: Band class 9.
 79  * @QMI_NAS_ACTIVE_BAND_BC_10: Band class 10.
 80  * @QMI_NAS_ACTIVE_BAND_BC_11: Band class 11.
 81  * @QMI_NAS_ACTIVE_BAND_BC_12: Band class 12.
 82  * @QMI_NAS_ACTIVE_BAND_BC_13: Band class 13.
 83  * @QMI_NAS_ACTIVE_BAND_BC_14: Band class 14.
 84  * @QMI_NAS_ACTIVE_BAND_BC_15: Band class 15.
 85  * @QMI_NAS_ACTIVE_BAND_BC_16: Band class 16.
 86  * @QMI_NAS_ACTIVE_BAND_BC_17: Band class 17.
 87  * @QMI_NAS_ACTIVE_BAND_BC_18: Band class 18.
 88  * @QMI_NAS_ACTIVE_BAND_BC_19: Band class 19.
 89  * @QMI_NAS_ACTIVE_BAND_GSM_450: GSM 450.
 90  * @QMI_NAS_ACTIVE_BAND_GSM_480: GSM 480.
 91  * @QMI_NAS_ACTIVE_BAND_GSM_750: GSM 750.
 92  * @QMI_NAS_ACTIVE_BAND_GSM_850: GSM 850.
 93  * @QMI_NAS_ACTIVE_BAND_GSM_900_EXTENDED: GSM 900 (Extended).
 94  * @QMI_NAS_ACTIVE_BAND_GSM_900_PRIMARY: GSM 900 (Primary).
 95  * @QMI_NAS_ACTIVE_BAND_GSM_900_RAILWAYS: GSM 900 (Railways).
 96  * @QMI_NAS_ACTIVE_BAND_GSM_DCS_1800: GSM 1800.
 97  * @QMI_NAS_ACTIVE_BAND_GSM_PCS_1900: GSM 1900.
 98  * @QMI_NAS_ACTIVE_BAND_WCDMA_2100: WCDMA 2100.
 99  * @QMI_NAS_ACTIVE_BAND_WCDMA_PCS_1900: WCDMA PCS 1900.
100  * @QMI_NAS_ACTIVE_BAND_WCDMA_DCS_1800: WCDMA DCS 1800.
101  * @QMI_NAS_ACTIVE_BAND_WCDMA_1700_US: WCDMA 1700 (U.S.).
102  * @QMI_NAS_ACTIVE_BAND_WCDMA_850: WCDMA 850.
103  * @QMI_NAS_ACTIVE_BAND_WCDMA_800: WCDMA 800.
104  * @QMI_NAS_ACTIVE_BAND_WCDMA_2600: WCDMA 2600.
105  * @QMI_NAS_ACTIVE_BAND_WCDMA_900: WCDMA 900.
106  * @QMI_NAS_ACTIVE_BAND_WCDMA_1700_JAPAN: WCDMA 1700 (Japan).
107  * @QMI_NAS_ACTIVE_BAND_WCDMA_1500_JAPAN: WCDMA 1500 (Japan).
108  * @QMI_NAS_ACTIVE_BAND_WCDMA_850_JAPAN: WCDMA 850 (Japan).
109  * @QMI_NAS_ACTIVE_BAND_EUTRAN_1: EUTRAN band 1.
110  * @QMI_NAS_ACTIVE_BAND_EUTRAN_2: EUTRAN band 2.
111  * @QMI_NAS_ACTIVE_BAND_EUTRAN_3: EUTRAN band 3.
112  * @QMI_NAS_ACTIVE_BAND_EUTRAN_4: EUTRAN band 4.
113  * @QMI_NAS_ACTIVE_BAND_EUTRAN_5: EUTRAN band 5.
114  * @QMI_NAS_ACTIVE_BAND_EUTRAN_6: EUTRAN band 6.
115  * @QMI_NAS_ACTIVE_BAND_EUTRAN_7: EUTRAN band 7.
116  * @QMI_NAS_ACTIVE_BAND_EUTRAN_8: EUTRAN band 8.
117  * @QMI_NAS_ACTIVE_BAND_EUTRAN_9: EUTRAN band 9.
118  * @QMI_NAS_ACTIVE_BAND_EUTRAN_10: EUTRAN band 10.
119  * @QMI_NAS_ACTIVE_BAND_EUTRAN_11: EUTRAN band 11.
120  * @QMI_NAS_ACTIVE_BAND_EUTRAN_12: EUTRAN band 12.
121  * @QMI_NAS_ACTIVE_BAND_EUTRAN_13: EUTRAN band 13.
122  * @QMI_NAS_ACTIVE_BAND_EUTRAN_14: EUTRAN band 14.
123  * @QMI_NAS_ACTIVE_BAND_EUTRAN_17: EUTRAN band 17.
124  * @QMI_NAS_ACTIVE_BAND_EUTRAN_18: EUTRAN band 18.
125  * @QMI_NAS_ACTIVE_BAND_EUTRAN_19: EUTRAN band 19.
126  * @QMI_NAS_ACTIVE_BAND_EUTRAN_20: EUTRAN band 20.
127  * @QMI_NAS_ACTIVE_BAND_EUTRAN_21: EUTRAN band 21.
128  * @QMI_NAS_ACTIVE_BAND_EUTRAN_23: EUTRAN band 23.
129  * @QMI_NAS_ACTIVE_BAND_EUTRAN_24: EUTRAN band 24.
130  * @QMI_NAS_ACTIVE_BAND_EUTRAN_25: EUTRAN band 25.
131  * @QMI_NAS_ACTIVE_BAND_EUTRAN_26: EUTRAN band 26.
132  * @QMI_NAS_ACTIVE_BAND_EUTRAN_27: EUTRAN band 27.
133  * @QMI_NAS_ACTIVE_BAND_EUTRAN_28: EUTRAN band 28.
134  * @QMI_NAS_ACTIVE_BAND_EUTRAN_29: EUTRAN band 29.
135  * @QMI_NAS_ACTIVE_BAND_EUTRAN_30: EUTRAN band 30.
136  * @QMI_NAS_ACTIVE_BAND_EUTRAN_31: EUTRAN band 31.
137  * @QMI_NAS_ACTIVE_BAND_EUTRAN_32: EUTRAN band 32.
138  * @QMI_NAS_ACTIVE_BAND_EUTRAN_33: EUTRAN band 33.
139  * @QMI_NAS_ACTIVE_BAND_EUTRAN_34: EUTRAN band 34.
140  * @QMI_NAS_ACTIVE_BAND_EUTRAN_35: EUTRAN band 35.
141  * @QMI_NAS_ACTIVE_BAND_EUTRAN_36: EUTRAN band 36.
142  * @QMI_NAS_ACTIVE_BAND_EUTRAN_37: EUTRAN band 37.
143  * @QMI_NAS_ACTIVE_BAND_EUTRAN_38: EUTRAN band 38.
144  * @QMI_NAS_ACTIVE_BAND_EUTRAN_39: EUTRAN band 39.
145  * @QMI_NAS_ACTIVE_BAND_EUTRAN_40: EUTRAN band 40.
146  * @QMI_NAS_ACTIVE_BAND_EUTRAN_41: EUTRAN band 41.
147  * @QMI_NAS_ACTIVE_BAND_EUTRAN_42: EUTRAN band 42.
148  * @QMI_NAS_ACTIVE_BAND_EUTRAN_43: EUTRAN band 43.
149  * @QMI_NAS_ACTIVE_BAND_EUTRAN_46: EUTRAN band 46.
150  * @QMI_NAS_ACTIVE_BAND_EUTRAN_47: EUTRAN band 47.
151  * @QMI_NAS_ACTIVE_BAND_EUTRAN_48: EUTRAN band 48.
152  * @QMI_NAS_ACTIVE_BAND_EUTRAN_66: EUTRAN band 66.
153  * @QMI_NAS_ACTIVE_BAND_EUTRAN_71: EUTRAN band 71.
154  * @QMI_NAS_ACTIVE_BAND_EUTRAN_125: EUTRAN band 125.
155  * @QMI_NAS_ACTIVE_BAND_EUTRAN_126: EUTRAN band 126.
156  * @QMI_NAS_ACTIVE_BAND_EUTRAN_127: EUTRAN band 127.
157  * @QMI_NAS_ACTIVE_BAND_EUTRAN_250: EUTRAN band 250.
158  * @QMI_NAS_ACTIVE_BAND_TDSCDMA_A: TD-SCDMA Band A.
159  * @QMI_NAS_ACTIVE_BAND_TDSCDMA_B: TD-SCDMA Band B.
160  * @QMI_NAS_ACTIVE_BAND_TDSCDMA_C: TD-SCDMA Band C.
161  * @QMI_NAS_ACTIVE_BAND_TDSCDMA_D: TD-SCDMA Band D.
162  * @QMI_NAS_ACTIVE_BAND_TDSCDMA_E: TD-SCDMA Band E.
163  * @QMI_NAS_ACTIVE_BAND_TDSCDMA_F: TD-SCDMA Band F.
164  *
165  * Band classes.
166  *
167  * Since: 1.0
168  */
169 typedef enum { /*< since=1.0 >*/
170     QMI_NAS_ACTIVE_BAND_BC_0 = 0,
171     QMI_NAS_ACTIVE_BAND_BC_1 = 1,
172     QMI_NAS_ACTIVE_BAND_BC_2 = 2,
173     QMI_NAS_ACTIVE_BAND_BC_3 = 3,
174     QMI_NAS_ACTIVE_BAND_BC_4 = 4,
175     QMI_NAS_ACTIVE_BAND_BC_5 = 5,
176     QMI_NAS_ACTIVE_BAND_BC_6 = 6,
177     QMI_NAS_ACTIVE_BAND_BC_7 = 7,
178     QMI_NAS_ACTIVE_BAND_BC_8 = 8,
179     QMI_NAS_ACTIVE_BAND_BC_9 = 9,
180     QMI_NAS_ACTIVE_BAND_BC_10 = 10,
181     QMI_NAS_ACTIVE_BAND_BC_11 = 11,
182     QMI_NAS_ACTIVE_BAND_BC_12 = 12,
183     QMI_NAS_ACTIVE_BAND_BC_13 = 13,
184     QMI_NAS_ACTIVE_BAND_BC_14 = 14,
185     QMI_NAS_ACTIVE_BAND_BC_15 = 15,
186     QMI_NAS_ACTIVE_BAND_BC_16 = 16,
187     QMI_NAS_ACTIVE_BAND_BC_17 = 17,
188     QMI_NAS_ACTIVE_BAND_BC_18 = 18,
189     QMI_NAS_ACTIVE_BAND_BC_19 = 19,
190     QMI_NAS_ACTIVE_BAND_GSM_450 = 40,
191     QMI_NAS_ACTIVE_BAND_GSM_480 = 41,
192     QMI_NAS_ACTIVE_BAND_GSM_750 = 42,
193     QMI_NAS_ACTIVE_BAND_GSM_850 = 43,
194     QMI_NAS_ACTIVE_BAND_GSM_900_EXTENDED = 44,
195     QMI_NAS_ACTIVE_BAND_GSM_900_PRIMARY = 45,
196     QMI_NAS_ACTIVE_BAND_GSM_900_RAILWAYS = 46,
197     QMI_NAS_ACTIVE_BAND_GSM_DCS_1800 = 47,
198     QMI_NAS_ACTIVE_BAND_GSM_PCS_1900 = 48,
199     QMI_NAS_ACTIVE_BAND_WCDMA_2100 = 80,
200     QMI_NAS_ACTIVE_BAND_WCDMA_PCS_1900 = 81,
201     QMI_NAS_ACTIVE_BAND_WCDMA_DCS_1800 = 82,
202     QMI_NAS_ACTIVE_BAND_WCDMA_1700_US = 83,
203     QMI_NAS_ACTIVE_BAND_WCDMA_850 = 84,
204     QMI_NAS_ACTIVE_BAND_WCDMA_800 = 85,
205     QMI_NAS_ACTIVE_BAND_WCDMA_2600 = 86,
206     QMI_NAS_ACTIVE_BAND_WCDMA_900 = 87,
207     QMI_NAS_ACTIVE_BAND_WCDMA_1700_JAPAN = 88,
208     QMI_NAS_ACTIVE_BAND_WCDMA_1500_JAPAN = 90,
209     QMI_NAS_ACTIVE_BAND_WCDMA_850_JAPAN = 91,
210     QMI_NAS_ACTIVE_BAND_EUTRAN_1 = 120,
211     QMI_NAS_ACTIVE_BAND_EUTRAN_2 = 121,
212     QMI_NAS_ACTIVE_BAND_EUTRAN_3 = 122,
213     QMI_NAS_ACTIVE_BAND_EUTRAN_4 = 123,
214     QMI_NAS_ACTIVE_BAND_EUTRAN_5 = 124,
215     QMI_NAS_ACTIVE_BAND_EUTRAN_6 = 125,
216     QMI_NAS_ACTIVE_BAND_EUTRAN_7 = 126,
217     QMI_NAS_ACTIVE_BAND_EUTRAN_8 = 127,
218     QMI_NAS_ACTIVE_BAND_EUTRAN_9 = 128,
219     QMI_NAS_ACTIVE_BAND_EUTRAN_10 = 129,
220     QMI_NAS_ACTIVE_BAND_EUTRAN_11 = 130,
221     QMI_NAS_ACTIVE_BAND_EUTRAN_12 = 131,
222     QMI_NAS_ACTIVE_BAND_EUTRAN_13 = 132,
223     QMI_NAS_ACTIVE_BAND_EUTRAN_14 = 133,
224     QMI_NAS_ACTIVE_BAND_EUTRAN_17 = 134,
225     QMI_NAS_ACTIVE_BAND_EUTRAN_18 = 143,
226     QMI_NAS_ACTIVE_BAND_EUTRAN_19 = 144,
227     QMI_NAS_ACTIVE_BAND_EUTRAN_20 = 145,
228     QMI_NAS_ACTIVE_BAND_EUTRAN_21 = 146,
229     QMI_NAS_ACTIVE_BAND_EUTRAN_23 = 152,
230     QMI_NAS_ACTIVE_BAND_EUTRAN_24 = 147,
231     QMI_NAS_ACTIVE_BAND_EUTRAN_25 = 148,
232     QMI_NAS_ACTIVE_BAND_EUTRAN_26 = 153,
233     QMI_NAS_ACTIVE_BAND_EUTRAN_27 = 164,
234     QMI_NAS_ACTIVE_BAND_EUTRAN_28 = 158,
235     QMI_NAS_ACTIVE_BAND_EUTRAN_29 = 159,
236     QMI_NAS_ACTIVE_BAND_EUTRAN_30 = 160,
237     QMI_NAS_ACTIVE_BAND_EUTRAN_31 = 165,
238     QMI_NAS_ACTIVE_BAND_EUTRAN_32 = 154,
239     QMI_NAS_ACTIVE_BAND_EUTRAN_33 = 135,
240     QMI_NAS_ACTIVE_BAND_EUTRAN_34 = 136,
241     QMI_NAS_ACTIVE_BAND_EUTRAN_35 = 137,
242     QMI_NAS_ACTIVE_BAND_EUTRAN_36 = 138,
243     QMI_NAS_ACTIVE_BAND_EUTRAN_37 = 139,
244     QMI_NAS_ACTIVE_BAND_EUTRAN_38 = 140,
245     QMI_NAS_ACTIVE_BAND_EUTRAN_39 = 141,
246     QMI_NAS_ACTIVE_BAND_EUTRAN_40 = 142,
247     QMI_NAS_ACTIVE_BAND_EUTRAN_41 = 149,
248     QMI_NAS_ACTIVE_BAND_EUTRAN_42 = 150,
249     QMI_NAS_ACTIVE_BAND_EUTRAN_43 = 151,
250     QMI_NAS_ACTIVE_BAND_EUTRAN_46 = 163,
251     QMI_NAS_ACTIVE_BAND_EUTRAN_47 = 166,
252     QMI_NAS_ACTIVE_BAND_EUTRAN_48 = 167,
253     QMI_NAS_ACTIVE_BAND_EUTRAN_66 = 161,
254     QMI_NAS_ACTIVE_BAND_EUTRAN_71 = 168,
255     QMI_NAS_ACTIVE_BAND_EUTRAN_125 = 155,
256     QMI_NAS_ACTIVE_BAND_EUTRAN_126 = 156,
257     QMI_NAS_ACTIVE_BAND_EUTRAN_127 = 157,
258     QMI_NAS_ACTIVE_BAND_EUTRAN_250 = 162,
259     QMI_NAS_ACTIVE_BAND_TDSCDMA_A = 200,
260     QMI_NAS_ACTIVE_BAND_TDSCDMA_B = 201,
261     QMI_NAS_ACTIVE_BAND_TDSCDMA_C = 202,
262     QMI_NAS_ACTIVE_BAND_TDSCDMA_D = 203,
263     QMI_NAS_ACTIVE_BAND_TDSCDMA_E = 204,
264     QMI_NAS_ACTIVE_BAND_TDSCDMA_F = 205
265 } QmiNasActiveBand;
266 
267 /**
268  * QmiNasNetworkServiceDomain:
269  * @QMI_NAS_NETWORK_SERVICE_DOMAIN_NONE: No service.
270  * @QMI_NAS_NETWORK_SERVICE_DOMAIN_CS: Circuit switched.
271  * @QMI_NAS_NETWORK_SERVICE_DOMAIN_PS: Packet switched.
272  * @QMI_NAS_NETWORK_SERVICE_DOMAIN_CS_PS: Circuit and packet switched.
273  * @QMI_NAS_NETWORK_SERVICE_DOMAIN_UNKNOWN: Unknown service.
274  *
275  * Network Service Domain.
276  *
277  * Since: 1.0
278  */
279 typedef enum { /*< since=1.0 >*/
280     QMI_NAS_NETWORK_SERVICE_DOMAIN_NONE    = 0x00,
281     QMI_NAS_NETWORK_SERVICE_DOMAIN_CS      = 0x01,
282     QMI_NAS_NETWORK_SERVICE_DOMAIN_PS      = 0x02,
283     QMI_NAS_NETWORK_SERVICE_DOMAIN_CS_PS   = 0x03,
284     QMI_NAS_NETWORK_SERVICE_DOMAIN_UNKNOWN = 0x04,
285 } QmiNasNetworkServiceDomain;
286 
287 /**
288  * QmiNasEvdoSinrLevel:
289  * @QMI_NAS_EVDO_SINR_LEVEL_0: -9 dB.
290  * @QMI_NAS_EVDO_SINR_LEVEL_1: -6 dB.
291  * @QMI_NAS_EVDO_SINR_LEVEL_2: -4.5 dB.
292  * @QMI_NAS_EVDO_SINR_LEVEL_3: -3 dB.
293  * @QMI_NAS_EVDO_SINR_LEVEL_4: -2 dB.
294  * @QMI_NAS_EVDO_SINR_LEVEL_5: +1 dB.
295  * @QMI_NAS_EVDO_SINR_LEVEL_6: +3 dB.
296  * @QMI_NAS_EVDO_SINR_LEVEL_7: +6 dB.
297  * @QMI_NAS_EVDO_SINR_LEVEL_8: +9 dB.
298  *
299  * EV-DO SINR level.
300  *
301  * Since: 1.0
302  */
303 typedef enum { /*< since=1.0 >*/
304     QMI_NAS_EVDO_SINR_LEVEL_0 = 0,
305     QMI_NAS_EVDO_SINR_LEVEL_1 = 1,
306     QMI_NAS_EVDO_SINR_LEVEL_2 = 2,
307     QMI_NAS_EVDO_SINR_LEVEL_3 = 3,
308     QMI_NAS_EVDO_SINR_LEVEL_4 = 4,
309     QMI_NAS_EVDO_SINR_LEVEL_5 = 5,
310     QMI_NAS_EVDO_SINR_LEVEL_6 = 6,
311     QMI_NAS_EVDO_SINR_LEVEL_7 = 7,
312     QMI_NAS_EVDO_SINR_LEVEL_8 = 8
313 } QmiNasEvdoSinrLevel;
314 
315 /*****************************************************************************/
316 /* Helper enums for the 'QMI NAS Get Signal Strength' request/response */
317 
318 /**
319  * QmiNasSignalStrengthRequest:
320  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_NONE: None.
321  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_RSSI: Request RSSI information.
322  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_ECIO: Request ECIO information.
323  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_IO: Request IO information.
324  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_SINR: Request SINR information.
325  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_ERROR_RATE: Request error rate information.
326  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_RSRQ: Request RSRQ information.
327  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_LTE_SNR: Request LTE SNR information.
328  * @QMI_NAS_SIGNAL_STRENGTH_REQUEST_LTE_RSRP: Request LTE RSRP information.
329  *
330  * Extra information to request when gathering Signal Strength.
331  *
332  * Since: 1.0
333  */
334 typedef enum { /*< since=1.0 >*/
335     QMI_NAS_SIGNAL_STRENGTH_REQUEST_NONE       = 0,
336     QMI_NAS_SIGNAL_STRENGTH_REQUEST_RSSI       = 1 << 0,
337     QMI_NAS_SIGNAL_STRENGTH_REQUEST_ECIO       = 1 << 1,
338     QMI_NAS_SIGNAL_STRENGTH_REQUEST_IO         = 1 << 2,
339     QMI_NAS_SIGNAL_STRENGTH_REQUEST_SINR       = 1 << 3,
340     QMI_NAS_SIGNAL_STRENGTH_REQUEST_ERROR_RATE = 1 << 4,
341     QMI_NAS_SIGNAL_STRENGTH_REQUEST_RSRQ       = 1 << 5,
342     QMI_NAS_SIGNAL_STRENGTH_REQUEST_LTE_SNR    = 1 << 6,
343     QMI_NAS_SIGNAL_STRENGTH_REQUEST_LTE_RSRP   = 1 << 7
344 } QmiNasSignalStrengthRequest;
345 
346 /*****************************************************************************/
347 /* Helper enums for the 'QMI NAS Network Scan' request/response */
348 
349 /**
350  * QmiNasNetworkScanType:
351  * @QMI_NAS_NETWORK_SCAN_TYPE_GSM: GSM network.
352  * @QMI_NAS_NETWORK_SCAN_TYPE_UMTS: UMTS network.
353  * @QMI_NAS_NETWORK_SCAN_TYPE_LTE: LTE network.
354  * @QMI_NAS_NETWORK_SCAN_TYPE_TD_SCDMA: TD-SCDMA network.
355  *
356  * Flags to use when specifying which networks to scan.
357  *
358  * Since: 1.0
359  */
360 typedef enum { /*< since=1.0 >*/
361     QMI_NAS_NETWORK_SCAN_TYPE_GSM      = 1 << 0,
362     QMI_NAS_NETWORK_SCAN_TYPE_UMTS     = 1 << 1,
363     QMI_NAS_NETWORK_SCAN_TYPE_LTE      = 1 << 2,
364     QMI_NAS_NETWORK_SCAN_TYPE_TD_SCDMA = 1 << 3
365 } QmiNasNetworkScanType;
366 
367 /**
368  * QmiNasNetworkScanResult:
369  * @QMI_NAS_NETWORK_SCAN_RESULT_SUCCESS: Success.
370  * @QMI_NAS_NETWORK_SCAN_RESULT_ABORT: Abort.
371  * @QMI_NAS_NETWORK_SCAN_RESULT_RADIO_LINK_FAILURE: Radio link failure.
372  *
373  * Network scan result.
374  *
375  * Since: 1.24
376  */
377 typedef enum { /*< since=1.24 >*/
378     QMI_NAS_NETWORK_SCAN_RESULT_SUCCESS            = 0,
379     QMI_NAS_NETWORK_SCAN_RESULT_ABORT              = 1,
380     QMI_NAS_NETWORK_SCAN_RESULT_RADIO_LINK_FAILURE = 2,
381 } QmiNasNetworkScanResult;
382 
383 /**
384  * QmiNasNetworkStatus:
385  * @QMI_NAS_NETWORK_STATUS_CURRENT_SERVING: Network is in use, current serving.
386  * @QMI_NAS_NETWORK_STATUS_AVAILABLE: Network is vailable.
387  * @QMI_NAS_NETWORK_STATUS_HOME: Network is home network.
388  * @QMI_NAS_NETWORK_STATUS_ROAMING: Network is a roaming network.
389  * @QMI_NAS_NETWORK_STATUS_FORBIDDEN: Network is forbidden.
390  * @QMI_NAS_NETWORK_STATUS_NOT_FORBIDDEN: Network is not forbidden.
391  * @QMI_NAS_NETWORK_STATUS_PREFERRED: Network is preferred.
392  * @QMI_NAS_NETWORK_STATUS_NOT_PREFERRED: Network is not preferred.
393  *
394  * Flags to specify the status of a given network.
395  *
396  * Since: 1.0
397  */
398 typedef enum { /*< since=1.0 >*/
399     QMI_NAS_NETWORK_STATUS_CURRENT_SERVING = 1 << 0,
400     QMI_NAS_NETWORK_STATUS_AVAILABLE       = 1 << 1,
401     QMI_NAS_NETWORK_STATUS_HOME            = 1 << 2,
402     QMI_NAS_NETWORK_STATUS_ROAMING         = 1 << 3,
403     QMI_NAS_NETWORK_STATUS_FORBIDDEN       = 1 << 4,
404     QMI_NAS_NETWORK_STATUS_NOT_FORBIDDEN   = 1 << 5,
405     QMI_NAS_NETWORK_STATUS_PREFERRED       = 1 << 6,
406     QMI_NAS_NETWORK_STATUS_NOT_PREFERRED   = 1 << 7
407 } QmiNasNetworkStatus;
408 
409 /*****************************************************************************/
410 /* Helper enums for the 'QMI NAS Initiate Network Register' request/response */
411 
412 /**
413  * QmiNasNetworkRegisterType:
414  * @QMI_NAS_NETWORK_REGISTER_TYPE_AUTOMATIC: Automatic network registration.
415  * @QMI_NAS_NETWORK_REGISTER_TYPE_MANUAL: Manual network registration.
416  *
417  * Type of network registration.
418  *
419  * Since: 1.0
420  */
421 typedef enum { /*< since=1.0 >*/
422     QMI_NAS_NETWORK_REGISTER_TYPE_AUTOMATIC = 0x01,
423     QMI_NAS_NETWORK_REGISTER_TYPE_MANUAL    = 0x02
424 } QmiNasNetworkRegisterType;
425 
426 /*****************************************************************************/
427 /* Helper enums for the 'QMI NAS Attach Detach' request/response */
428 
429 /**
430  * QmiNasPsAttachAction:
431  * @QMI_NAS_PS_ATTACH_ACTION_ATTACH: Attach the PS domain.
432  * @QMI_NAS_PS_ATTACH_ACTION_DETACH: Detach the PS domain.
433  *
434  * Packet Switched domain attach/detach action.
435  *
436  * Since: 1.20
437  */
438 typedef enum { /*< since=1.20 >*/
439     QMI_NAS_PS_ATTACH_ACTION_ATTACH = 0x01,
440     QMI_NAS_PS_ATTACH_ACTION_DETACH = 0x02
441 } QmiNasPsAttachAction;
442 
443 /*****************************************************************************/
444 /* Helper enums for the 'QMI NAS Get Serving System' request/response */
445 
446 /**
447  * QmiNasRegistrationState:
448  * @QMI_NAS_REGISTRATION_STATE_NOT_REGISTERED: Not registered.
449  * @QMI_NAS_REGISTRATION_STATE_REGISTERED: Registered.
450  * @QMI_NAS_REGISTRATION_STATE_NOT_REGISTERED_SEARCHING: Searching.
451  * @QMI_NAS_REGISTRATION_STATE_REGISTRATION_DENIED: Registration denied.
452  * @QMI_NAS_REGISTRATION_STATE_UNKNOWN: Unknown.
453  *
454  * Status of the network registration.
455  *
456  * Since: 1.0
457  */
458 typedef enum { /*< since=1.0 >*/
459     QMI_NAS_REGISTRATION_STATE_NOT_REGISTERED           = 0x00,
460     QMI_NAS_REGISTRATION_STATE_REGISTERED               = 0x01,
461     QMI_NAS_REGISTRATION_STATE_NOT_REGISTERED_SEARCHING = 0x02,
462     QMI_NAS_REGISTRATION_STATE_REGISTRATION_DENIED      = 0x03,
463     QMI_NAS_REGISTRATION_STATE_UNKNOWN                  = 0x04
464 } QmiNasRegistrationState;
465 
466 /**
467  * QmiNasAttachState:
468  * @QMI_NAS_ATTACH_STATE_UNKNOWN: Unknown attach state.
469  * @QMI_NAS_ATTACH_STATE_ATTACHED: Attached.
470  * @QMI_NAS_ATTACH_STATE_DETACHED: Detached.
471  *
472  * Domain attach state.
473  *
474  * Since: 1.0
475  */
476 typedef enum { /*< since=1.0 >*/
477     QMI_NAS_ATTACH_STATE_UNKNOWN  = 0x00,
478     QMI_NAS_ATTACH_STATE_ATTACHED = 0x01,
479     QMI_NAS_ATTACH_STATE_DETACHED = 0x02,
480 } QmiNasAttachState;
481 
482 /**
483  * QmiNasNetworkType:
484  * @QMI_NAS_NETWORK_TYPE_UNKNOWN: Unknown.
485  * @QMI_NAS_NETWORK_TYPE_3GPP2: 3GPP2 network.
486  * @QMI_NAS_NETWORK_TYPE_3GPP: 3GPP network.
487  *
488  * Type of network.
489  *
490  * Since: 1.0
491  */
492 typedef enum { /*< since=1.0 >*/
493     QMI_NAS_NETWORK_TYPE_UNKNOWN = 0x00,
494     QMI_NAS_NETWORK_TYPE_3GPP2   = 0x01,
495     QMI_NAS_NETWORK_TYPE_3GPP    = 0x02,
496 } QmiNasNetworkType;
497 
498 /**
499  * QmiNasRoamingIndicatorStatus:
500  * @QMI_NAS_ROAMING_INDICATOR_STATUS_ON: Roaming.
501  * @QMI_NAS_ROAMING_INDICATOR_STATUS_OFF: Home.
502  *
503  * Status of the roaming indication.
504  *
505  * Since: 1.0
506  */
507 typedef enum { /*< since=1.0 >*/
508     QMI_NAS_ROAMING_INDICATOR_STATUS_ON  = 0x00,
509     QMI_NAS_ROAMING_INDICATOR_STATUS_OFF = 0x01,
510     /* next values only for 3GPP2 */
511 } QmiNasRoamingIndicatorStatus;
512 
513 /**
514  * QmiNasDataCapability:
515  * @QMI_NAS_DATA_CAPABILITY_NONE: None or unknown.
516  * @QMI_NAS_DATA_CAPABILITY_GPRS: GPRS.
517  * @QMI_NAS_DATA_CAPABILITY_EDGE: EDGE.
518  * @QMI_NAS_DATA_CAPABILITY_HSDPA: HSDPA.
519  * @QMI_NAS_DATA_CAPABILITY_HSUPA: HSUPA.
520  * @QMI_NAS_DATA_CAPABILITY_WCDMA: WCDMA.
521  * @QMI_NAS_DATA_CAPABILITY_CDMA: CDMA.
522  * @QMI_NAS_DATA_CAPABILITY_EVDO_REV_0: EV-DO revision 0.
523  * @QMI_NAS_DATA_CAPABILITY_EVDO_REV_A: EV-DO revision A.
524  * @QMI_NAS_DATA_CAPABILITY_GSM: GSM.
525  * @QMI_NAS_DATA_CAPABILITY_EVDO_REV_B: EV-DO revision B.
526  * @QMI_NAS_DATA_CAPABILITY_LTE: LTE.
527  * @QMI_NAS_DATA_CAPABILITY_HSDPA_PLUS: HSDPA+.
528  * @QMI_NAS_DATA_CAPABILITY_DC_HSDPA_PLUS: DC-HSDPA+.
529  *
530  * Data capability of the network.
531  *
532  * Since: 1.0
533  */
534 typedef enum { /*< since=1.0 >*/
535     QMI_NAS_DATA_CAPABILITY_NONE          = 0x00,
536     QMI_NAS_DATA_CAPABILITY_GPRS          = 0x01,
537     QMI_NAS_DATA_CAPABILITY_EDGE          = 0x02,
538     QMI_NAS_DATA_CAPABILITY_HSDPA         = 0x03,
539     QMI_NAS_DATA_CAPABILITY_HSUPA         = 0x04,
540     QMI_NAS_DATA_CAPABILITY_WCDMA         = 0x05,
541     QMI_NAS_DATA_CAPABILITY_CDMA          = 0x06,
542     QMI_NAS_DATA_CAPABILITY_EVDO_REV_0    = 0x07,
543     QMI_NAS_DATA_CAPABILITY_EVDO_REV_A    = 0x08,
544     QMI_NAS_DATA_CAPABILITY_GSM           = 0x09,
545     QMI_NAS_DATA_CAPABILITY_EVDO_REV_B    = 0x0A,
546     QMI_NAS_DATA_CAPABILITY_LTE           = 0x0B,
547     QMI_NAS_DATA_CAPABILITY_HSDPA_PLUS    = 0x0C,
548     QMI_NAS_DATA_CAPABILITY_DC_HSDPA_PLUS = 0x0D
549 } QmiNasDataCapability;
550 
551 /**
552  * QmiNasServiceStatus:
553  * @QMI_NAS_SERVICE_STATUS_NONE: No service.
554  * @QMI_NAS_SERVICE_STATUS_LIMITED: Limited service.
555  * @QMI_NAS_SERVICE_STATUS_AVAILABLE: Service available.
556  * @QMI_NAS_SERVICE_STATUS_LIMITED_REGIONAL: Limited regional service.
557  * @QMI_NAS_SERVICE_STATUS_POWER_SAVE: Device in power save mode.
558  *
559  * Status of the service.
560  *
561  * Since: 1.0
562  */
563 typedef enum { /*< since=1.0 >*/
564     QMI_NAS_SERVICE_STATUS_NONE             = 0x00,
565     QMI_NAS_SERVICE_STATUS_LIMITED          = 0x01,
566     QMI_NAS_SERVICE_STATUS_AVAILABLE        = 0x02,
567     QMI_NAS_SERVICE_STATUS_LIMITED_REGIONAL = 0x03,
568     QMI_NAS_SERVICE_STATUS_POWER_SAVE       = 0x04
569 } QmiNasServiceStatus;
570 
571 /**
572  * QmiNasHdrPersonality:
573  * @QMI_NAS_HDR_PERSONALITY_UNKNOWN: Unknown.
574  * @QMI_NAS_HDR_PERSONALITY_HRPD: HRPD.
575  * @QMI_NAS_HDR_PERSONALITY_EHRPD: eHRPD.
576  *
577  * HDR personality type.
578  *
579  * Since: 1.0
580  */
581 typedef enum { /*< since=1.0 >*/
582     QMI_NAS_HDR_PERSONALITY_UNKNOWN = 0x00,
583     QMI_NAS_HDR_PERSONALITY_HRPD    = 0x01,
584     QMI_NAS_HDR_PERSONALITY_EHRPD   = 0x02,
585 } QmiNasHdrPersonality;
586 
587 /**
588  * QmiNasCallBarringStatus:
589  * @QMI_NAS_CALL_BARRING_STATUS_NORMAL_ONLY: Normal calls only.
590  * @QMI_NAS_CALL_BARRING_STATUS_EMERGENCY_ONLY: Emergency calls only.
591  * @QMI_NAS_CALL_BARRING_STATUS_NO_CALLS: No calls allowed.
592  * @QMI_NAS_CALL_BARRING_STATUS_ALL_CALLS: All calls allowed.
593  * @QMI_NAS_CALL_BARRING_STATUS_UNKNOWN: Unknown.
594  *
595  * Status of the call barring functionality.
596  *
597  * Since: 1.0
598  */
599 typedef enum { /*< since=1.0 >*/
600     QMI_NAS_CALL_BARRING_STATUS_NORMAL_ONLY    = 0x00,
601     QMI_NAS_CALL_BARRING_STATUS_EMERGENCY_ONLY = 0x01,
602     QMI_NAS_CALL_BARRING_STATUS_NO_CALLS       = 0x02,
603     QMI_NAS_CALL_BARRING_STATUS_ALL_CALLS      = 0x03,
604     QMI_NAS_CALL_BARRING_STATUS_UNKNOWN        = -1
605 } QmiNasCallBarringStatus;
606 
607 /*****************************************************************************/
608 /* Helper enums for the 'QMI NAS Get Home Network' request/response */
609 
610 /**
611  * QmiNasNetworkDescriptionDisplay:
612  * @QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_NO: Don't display.
613  * @QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_YES: Display.
614  * @QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_UNKNOWN: Unknown.
615  *
616  * Setup to define whether the network description should be displayed.
617  *
618  * Since: 1.0
619  */
620 typedef enum { /*< since=1.0 >*/
621     QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_NO      = 0x00,
622     QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_YES     = 0x01,
623     QMI_NAS_NETWORK_DESCRIPTION_DISPLAY_UNKNOWN = 0xFF
624 } QmiNasNetworkDescriptionDisplay;
625 
626 /**
627  * QmiNasNetworkDescriptionEncoding:
628  * @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNSPECIFIED: Unspecified.
629  * @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_ASCII7: ASCII-7.
630  * @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNICODE: Unicode.
631  * @QMI_NAS_NETWORK_DESCRIPTION_ENCODING_GSM: GSM 7-bit.
632  *
633  * Type of encoding used in the network description.
634  *
635  * Since: 1.0
636  */
637 typedef enum { /*< since=1.0 >*/
638     QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNSPECIFIED = 0x00,
639     QMI_NAS_NETWORK_DESCRIPTION_ENCODING_ASCII7      = 0x01,
640     QMI_NAS_NETWORK_DESCRIPTION_ENCODING_UNICODE     = 0x04,
641     QMI_NAS_NETWORK_DESCRIPTION_ENCODING_GSM         = 0x09
642 } QmiNasNetworkDescriptionEncoding;
643 
644 /*****************************************************************************/
645 /* Helper enums for the 'QMI NAS Get Preferred Networks' request/response */
646 
647 /**
648  * QmiNasPlmnAccessTechnologyIdentifier:
649  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_UNSPECIFIED: Unspecified.
650  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_GSM_COMPACT: GSM Compact.
651  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_GSM: GSM.
652  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_NGRAN: NG-RAN.
653  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_EUTRAN: E-UTRAN.
654  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_UTRAN: UTRAN.
655  * @QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_ALL: All technologies.
656  *
657  * Preferred networks access technology identifier as specified in
658  * ETSI TS 131 102, chapter 4.2.5.
659  *
660  * Since: 1.30
661  */
662 typedef enum { /*< since=1.30 >*/
663     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_UNSPECIFIED = 0x0000,
664     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_GSM_COMPACT = 1 << 6,
665     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_GSM         = 1 << 7,
666     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_NGRAN       = 1 << 11,
667     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_EUTRAN      = 1 << 14,
668     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_UTRAN       = 1 << 15,
669     QMI_NAS_PLMN_ACCESS_TECHNOLOGY_IDENTIFIER_ALL         = 0xFFFF
670 } QmiNasPlmnAccessTechnologyIdentifier;
671 
672 /*****************************************************************************/
673 /* Helper enums for the 'QMI NAS Get Technology Preference' request/response */
674 
675 /**
676  * QmiNasRadioTechnologyPreference:
677  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_AUTO: Automatic selection.
678  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_3GPP2: 3GPP2 technology.
679  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_3GPP: 3GPP technology.
680  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_AMPS_OR_GSM: AMPS if 3GPP2, GSM if 3GPP.
681  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_CDMA_OR_WCDMA: CDMA if 3GPP2, WCDMA if 3GPP.
682  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_HDR: CDMA EV-DO.
683  * @QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_LTE: LTE.
684  *
685  * Flags to specify the radio technology preference.
686  *
687  * Since: 1.0
688  */
689 typedef enum { /*< since=1.0 >*/
690     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_AUTO          = 0,
691     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_3GPP2         = 1 << 0,
692     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_3GPP          = 1 << 1,
693     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_AMPS_OR_GSM   = 1 << 2,
694     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_CDMA_OR_WCDMA = 1 << 3,
695     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_HDR           = 1 << 4,
696     QMI_NAS_RADIO_TECHNOLOGY_PREFERENCE_LTE           = 1 << 5
697 } QmiNasRadioTechnologyPreference;
698 
699 /**
700  * QmiNasPreferenceDuration:
701  * @QMI_NAS_PREFERENCE_DURATION_PERMANENT: Permanent.
702  * @QMI_NAS_PREFERENCE_DURATION_POWER_CYCLE: Until the next power cycle.
703  * @QMI_NAS_PREFERENCE_DURATION_ONE_CALL: Until end of call.
704  * @QMI_NAS_PREFERENCE_DURATION_ONE_CALL_OR_TIME: Until end of call or a specified time.
705  * @QMI_NAS_PREFERENCE_DURATION_INTERNAL_ONE_CALL_1: Internal reason 1, one call.
706  * @QMI_NAS_PREFERENCE_DURATION_INTERNAL_ONE_CALL_2: Internal reason 2, one call.
707  * @QMI_NAS_PREFERENCE_DURATION_INTERNAL_ONE_CALL_3: Internal reason 3, one call.
708  *
709  * Duration of the preference setting.
710  *
711  * Since: 1.0
712  */
713 typedef enum { /*< since=1.0 >*/
714     QMI_NAS_PREFERENCE_DURATION_PERMANENT           = 0x00,
715     QMI_NAS_PREFERENCE_DURATION_POWER_CYCLE         = 0x01,
716     QMI_NAS_PREFERENCE_DURATION_ONE_CALL            = 0x02,
717     QMI_NAS_PREFERENCE_DURATION_ONE_CALL_OR_TIME    = 0x03,
718     QMI_NAS_PREFERENCE_DURATION_INTERNAL_ONE_CALL_1 = 0x04,
719     QMI_NAS_PREFERENCE_DURATION_INTERNAL_ONE_CALL_2 = 0x05,
720     QMI_NAS_PREFERENCE_DURATION_INTERNAL_ONE_CALL_3 = 0x06
721 } QmiNasPreferenceDuration;
722 
723 /*****************************************************************************/
724 /* Helper enums for the 'QMI NAS Get/Set System Selection Preference'
725  * requests/responses */
726 
727 /**
728  * QmiNasRatModePreference:
729  * @QMI_NAS_RAT_MODE_PREFERENCE_CDMA_1X: CDMA2000 1X.
730  * @QMI_NAS_RAT_MODE_PREFERENCE_CDMA_1XEVDO: CDMA2000 HRPD (1xEV-DO).
731  * @QMI_NAS_RAT_MODE_PREFERENCE_GSM: GSM.
732  * @QMI_NAS_RAT_MODE_PREFERENCE_UMTS: UMTS.
733  * @QMI_NAS_RAT_MODE_PREFERENCE_LTE: LTE.
734  * @QMI_NAS_RAT_MODE_PREFERENCE_TD_SCDMA: TD-SCDMA.
735  * @QMI_NAS_RAT_MODE_PREFERENCE_5GNR: 5GNR. Since 1.26.
736  *
737  * Flags specifying radio access technology mode preference.
738  *
739  * Since: 1.0
740  */
741 typedef enum { /*< since=1.0 >*/
742     QMI_NAS_RAT_MODE_PREFERENCE_CDMA_1X     = 1 << 0,
743     QMI_NAS_RAT_MODE_PREFERENCE_CDMA_1XEVDO = 1 << 1,
744     QMI_NAS_RAT_MODE_PREFERENCE_GSM         = 1 << 2,
745     QMI_NAS_RAT_MODE_PREFERENCE_UMTS        = 1 << 3,
746     QMI_NAS_RAT_MODE_PREFERENCE_LTE         = 1 << 4,
747     QMI_NAS_RAT_MODE_PREFERENCE_TD_SCDMA    = 1 << 5,
748     QMI_NAS_RAT_MODE_PREFERENCE_5GNR        = 1 << 6,
749 } QmiNasRatModePreference;
750 
751 /**
752  * QmiNasCdmaPrlPreference:
753  * @QMI_NAS_CDMA_PRL_PREFERENCE_A_SIDE_ONLY: System A only.
754  * @QMI_NAS_CDMA_PRL_PREFERENCE_B_SIDE_ONLY: System B only.
755  * @QMI_NAS_CDMA_PRL_PREFERENCE_ANY: Any system.
756  *
757  * Flags specifying the preference when using CDMA Band Class 0.
758  *
759  * Since: 1.0
760  */
761 typedef enum { /*< since=1.0 >*/
762     QMI_NAS_CDMA_PRL_PREFERENCE_A_SIDE_ONLY = 0x0001,
763     QMI_NAS_CDMA_PRL_PREFERENCE_B_SIDE_ONLY = 0x0002,
764     QMI_NAS_CDMA_PRL_PREFERENCE_ANY         = 0x3FFF
765 } QmiNasCdmaPrlPreference;
766 
767 /**
768  * QmiNasRoamingPreference:
769  * @QMI_NAS_ROAMING_PREFERENCE_OFF: Only non-roaming networks.
770  * @QMI_NAS_ROAMING_PREFERENCE_NOT_OFF: Only roaming networks.
771  * @QMI_NAS_ROAMING_PREFERENCE_NOT_FLASHING: Only non-roaming networks or not flashing.
772  * @QMI_NAS_ROAMING_PREFERENCE_ANY: Don't filter by roaming when acquiring networks.
773  *
774  * Roaming preference.
775  *
776  * Since: 1.0
777  */
778 typedef enum { /*< since=1.0 >*/
779     QMI_NAS_ROAMING_PREFERENCE_OFF          = 0x01,
780     QMI_NAS_ROAMING_PREFERENCE_NOT_OFF      = 0x02,
781     QMI_NAS_ROAMING_PREFERENCE_NOT_FLASHING = 0x03,
782     QMI_NAS_ROAMING_PREFERENCE_ANY          = 0xFF
783 } QmiNasRoamingPreference;
784 
785 /**
786  * QmiNasNetworkSelectionPreference:
787  * @QMI_NAS_NETWORK_SELECTION_PREFERENCE_AUTOMATIC: Automatic.
788  * @QMI_NAS_NETWORK_SELECTION_PREFERENCE_MANUAL: Manual.
789  *
790  * Network selection preference.
791  *
792  * Since: 1.0
793  */
794 typedef enum { /*< since=1.0 >*/
795     QMI_NAS_NETWORK_SELECTION_PREFERENCE_AUTOMATIC = 0x00,
796     QMI_NAS_NETWORK_SELECTION_PREFERENCE_MANUAL    = 0x01
797 } QmiNasNetworkSelectionPreference;
798 
799 /**
800  * QmiNasChangeDuration:
801  * @QMI_NAS_CHANGE_DURATION_PERMANENT: Permanent.
802  * @QMI_NAS_CHANGE_DURATION_POWER_CYCLE: Until the next power cycle.
803  *
804  * Duration of the change setting.
805  *
806  * Since: 1.0
807  */
808 typedef enum { /*< since=1.0 >*/
809     QMI_NAS_CHANGE_DURATION_POWER_CYCLE = 0x00,
810     QMI_NAS_CHANGE_DURATION_PERMANENT   = 0x01
811 } QmiNasChangeDuration;
812 
813 /**
814  * QmiNasServiceDomainPreference:
815  * @QMI_NAS_SERVICE_DOMAIN_PREFERENCE_CS_ONLY: Circuit-switched only.
816  * @QMI_NAS_SERVICE_DOMAIN_PREFERENCE_PS_ONLY: Packet-switched only.
817  * @QMI_NAS_SERVICE_DOMAIN_PREFERENCE_CS_PS: Circuit-switched and packet-switched.
818  * @QMI_NAS_SERVICE_DOMAIN_PREFERENCE_PS_ATTACH: Packet-switched attach.
819  * @QMI_NAS_SERVICE_DOMAIN_PREFERENCE_PS_DETACH:Packet-switched dettach.
820  *
821  * Service domain preference.
822  *
823  * Since: 1.0
824  */
825 typedef enum { /*< since=1.0 >*/
826     QMI_NAS_SERVICE_DOMAIN_PREFERENCE_CS_ONLY   = 0x00,
827     QMI_NAS_SERVICE_DOMAIN_PREFERENCE_PS_ONLY   = 0x01,
828     QMI_NAS_SERVICE_DOMAIN_PREFERENCE_CS_PS     = 0x02,
829     QMI_NAS_SERVICE_DOMAIN_PREFERENCE_PS_ATTACH = 0x03,
830     QMI_NAS_SERVICE_DOMAIN_PREFERENCE_PS_DETACH = 0x04,
831 } QmiNasServiceDomainPreference;
832 
833 /**
834  * QmiNasGsmWcdmaAcquisitionOrderPreference:
835  * @QMI_NAS_GSM_WCDMA_ACQUISITION_ORDER_PREFERENCE_AUTOMATIC: Automatic.
836  * @QMI_NAS_GSM_WCDMA_ACQUISITION_ORDER_PREFERENCE_GSM: GSM first, then WCDMA.
837  * @QMI_NAS_GSM_WCDMA_ACQUISITION_ORDER_PREFERENCE_WCDMA: WCDMA first, then GSM.
838  *
839  * GSM/WCDMA acquisition order preference.
840  *
841  * Since: 1.0
842  */
843 typedef enum { /*< since=1.0 >*/
844     QMI_NAS_GSM_WCDMA_ACQUISITION_ORDER_PREFERENCE_AUTOMATIC = 0x00,
845     QMI_NAS_GSM_WCDMA_ACQUISITION_ORDER_PREFERENCE_GSM       = 0x01,
846     QMI_NAS_GSM_WCDMA_ACQUISITION_ORDER_PREFERENCE_WCDMA     = 0x02
847 } QmiNasGsmWcdmaAcquisitionOrderPreference;
848 
849 /**
850  * QmiNasTdScdmaBandPreference:
851  * @QMI_NAS_TD_SCDMA_BAND_PREFERENCE_A: Band A.
852  * @QMI_NAS_TD_SCDMA_BAND_PREFERENCE_B: Band B.
853  * @QMI_NAS_TD_SCDMA_BAND_PREFERENCE_C: Band C.
854  * @QMI_NAS_TD_SCDMA_BAND_PREFERENCE_D: Band D.
855  * @QMI_NAS_TD_SCDMA_BAND_PREFERENCE_E: Band E.
856  * @QMI_NAS_TD_SCDMA_BAND_PREFERENCE_F: Band F.
857  *
858  * Flags to specify TD-SCDMA-specific frequency band preferences.
859  *
860  * Since: 1.0
861  */
862 typedef enum { /*< since=1.0 >*/
863     QMI_NAS_TD_SCDMA_BAND_PREFERENCE_A = 1 << 0,
864     QMI_NAS_TD_SCDMA_BAND_PREFERENCE_B = 1 << 1,
865     QMI_NAS_TD_SCDMA_BAND_PREFERENCE_C = 1 << 2,
866     QMI_NAS_TD_SCDMA_BAND_PREFERENCE_D = 1 << 3,
867     QMI_NAS_TD_SCDMA_BAND_PREFERENCE_E = 1 << 4,
868     QMI_NAS_TD_SCDMA_BAND_PREFERENCE_F = 1 << 5
869 } QmiNasTdScdmaBandPreference;
870 
871 /**
872  * QmiNasVoiceDomainPreference:
873  * @QMI_NAS_VOICE_DOMAIN_PREFERENCE_CS_ONLY: Circuit-switched voice only
874  * @QMI_NAS_VOICE_DOMAIN_PREFERENCE_PS_ONLY: Packet-switched voice only.
875  * @QMI_NAS_VOICE_DOMAIN_PREFERENCE_CS_PREFERRED: Circuit-switched voice is preferred.
876  * @QMI_NAS_VOICE_DOMAIN_PREFERENCE_PS_PREFERRED: Packet-switched voice is preferred.
877  *
878  * Voice domain preference.
879  *
880  * Since: 1.24
881  */
882 typedef enum { /*< since=1.24 >*/
883     QMI_NAS_VOICE_DOMAIN_PREFERENCE_CS_ONLY      = 0x00,
884     QMI_NAS_VOICE_DOMAIN_PREFERENCE_PS_ONLY      = 0x01,
885     QMI_NAS_VOICE_DOMAIN_PREFERENCE_CS_PREFERRED = 0x02,
886     QMI_NAS_VOICE_DOMAIN_PREFERENCE_PS_PREFERRED = 0x03,
887 } QmiNasVoiceDomainPreference;
888 
889 /*****************************************************************************/
890 /* Helper enums for the 'QMI NAS Get System Info' request/response */
891 
892 /**
893  * QmiNasNetworkSelectionRegistrationRestriction:
894  * @QMI_NAS_NETWORK_SELECTION_REGISTRATION_RESTRICTION_UNRESTRICTED: Device follows the normal registration process.
895  * @QMI_NAS_NETWORK_SELECTION_REGISTRATION_RESTRICTION_CAMPED_ONLY: Device camps on the network according to its provisioning, but does not register.
896  * @QMI_NAS_NETWORK_SELECTION_REGISTRATION_RESTRICTION_LIMITED: Device selects the network for limited service.
897  *
898  * Registration restriction.
899  *
900  * Since: 1.24
901  */
902 typedef enum { /*< since=1.24 >*/
903     QMI_NAS_NETWORK_SELECTION_REGISTRATION_RESTRICTION_UNRESTRICTED = 0x00,
904     QMI_NAS_NETWORK_SELECTION_REGISTRATION_RESTRICTION_CAMPED_ONLY  = 0x01,
905     QMI_NAS_NETWORK_SELECTION_REGISTRATION_RESTRICTION_LIMITED      = 0x02,
906 } QmiNasNetworkSelectionRegistrationRestriction;
907 
908 /**
909  * QmiNasLteRegistrationDomain:
910  * @QMI_NAS_LTE_REGISTRATION_DOMAIN_NOT_APPLICABLE: Not applicable since the UE is not in "Camp Only" mode.
911  * @QMI_NAS_LTE_REGISTRATION_DOMAIN_CS_ONLY: UE is in "Camp Only" mode and the PLMN can provide CS service only.
912  * @QMI_NAS_LTE_REGISTRATION_DOMAIN_PS_ONLY: UE is in "Camp Only" mode and the PLMN can provide PS service only.
913  * @QMI_NAS_LTE_REGISTRATION_DOMAIN_CS_PS: UE is in "Camp Only" mode and the PLMN can provide CS and PS service.
914  * @QMI_NAS_LTE_REGISTRATION_DOMAIN_LIMITED_SERVICE: UE is in "Camp Only" mode but the PLMN cannot provide any service.
915  *
916  * LTE registration domain.
917  *
918  * Since: 1.24
919  */
920 typedef enum { /*< since=1.24 >*/
921     QMI_NAS_LTE_REGISTRATION_DOMAIN_NOT_APPLICABLE  = 0x00,
922     QMI_NAS_LTE_REGISTRATION_DOMAIN_CS_ONLY         = 0x01,
923     QMI_NAS_LTE_REGISTRATION_DOMAIN_PS_ONLY         = 0x02,
924     QMI_NAS_LTE_REGISTRATION_DOMAIN_CS_PS           = 0x03,
925     QMI_NAS_LTE_REGISTRATION_DOMAIN_LIMITED_SERVICE = 0x04,
926 } QmiNasLteRegistrationDomain;
927 
928 /**
929  * QmiNasRoamingStatus:
930  * @QMI_NAS_ROAMING_STATUS_OFF: Off.
931  * @QMI_NAS_ROAMING_STATUS_ON: On.
932  * @QMI_NAS_ROAMING_STATUS_BLINK: Blinking.
933  * @QMI_NAS_ROAMING_STATUS_OUT_OF_NEIGHBORHOOD: Out of neighborhood.
934  * @QMI_NAS_ROAMING_STATUS_OUT_OF_BUILDING: Out of building.
935  * @QMI_NAS_ROAMING_STATUS_PREFERRED_SYSTEM: Preferred system.
936  * @QMI_NAS_ROAMING_STATUS_AVAILABLE_SYSTEM: Available system.
937  * @QMI_NAS_ROAMING_STATUS_ALLIANCE_PARTNER: Alliance partner.
938  * @QMI_NAS_ROAMING_STATUS_PREMIUM_PARTNER: Premium partner.
939  * @QMI_NAS_ROAMING_STATUS_FULL_SERVICE: Full service.
940  * @QMI_NAS_ROAMING_STATUS_PARTIAL_SERVICE: Partial service.
941  * @QMI_NAS_ROAMING_STATUS_BANNER_ON: Banner on.
942  * @QMI_NAS_ROAMING_STATUS_BANNER_OFF: Banner off.
943  *
944  * Roaming status.
945  *
946  * Since: 1.0
947  */
948 typedef enum { /*< since=1.0 >*/
949     QMI_NAS_ROAMING_STATUS_OFF                 = 0x00,
950     QMI_NAS_ROAMING_STATUS_ON                  = 0x01,
951     /* Next ones only for 3GPP2 */
952     QMI_NAS_ROAMING_STATUS_BLINK               = 0x02,
953     QMI_NAS_ROAMING_STATUS_OUT_OF_NEIGHBORHOOD = 0x03,
954     QMI_NAS_ROAMING_STATUS_OUT_OF_BUILDING     = 0x04,
955     QMI_NAS_ROAMING_STATUS_PREFERRED_SYSTEM    = 0x05,
956     QMI_NAS_ROAMING_STATUS_AVAILABLE_SYSTEM    = 0x06,
957     QMI_NAS_ROAMING_STATUS_ALLIANCE_PARTNER    = 0x07,
958     QMI_NAS_ROAMING_STATUS_PREMIUM_PARTNER     = 0x08,
959     QMI_NAS_ROAMING_STATUS_FULL_SERVICE        = 0x09,
960     QMI_NAS_ROAMING_STATUS_PARTIAL_SERVICE     = 0x0A,
961     QMI_NAS_ROAMING_STATUS_BANNER_ON           = 0x0B,
962     QMI_NAS_ROAMING_STATUS_BANNER_OFF          = 0x0C
963 } QmiNasRoamingStatus;
964 
965 /**
966  * QmiNasLteCellAccessStatus:
967  * @QMI_NAS_CELL_ACCESS_STATUS_NORMAL_ONLY: Access is allowed for normal calls only.
968  * @QMI_NAS_CELL_ACCESS_STATUS_EMERGENCY_ONLY: Access is allowed for emergency calls only.
969  * @QMI_NAS_CELL_ACCESS_STATUS_NO_CALLS: Access is not allowed for any call type.
970  * @QMI_NAS_CELL_ACCESS_STATUS_ALL_CALLS: Access is allowed for all call types.
971  * @QMI_NAS_CELL_ACCESS_STATUS_UNKNOWN: Unknown.
972  *
973  * Cell access status for LTE calls.
974  *
975  * Since: 1.24
976  */
977 typedef enum { /*< since=1.24 >*/
978     QMI_NAS_CELL_ACCESS_STATUS_NORMAL_ONLY    = 0x00,
979     QMI_NAS_CELL_ACCESS_STATUS_EMERGENCY_ONLY = 0x01,
980     QMI_NAS_CELL_ACCESS_STATUS_NO_CALLS       = 0x02,
981     QMI_NAS_CELL_ACCESS_STATUS_ALL_CALLS      = 0x03,
982     QMI_NAS_CELL_ACCESS_STATUS_UNKNOWN        = 0xFF,
983 } QmiNasLteCellAccessStatus;
984 
985 /**
986  * QmiNasHdrProtocolRevision:
987  * @QMI_NAS_HDR_PROTOCOL_REVISION_NONE: None.
988  * @QMI_NAS_HDR_PROTOCOL_REVISION_REL_0: HDR Rel 0.
989  * @QMI_NAS_HDR_PROTOCOL_REVISION_REL_A: HDR Rel A.
990  * @QMI_NAS_HDR_PROTOCOL_REVISION_REL_B: HDR Rel B.
991  *
992  * HDR protocol revision.
993  *
994  * Since: 1.0
995  */
996 typedef enum { /*< since=1.0 >*/
997     QMI_NAS_HDR_PROTOCOL_REVISION_NONE  = 0x00,
998     QMI_NAS_HDR_PROTOCOL_REVISION_REL_0 = 0x01,
999     QMI_NAS_HDR_PROTOCOL_REVISION_REL_A = 0x02,
1000     QMI_NAS_HDR_PROTOCOL_REVISION_REL_B = 0x03
1001 } QmiNasHdrProtocolRevision;
1002 
1003 /**
1004  * QmiNasWcdmaHsService:
1005  * @QMI_NAS_WCDMA_HS_SERVICE_HSDPA_HSUPA_UNSUPPORTED: HSDPA and HSUPA not supported.
1006  * @QMI_NAS_WCDMA_HS_SERVICE_HSDPA_SUPPORTED: HSDPA supported.
1007  * @QMI_NAS_WCDMA_HS_SERVICE_HSUPA_SUPPORTED: HSUPA supported.
1008  * @QMI_NAS_WCDMA_HS_SERVICE_HSDPA_HSUPA_SUPPORTED: HSDPA and HSUPA supported.
1009  * @QMI_NAS_WCDMA_HS_SERVICE_HSDPA_PLUS_SUPPORTED: HSDPA+ supported.
1010  * @QMI_NAS_WCDMA_HS_SERVICE_HSDPA_PLUS_HSUPA_SUPPORTED: HSDPA+ and HSUPA supported.
1011  * @QMI_NAS_WCDMA_HS_SERVICE_DC_HSDPA_PLUS_SUPPORTED: DC-HSDPA+ supported.
1012  * @QMI_NAS_WCDMA_HS_SERVICE_DC_HSDPA_PLUS_HSUPA_SUPPORTED: DC-HSDPA+ and HSUPA supported.
1013  *
1014  * Call status on high speed.
1015  *
1016  * Since: 1.0
1017  */
1018 typedef enum { /*< since=1.0 >*/
1019     QMI_NAS_WCDMA_HS_SERVICE_HSDPA_HSUPA_UNSUPPORTED       = 0x00,
1020     QMI_NAS_WCDMA_HS_SERVICE_HSDPA_SUPPORTED               = 0x01,
1021     QMI_NAS_WCDMA_HS_SERVICE_HSUPA_SUPPORTED               = 0x02,
1022     QMI_NAS_WCDMA_HS_SERVICE_HSDPA_HSUPA_SUPPORTED         = 0x03,
1023     QMI_NAS_WCDMA_HS_SERVICE_HSDPA_PLUS_SUPPORTED          = 0x04,
1024     QMI_NAS_WCDMA_HS_SERVICE_HSDPA_PLUS_HSUPA_SUPPORTED    = 0x05,
1025     QMI_NAS_WCDMA_HS_SERVICE_DC_HSDPA_PLUS_SUPPORTED       = 0x06,
1026     QMI_NAS_WCDMA_HS_SERVICE_DC_HSDPA_PLUS_HSUPA_SUPPORTED = 0x07
1027 } QmiNasWcdmaHsService;
1028 
1029 /**
1030  * QmiNasCellBroadcastCapability:
1031  * @QMI_NAS_CELL_BROADCAST_CAPABILITY_UNKNOWN: Unknown.
1032  * @QMI_NAS_CELL_BROADCAST_CAPABILITY_OFF: Cell broadcast not supported.
1033  * @QMI_NAS_CELL_BROADCAST_CAPABILITY_ON: Cell broadcast supported.
1034  *
1035  * Cell broadcast support.
1036  *
1037  * Since: 1.0
1038  */
1039 typedef enum { /*< since=1.0 >*/
1040     QMI_NAS_CELL_BROADCAST_CAPABILITY_UNKNOWN = 0x00,
1041     QMI_NAS_CELL_BROADCAST_CAPABILITY_OFF     = 0x01,
1042     QMI_NAS_CELL_BROADCAST_CAPABILITY_ON      = 0x02
1043 } QmiNasCellBroadcastCapability;
1044 
1045 /**
1046  * QmiNasSimRejectState:
1047  * @QMI_NAS_SIM_REJECT_STATE_SIM_UNAVAILABLE: SIM not available.
1048  * @QMI_NAS_SIM_REJECT_STATE_SIM_AVAILABLE: SIM available.
1049  * @QMI_NAS_SIM_REJECT_STATE_SIM_CS_INVALID: SIM invalid for circuit-switched connections.
1050  * @QMI_NAS_SIM_REJECT_STATE_SIM_PS_INVALID: SIM invalid for packet-switched connections.
1051  * @QMI_NAS_SIM_REJECT_STATE_SIM_CS_PS_INVALID: SIM invalid for circuit-switched and packet-switched connections.
1052  *
1053  * Reject information of the SIM.
1054  *
1055  * Since: 1.0
1056  */
1057 typedef enum { /*< since=1.0 >*/
1058     QMI_NAS_SIM_REJECT_STATE_SIM_UNAVAILABLE   = 0,
1059     QMI_NAS_SIM_REJECT_STATE_SIM_AVAILABLE     = 1,
1060     QMI_NAS_SIM_REJECT_STATE_SIM_CS_INVALID    = 2,
1061     QMI_NAS_SIM_REJECT_STATE_SIM_PS_INVALID    = 3,
1062     QMI_NAS_SIM_REJECT_STATE_SIM_CS_PS_INVALID = 4
1063 } QmiNasSimRejectState;
1064 
1065 /**
1066  * QmiNasCdmaPilotType:
1067  * @QMI_NAS_CDMA_PILOT_TYPE_ACTIVE: the pilot is part of the active set.
1068  * @QMI_NAS_CDMA_PILOT_TYPE_NEIGHBOR: the pilot is part of the neighbor set.
1069  *
1070  * The pilot set the pilot belongs to.
1071  *
1072  * Since: 1.0
1073  */
1074 typedef enum { /*< since=1.0 >*/
1075     QMI_NAS_CDMA_PILOT_TYPE_ACTIVE   = 0,
1076     QMI_NAS_CDMA_PILOT_TYPE_NEIGHBOR = 1,
1077 } QmiNasCdmaPilotType;
1078 
1079 /**
1080  * QmiNasDayOfWeek:
1081  * @QMI_NAS_DAY_OF_WEEK_MONDAY: Monday
1082  * @QMI_NAS_DAY_OF_WEEK_TUESDAY: Tuesday
1083  * @QMI_NAS_DAY_OF_WEEK_WEDNESDAY: Wednesday
1084  * @QMI_NAS_DAY_OF_WEEK_THURSDAY: Thursday
1085  * @QMI_NAS_DAY_OF_WEEK_FRIDAY: Friday
1086  * @QMI_NAS_DAY_OF_WEEK_SATURDAY: Saturday
1087  * @QMI_NAS_DAY_OF_WEEK_SUNDAY: Sunday
1088  *
1089  * The day of the week.
1090  *
1091  * Since: 1.4
1092  */
1093 typedef enum { /*< since=1.4 >*/
1094     QMI_NAS_DAY_OF_WEEK_MONDAY    = 0,
1095     QMI_NAS_DAY_OF_WEEK_TUESDAY   = 1,
1096     QMI_NAS_DAY_OF_WEEK_WEDNESDAY = 2,
1097     QMI_NAS_DAY_OF_WEEK_THURSDAY  = 3,
1098     QMI_NAS_DAY_OF_WEEK_FRIDAY    = 4,
1099     QMI_NAS_DAY_OF_WEEK_SATURDAY  = 5,
1100     QMI_NAS_DAY_OF_WEEK_SUNDAY    = 6
1101 } QmiNasDayOfWeek;
1102 
1103 /**
1104  * QmiNasDaylightSavingsAdjustment:
1105  * @QMI_NAS_DAYLIGHT_SAVINGS_ADJUSTMENT_NONE: no adjustment
1106  * @QMI_NAS_DAYLIGHT_SAVINGS_ADJUSTMENT_ONE_HOUR: one hour adjustment
1107  * @QMI_NAS_DAYLIGHT_SAVINGS_ADJUSTMENT_TWO_HOURS: two hours adjustment
1108  *
1109  * The number of hours a time is adjusted for daylight savings.
1110  *
1111  * Since: 1.4
1112  */
1113 typedef enum { /*< since=1.4 >*/
1114     QMI_NAS_DAYLIGHT_SAVINGS_ADJUSTMENT_NONE      = 0,
1115     QMI_NAS_DAYLIGHT_SAVINGS_ADJUSTMENT_ONE_HOUR  = 1,
1116     QMI_NAS_DAYLIGHT_SAVINGS_ADJUSTMENT_TWO_HOURS = 2
1117 } QmiNasDaylightSavingsAdjustment;
1118 
1119 /*****************************************************************************/
1120 /* Helper enums for the 'QMI NAS Get Cell Location Info' request/response */
1121 
1122 /**
1123  * QmiNasWcdmaRrcState:
1124  * @QMI_NAS_WCDMA_RRC_STATE_DISCONNECTED: Disconnected.
1125  * @QMI_NAS_WCDMA_RRC_STATE_CELL_PCH: WCDMA RRC state is CELL_PCH.
1126  * @QMI_NAS_WCDMA_RRC_STATE_URA_PCH: WCDMA RRC state is URA_PCH.
1127  * @QMI_NAS_WCDMA_RRC_STATE_CELL_FACH: WCDMA RRC state is CELL_FACH.
1128  * @QMI_NAS_WCDMA_RRC_STATE_CELL_DCH: WCDMA RRC state is CELL_DCH.
1129  *
1130  * RRC state.
1131  *
1132  * Since: 1.10
1133  */
1134 typedef enum { /*< since=1.10 >*/
1135     QMI_NAS_WCDMA_RRC_STATE_DISCONNECTED = 0,
1136     QMI_NAS_WCDMA_RRC_STATE_CELL_PCH     = 1,
1137     QMI_NAS_WCDMA_RRC_STATE_URA_PCH      = 2,
1138     QMI_NAS_WCDMA_RRC_STATE_CELL_FACH    = 3,
1139     QMI_NAS_WCDMA_RRC_STATE_CELL_DCH     = 4
1140 } QmiNasWcdmaRrcState;
1141 
1142 /*****************************************************************************/
1143 /* Helper enums for the 'QMI NAS Get LTE Cphy CA Info' request/response */
1144 
1145 /**
1146  * QmiNasDLBandwidth:
1147  * @QMI_NAS_DL_BANDWIDTH_1_4: 1.4 MHz
1148  * @QMI_NAS_DL_BANDWIDTH_3: 3 MHz
1149  * @QMI_NAS_DL_BANDWIDTH_5: 5 MHz
1150  * @QMI_NAS_DL_BANDWIDTH_10: 10 MHz
1151  * @QMI_NAS_DL_BANDWIDTH_15: 15 MHz
1152  * @QMI_NAS_DL_BANDWIDTH_20: 20 MHz
1153  * @QMI_NAS_DL_BANDWIDTH_INVALID: Invalid
1154  * @QMI_NAS_DL_BANDWIDTH_UNKNOWN: Unknown
1155  *
1156  * DL Bandwidth.
1157  *
1158  * Since: 1.16
1159  */
1160 typedef enum { /*< since=1.16 >*/
1161     QMI_NAS_DL_BANDWIDTH_1_4      = 0,
1162     QMI_NAS_DL_BANDWIDTH_3        = 1,
1163     QMI_NAS_DL_BANDWIDTH_5        = 2,
1164     QMI_NAS_DL_BANDWIDTH_10       = 3,
1165     QMI_NAS_DL_BANDWIDTH_15       = 4,
1166     QMI_NAS_DL_BANDWIDTH_20       = 5,
1167     QMI_NAS_DL_BANDWIDTH_INVALID  = 6,
1168     QMI_NAS_DL_BANDWIDTH_UNKNOWN  = 0xFF
1169 } QmiNasDLBandwidth;
1170 
1171 /**
1172  * QmiNasScellState:
1173  * @QMI_NAS_SCELL_STATE_DECONFIGURED: Deconfigured
1174  * @QMI_NAS_SCELL_STATE_DEACTIVATED: Deactivated
1175  * @QMI_NAS_SCELL_STATE_ACTIVATED: Activated
1176  *
1177  * SCell State.
1178  *
1179  * Since: 1.16
1180  */
1181 typedef enum { /*< since=1.16 >*/
1182     QMI_NAS_SCELL_STATE_DECONFIGURED = 0,
1183     QMI_NAS_SCELL_STATE_DEACTIVATED  = 1,
1184     QMI_NAS_SCELL_STATE_ACTIVATED    = 2
1185 } QmiNasScellState;
1186 
1187 /*****************************************************************************/
1188 /* Helper enums for the 'QMI NAS Get Operator Name' request/response */
1189 /**
1190  * QmiNasPlmnEncodingScheme:
1191  * @QMI_NAS_PLMN_ENCODING_SCHEME_GSM: GSM default alphabet packed encoding (ETSI GSM 03.38)
1192  * @QMI_NAS_PLMN_ENCODING_SCHEME_UCS2LE: UCS-2 little-endian
1193  *
1194  * PLMN name encoding schemes.  See 3GPP TS 24.008 section "Network Name
1195  * information element".
1196  *
1197  * Since: 1.18
1198  */
1199 typedef enum { /*< since=1.18 >*/
1200     QMI_NAS_PLMN_ENCODING_SCHEME_GSM    = 0,
1201     QMI_NAS_PLMN_ENCODING_SCHEME_UCS2LE = 1,
1202 } QmiNasPlmnEncodingScheme;
1203 
1204 /**
1205  * QmiNasNetworkNameDisplayCondition:
1206  * @QMI_NAS_NETWORK_NAME_DISPLAY_CONDITION_DISPLAY_REGISTERED_PLMN_IF_KNOWN_NETWORK: if
1207  * set, display of the registered PLMN is required when the registered PLMN is either
1208  * the HPLMN or a PLMN in the Service Provider PLMN List (see EFspdi). Otherwise
1209  * display of the registered PLMN is not required in this case.
1210  * @QMI_NAS_NETWORK_NAME_DISPLAY_CONDITION_DISPLAY_SPN_NOT_REQUIRED_IF_UNKNOWN_NETWORK: if
1211  * set, display of the Service Provider Name is not required when registered PLMN is
1212  * neither HPLMN nor a PLMN in the service provider PLMN list (see EFspdi). If not set,
1213  * SPN display is required in this case.
1214  *
1215  * Flags used to control display of the PLMN name and Service Provider Name. See
1216  * 3GPP TS 51.011 descripton of the EFspn SIM file for more details.
1217  *
1218  * Since: 1.18
1219  */
1220 typedef enum { /*< since=1.18 >*/
1221     QMI_NAS_NETWORK_NAME_DISPLAY_CONDITION_DISPLAY_REGISTERED_PLMN_IF_KNOWN_NETWORK    = 1 << 0,
1222     QMI_NAS_NETWORK_NAME_DISPLAY_CONDITION_DISPLAY_SPN_NOT_REQUIRED_IF_UNKNOWN_NETWORK = 1 << 1,
1223 } QmiNasNetworkNameDisplayCondition;
1224 
1225 /**
1226  * QmiNasPlmnNameCountryInitials:
1227  * @QMI_NAS_PLMN_NAME_COUNTRY_INITIALS_DO_NOT_ADD: don't add country initials
1228  * @QMI_NAS_PLMN_NAME_COUNTRY_INIITALS_ADD: add country initials
1229  * @QMI_NAS_PLMN_NAME_COUNTRY_INIITALS_UNSPECIFIED: unspecified
1230  *
1231  * PLMN name country initials options. See 3GPP TS 24.008
1232  * section "Network Name information element".
1233  *
1234  * Since: 1.18
1235  */
1236 typedef enum { /*< since=1.18 >*/
1237     QMI_NAS_PLMN_NAME_COUNTRY_INITIALS_DO_NOT_ADD  = 0,
1238     QMI_NAS_PLMN_NAME_COUNTRY_INIITALS_ADD         = 1,
1239     QMI_NAS_PLMN_NAME_COUNTRY_INIITALS_UNSPECIFIED = 0xFF,
1240 } QmiNasPlmnNameCountryInitials;
1241 
1242 /**
1243  * QmiNasNetworkNameSource:
1244  * @QMI_NAS_NETWORK_NAME_SOURCE_UNKNOWN: Unknown.
1245  * @QMI_NAS_NETWORK_NAME_SOURCE_OPERATOR_PLMN_LIST_AND_PLMN_NETWORK_NAME: Operator PLMN list and PLMN network name.
1246  * @QMI_NAS_NETWORK_NAME_SOURCE_COMMON_PCN_HANDSET_SPECIFICATION_AND_OPERATOR_NAME_STRING: Common PCN handset specification and operator name string.
1247  * @QMI_NAS_NETWORK_NAME_SOURCE_NITZ: Network identity and time zone.
1248  * @QMI_NAS_NETWORK_NAME_SOURCE_SE13: GSMA SE13 table.
1249  * @QMI_NAS_NETWORK_NAME_SOURCE_MCC_MNC: MCC and MNC.
1250  * @QMI_NAS_NETWORK_NAME_SOURCE_SERVICE_PROVIDER_NAME: Service provider name.
1251  *
1252  * Network name source.
1253  *
1254  * Since: 1.24
1255  */
1256 typedef enum { /*< since=1.24 >*/
1257     QMI_NAS_NETWORK_NAME_SOURCE_UNKNOWN                                                   = 0x00,
1258     QMI_NAS_NETWORK_NAME_SOURCE_OPERATOR_PLMN_LIST_AND_PLMN_NETWORK_NAME                  = 0x01,
1259     QMI_NAS_NETWORK_NAME_SOURCE_COMMON_PCN_HANDSET_SPECIFICATION_AND_OPERATOR_NAME_STRING = 0x02,
1260     QMI_NAS_NETWORK_NAME_SOURCE_NITZ                                                      = 0x03,
1261     QMI_NAS_NETWORK_NAME_SOURCE_SE13                                                      = 0x04,
1262     QMI_NAS_NETWORK_NAME_SOURCE_MCC_MNC                                                   = 0x05,
1263     QMI_NAS_NETWORK_NAME_SOURCE_SERVICE_PROVIDER_NAME                                     = 0x06,
1264 } QmiNasNetworkNameSource;
1265 
1266 /**
1267  * QmiNasPlmnNameSpareBits:
1268  * @QMI_NAS_PLMN_NAME_SPARE_BITS_UNKNOWN: unknown
1269  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BIT_8: bit 8 is spare
1270  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_78: bits 7 - 8 are spare
1271  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_68: bits 6 - 8 are spare
1272  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_58: bits 5 - 8 are spare
1273  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_48: bits 4 - 8 are spare
1274  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_38: bits 3 - 8 are spare
1275  * @QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_28: bits 2 - 8 are spare
1276  *
1277  * PLMN name spare bits in last octet of a network name.  See 3GPP TS 24.008
1278  * section "Network Name information element".
1279  *
1280  * Since: 1.18
1281  */
1282 typedef enum { /*< since=1.18 >*/
1283     QMI_NAS_PLMN_NAME_SPARE_BITS_UNKNOWN = 0,
1284     QMI_NAS_PLMN_NAME_SPARE_BITS_BIT_8   = 1,
1285     QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_78 = 2,
1286     QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_68 = 3,
1287     QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_58 = 4,
1288     QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_48 = 5,
1289     QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_38 = 6,
1290     QMI_NAS_PLMN_NAME_SPARE_BITS_BITS_28 = 7,
1291 } QmiNasPlmnNameSpareBits;
1292 
1293 /**
1294  * QmiNasUsagePreference:
1295  * @QMI_NAS_USAGE_PREFERENCE_UNKNOWN: Unknown.
1296  * @QMI_NAS_USAGE_PREFERENCE_VOICE_CENTRIC: Voice centric.
1297  * @QMI_NAS_USAGE_PREFERENCE_DATA_CENTRIC: Data centric.
1298  *
1299  * Modem usage preference.
1300  *
1301  * Since: 1.24
1302  */
1303 typedef enum { /*< since=1.24 >*/
1304     QMI_NAS_USAGE_PREFERENCE_UNKNOWN       = 0x00,
1305     QMI_NAS_USAGE_PREFERENCE_VOICE_CENTRIC = 0x01,
1306     QMI_NAS_USAGE_PREFERENCE_DATA_CENTRIC  = 0x02
1307 } QmiNasUsagePreference;
1308 
1309 /**
1310  * QmiNasSwiModemMode:
1311  * @QMI_NAS_SWI_MODEM_MODE_POWERING_OFF: Powering off
1312  * @QMI_NAS_SWI_MODEM_MODE_FACTORY_TEST: Factory test
1313  * @QMI_NAS_SWI_MODEM_MODE_OFFLINE: Offline
1314  * @QMI_NAS_SWI_MODEM_MODE_OFFLINE_AMPS: Offline AMPS
1315  * @QMI_NAS_SWI_MODEM_MODE_OFFLINE_CDMA: Offline CDMA
1316  * @QMI_NAS_SWI_MODEM_MODE_ONLINE: Online
1317  * @QMI_NAS_SWI_MODEM_MODE_LOW_POWER: Low power
1318  * @QMI_NAS_SWI_MODEM_MODE_RESETTING: Resetting
1319  * @QMI_NAS_SWI_MODEM_MODE_NETWORK_TEST: Network test
1320  * @QMI_NAS_SWI_MODEM_MODE_OFFLINE_REQUEST: Offline request
1321  * @QMI_NAS_SWI_MODEM_MODE_PSEUDO_ONLINE: Pseudo online
1322  * @QMI_NAS_SWI_MODEM_MODE_RESETTING_MODEM: Resetting modem
1323  * @QMI_NAS_SWI_MODEM_MODE_UNKNOWN: Unknown
1324  *
1325  * Modem mode (Sierra Wireless specific).
1326  *
1327  * Since: 1.24
1328  */
1329 typedef enum { /*< since=1.24 >*/
1330     QMI_NAS_SWI_MODEM_MODE_POWERING_OFF    = 0x00,
1331     QMI_NAS_SWI_MODEM_MODE_FACTORY_TEST    = 0x01,
1332     QMI_NAS_SWI_MODEM_MODE_OFFLINE         = 0x02,
1333     QMI_NAS_SWI_MODEM_MODE_OFFLINE_AMPS    = 0x03,
1334     QMI_NAS_SWI_MODEM_MODE_OFFLINE_CDMA    = 0x04,
1335     QMI_NAS_SWI_MODEM_MODE_ONLINE          = 0x05,
1336     QMI_NAS_SWI_MODEM_MODE_LOW_POWER       = 0x06,
1337     QMI_NAS_SWI_MODEM_MODE_RESETTING       = 0x07,
1338     QMI_NAS_SWI_MODEM_MODE_NETWORK_TEST    = 0x08,
1339     QMI_NAS_SWI_MODEM_MODE_OFFLINE_REQUEST = 0x09,
1340     QMI_NAS_SWI_MODEM_MODE_PSEUDO_ONLINE   = 0x0a,
1341     QMI_NAS_SWI_MODEM_MODE_RESETTING_MODEM = 0x0b,
1342     QMI_NAS_SWI_MODEM_MODE_UNKNOWN         = 0xff
1343 } QmiNasSwiModemMode;
1344 
1345 /**
1346  * QmiNasSwiSystemMode:
1347  * @QMI_NAS_SWI_SYSTEM_MODE_NO_SERVICE: No service
1348  * @QMI_NAS_SWI_SYSTEM_MODE_AMPS: AMPS
1349  * @QMI_NAS_SWI_SYSTEM_MODE_CDMA: CDMA
1350  * @QMI_NAS_SWI_SYSTEM_MODE_GSM: GSM
1351  * @QMI_NAS_SWI_SYSTEM_MODE_HDR: HDR
1352  * @QMI_NAS_SWI_SYSTEM_MODE_WCDMA: WCDMA
1353  * @QMI_NAS_SWI_SYSTEM_MODE_GPS: GPS
1354  * @QMI_NAS_SWI_SYSTEM_MODE_WLAN: WLAN
1355  * @QMI_NAS_SWI_SYSTEM_MODE_LTE: LTE
1356  * @QMI_NAS_SWI_SYSTEM_MODE_UNKNOWN: Unknown
1357  *
1358  * System mode (Sierra Wireless specific).
1359  *
1360  * Since: 1.24
1361  */
1362 typedef enum { /*< since=1.24 >*/
1363     QMI_NAS_SWI_SYSTEM_MODE_NO_SERVICE = 0x00,
1364     QMI_NAS_SWI_SYSTEM_MODE_AMPS       = 0x01,
1365     QMI_NAS_SWI_SYSTEM_MODE_CDMA       = 0x02,
1366     QMI_NAS_SWI_SYSTEM_MODE_GSM        = 0x03,
1367     QMI_NAS_SWI_SYSTEM_MODE_HDR        = 0x04,
1368     QMI_NAS_SWI_SYSTEM_MODE_WCDMA      = 0x05,
1369     QMI_NAS_SWI_SYSTEM_MODE_GPS        = 0x06,
1370     QMI_NAS_SWI_SYSTEM_MODE_WLAN       = 0x08,
1371     QMI_NAS_SWI_SYSTEM_MODE_LTE        = 0x09,
1372     QMI_NAS_SWI_SYSTEM_MODE_UNKNOWN    = 0xff
1373 } QmiNasSwiSystemMode;
1374 
1375 /**
1376  * QmiNasSwiImsRegState:
1377  * @QMI_NAS_SWI_IMS_REG_NO_SRV: No service
1378  * @QMI_NAS_SWI_IMS_REG_IN_PROG: In prog
1379  * @QMI_NAS_SWI_IMS_REG_FAILED: Failed
1380  * @QMI_NAS_SWI_IMS_REG_LIMITED: Limited
1381  * @QMI_NAS_SWI_IMS_REG_FULL_SRV: Full service
1382  * @QMI_NAS_SWI_IMS_REG__UNKNOWN: Unknown
1383  *
1384  * IMS registration state. (Sierra Wireless specific).
1385  *
1386  * Since: 1.24
1387  */
1388 typedef enum { /*< since=1.24 >*/
1389     QMI_NAS_SWI_IMS_REG_NO_SRV   = 0x00,
1390     QMI_NAS_SWI_IMS_REG_IN_PROG  = 0x01,
1391     QMI_NAS_SWI_IMS_REG_FAILED   = 0x02,
1392     QMI_NAS_SWI_IMS_REG_LIMITED  = 0x03,
1393     QMI_NAS_SWI_IMS_REG_FULL_SRV = 0x04,
1394     QMI_NAS_SWI_IMS_REG__UNKNOWN = 0xff
1395 } QmiNasSwiImsRegState;
1396 
1397 /**
1398  * QmiNasSwiPsState:
1399  * @QMI_NAS_SWI_PS_STATE_ATTACHED: Attached
1400  * @QMI_NAS_SWI_PS_STATE_DETACHED: Detached
1401  * @QMI_NAS_SWI_PS_STATE_UNKNOWN: Unknown
1402  *
1403  * PS registration state. (Sierra Wireless specific).
1404  *
1405  * Since: 1.24
1406  */
1407 typedef enum { /*< since=1.24 >*/
1408     QMI_NAS_SWI_PS_STATE_ATTACHED = 0x00,
1409     QMI_NAS_SWI_PS_STATE_DETACHED = 0x01,
1410     QMI_NAS_SWI_PS_STATE_UNKNOWN  = 0xff
1411 } QmiNasSwiPsState;
1412 
1413 /**
1414  * QmiNasSwiEmmState:
1415  * @QMI_NAS_SWI_EMM_STATE_DEREGISTERED: Deregistered
1416  * @QMI_NAS_SWI_EMM_STATE_REG_INITIATED: Registration initiated
1417  * @QMI_NAS_SWI_EMM_STATE_REGISTERED: Registered
1418  * @QMI_NAS_SWI_EMM_STATE_TAU_INITIATED: TAU initiated
1419  * @QMI_NAS_SWI_EMM_STATE_SR_INITIATED: SR initiated
1420  * @QMI_NAS_SWI_EMM_STATE_DEREG_INITIATED: Deregistration initiated
1421  * @QMI_NAS_SWI_EMM_STATE_INVALID: Invalid
1422  * @QMI_NAS_SWI_EMM_STATE_UNKNOWN: Unknown
1423  *
1424  * EMM registration state. (Sierra Wireless specific).
1425  *
1426  * Since: 1.24
1427  */
1428 typedef enum { /*< since=1.24 >*/
1429     QMI_NAS_SWI_EMM_STATE_DEREGISTERED    = 0x00,
1430     QMI_NAS_SWI_EMM_STATE_REG_INITIATED   = 0x01,
1431     QMI_NAS_SWI_EMM_STATE_REGISTERED      = 0x02,
1432     QMI_NAS_SWI_EMM_STATE_TAU_INITIATED   = 0x03,
1433     QMI_NAS_SWI_EMM_STATE_SR_INITIATED    = 0x04,
1434     QMI_NAS_SWI_EMM_STATE_DEREG_INITIATED = 0x05,
1435     QMI_NAS_SWI_EMM_STATE_INVALID         = 0x06,
1436     QMI_NAS_SWI_EMM_STATE_UNKNOWN         = 0xff
1437 } QmiNasSwiEmmState;
1438 
1439 /**
1440  * QmiNasSwiEmmConnectionState:
1441  * @QMI_NAS_SWI_EMM_CONN_STATE_RRC_IDLE: RRC idle
1442  * @QMI_NAS_SWI_EMM_CONN_STATE_WAITING_RRC_CFM: Waiting RRC Cfm
1443  * @QMI_NAS_SWI_EMM_CONN_STATE_RRC_CONNECTING: RRC connecting
1444  * @QMI_NAS_SWI_EMM_CONN_STATE_RRC_RELEASING: RRC releasing
1445  * @QMI_NAS_SWI_EMM_CONN_STATE_UNKNOWN: Unknown
1446  *
1447  * EMM connection state state. (Sierra Wireless specific).
1448  *
1449  * Since: 1.24
1450  */
1451 typedef enum { /*< since=1.24 >*/
1452     QMI_NAS_SWI_EMM_CONN_STATE_RRC_IDLE        = 0x00,
1453     QMI_NAS_SWI_EMM_CONN_STATE_WAITING_RRC_CFM = 0x01,
1454     QMI_NAS_SWI_EMM_CONN_STATE_RRC_CONNECTING  = 0x02,
1455     QMI_NAS_SWI_EMM_CONN_STATE_RRC_RELEASING   = 0x03,
1456     QMI_NAS_SWI_EMM_CONN_STATE_UNKNOWN         = 0xff
1457 } QmiNasSwiEmmConnectionState;
1458 
1459 /**
1460  * QmiNasDrx:
1461  * @QMI_NAS_DRX_UNKNOWN: Unknown or not specified.
1462  * @QMI_NAS_DRX_CN6_T32: CN=6, T=32.
1463  * @QMI_NAS_DRX_CN7_T64: CN=7, T=64.
1464  * @QMI_NAS_DRX_CN8_T128: CN=8, T=128.
1465  * @QMI_NAS_DRX_CN9_T256: CN=9, T=256.
1466  *
1467  * DRX setting of the device.
1468  *
1469  * Since: 1.28
1470  */
1471 typedef enum { /*< since=1.28 >*/
1472     QMI_NAS_DRX_UNKNOWN  = 0x00,
1473     QMI_NAS_DRX_CN6_T32  = 0x06,
1474     QMI_NAS_DRX_CN7_T64  = 0x07,
1475     QMI_NAS_DRX_CN8_T128 = 0x08,
1476     QMI_NAS_DRX_CN9_T256 = 0x09,
1477 } QmiNasDrx;
1478 
1479 /**
1480  * QmiNasBoolean:
1481  * @QMI_NAS_BOOLEAN_FALSE: Status FALSE.
1482  * @QMI_NAS_BOOLEAN_TRUE: Status TRUE.
1483  * @QMI_NAS_BOOLEAN_UNKNOWN: Status Unknown.
1484  *
1485  * Boolean flag with validity info.
1486  *
1487  * Since: 1.28
1488  */
1489 typedef enum { /*< since=1.28 >*/
1490     QMI_NAS_BOOLEAN_FALSE    = 0x00,
1491     QMI_NAS_BOOLEAN_TRUE     = 0x01,
1492     QMI_NAS_BOOLEAN_UNKNOWN  = 0x02
1493 } QmiNasBoolean;
1494 
1495 /**
1496  * QmiNasPlmnLanguageId:
1497  * @QMI_NAS_PLMN_LANGUAGE_ID_UNKNOWN: Language Unknown.
1498  * @QMI_NAS_PLMN_LANGUAGE_ID_ZH_TRAD: Traditional Chinese.
1499  * @QMI_NAS_PLMN_LANGUAGE_ID_ZH_SIMP: Simplified Chinese.
1500  *
1501  * Language ID used when encoding the PLMN.
1502  *
1503  * Since: 1.28
1504  */
1505 typedef enum { /*< since=1.28 >*/
1506     QMI_NAS_PLMN_LANGUAGE_ID_UNKNOWN = 0x00,
1507     QMI_NAS_PLMN_LANGUAGE_ID_ZH_TRAD = 0x01,
1508     QMI_NAS_PLMN_LANGUAGE_ID_ZH_SIMP = 0x02
1509 } QmiNasPlmnLanguageId;
1510 
1511 /**
1512  * QmiNasLteVoiceDomain:
1513  * @QMI_NAS_LTE_VOICE_DOMAIN_NONE: No voice.
1514  * @QMI_NAS_LTE_VOICE_DOMAIN_IMS: Voice is supported over IMS network.
1515  * @QMI_NAS_LTE_VOICE_DOMAIN_1X: Voice is supported over the 1X network.
1516  * @QMI_NAS_LTE_VOICE_DOMAIN_3GPP: Voice is supported over the 3GPP network.
1517  *
1518  * LTE voice domain.
1519  *
1520  * Since: 1.28
1521  */
1522 typedef enum { /*< since=1.28 >*/
1523     QMI_NAS_LTE_VOICE_DOMAIN_NONE = 0x00,
1524     QMI_NAS_LTE_VOICE_DOMAIN_IMS  = 0x01,
1525     QMI_NAS_LTE_VOICE_DOMAIN_1X   = 0x02,
1526     QMI_NAS_LTE_VOICE_DOMAIN_3GPP = 0x03
1527 } QmiNasLteVoiceDomain;
1528 
1529 /**
1530  * QmiNasRejectCause:
1531  * @QMI_NAS_REJECT_CAUSE_NONE: None.
1532  * @QMI_NAS_REJECT_CAUSE_IMSI_UNKNOWN_IN_HLR: IMSI unknown in HLR/HSS.
1533  * @QMI_NAS_REJECT_CAUSE_ILLEGAL_UE: Illegal MS/UE.
1534  * @QMI_NAS_REJECT_CAUSE_IMSI_UNKNOWN_IN_VLR: IMSI unknown in VLR.
1535  * @QMI_NAS_REJECT_CAUSE_IMEI_NOT_ACCEPTED: IMEI not accepted.
1536  * @QMI_NAS_REJECT_CAUSE_ILLEGAL_ME: Illegal ME.
1537  * @QMI_NAS_REJECT_CAUSE_PS_SERVICES_NOT_ALLOWED: GPRS/EPS services not allowed.
1538  * @QMI_NAS_REJECT_CAUSE_PS_AND_NON_PS_SERVICES_NOT_ALLOWED: GPRS/EPS and non-GPRS/EPS services not allowed.
1539  * @QMI_NAS_REJECT_CAUSE_UE_IDENTITY_NOT_DERIVED_BY_NETWORK: MS/UE identity not derived by network.
1540  * @QMI_NAS_REJECT_CAUSE_IMPLICITLY_DETACHED: Implicitly detached.
1541  * @QMI_NAS_REJECT_CAUSE_PLMN_NOT_ALLOWED: PLMN not allowed.
1542  * @QMI_NAS_REJECT_CAUSE_LOCATION_AREA_NOT_ALLOWED: Location/tracking area not allowed.
1543  * @QMI_NAS_REJECT_CAUSE_ROAMING_IN_LOCATION_AREA_NOT_ALLOWED: Roaming in location/tracking area not allowed.
1544  * @QMI_NAS_REJECT_CAUSE_PS_SERVICES_IN_LOCATION_AREA_NOT_ALLOWED: GPRS/EPS services in location/tracking area not allowed.
1545  * @QMI_NAS_REJECT_CAUSE_NO_SUITABLE_CELLS_IN_LOCATION_AREA: No suitable cells in location/tracking area.
1546  * @QMI_NAS_REJECT_CAUSE_MSC_TEMPORARILY_NOT_REACHABLE: MSC temporarily not reachable.
1547  * @QMI_NAS_REJECT_CAUSE_NETWORK_FAILURE: Network failure.
1548  * @QMI_NAS_REJECT_CAUSE_CS_DOMAIN_NOT_AVAILABLE: CS domain not available.
1549  * @QMI_NAS_REJECT_CAUSE_ESM_FAILURE: ESM failure.
1550  * @QMI_NAS_REJECT_CAUSE_MAC_FAILURE: MAC failure.
1551  * @QMI_NAS_REJECT_CAUSE_SYNCH_FAILURE: Synch failure.
1552  * @QMI_NAS_REJECT_CAUSE_CONGESTION: Congestion.
1553  * @QMI_NAS_REJECT_CAUSE_UE_SECURITY_CAPABILITIES_MISMATCH: GSM authentication unacceptable, UE security capabilities mismatch.
1554  * @QMI_NAS_REJECT_CAUSE_SECURITY_MODE_REJECTED_UNSPECIFIED: Security mode rejected or unspecified.
1555  * @QMI_NAS_REJECT_CAUSE_CSG_NOT_AUTHORIZED: CSG not authorized.
1556  * @QMI_NAS_REJECT_CAUSE_NON_EPS_AUTHENTICATION_UNACCEPTABLE: Non-EPS authentication unacceptable.
1557  * @QMI_NAS_REJECT_CAUSE_SMS_PROVIDED_BY_GPRS_IN_ROUTING_AREA: SMS provided by GPRS in routing area.
1558  * @QMI_NAS_REJECT_CAUSE_REDIRECTION_TO_5GCN_REQUIRED: Redirection to 5GCN required.
1559  * @QMI_NAS_REJECT_CAUSE_SERVICE_OPTION_NOT_SUPPORTED: Service option not supported.
1560  * @QMI_NAS_REJECT_CAUSE_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED: Requested service option not subscribed.
1561  * @QMI_NAS_REJECT_CAUSE_SERVICE_OPTION_TEMPORARILY_OUT_OF_ORDER: Service option temporarily out of order.
1562  * @QMI_NAS_REJECT_CAUSE_REQUESTED_SERVICE_OPTION_NOT_AUTHORIZED: Requested service option not authorized.
1563  * @QMI_NAS_REJECT_CAUSE_CALL_CANNOT_BE_IDENTIFIED: Call cannot be identified.
1564  * @QMI_NAS_REJECT_CAUSE_CS_SERVICE_TEMPORARILY_NOT_AVAILABLE: CS service temporarily not available.
1565  * @QMI_NAS_REJECT_CAUSE_NO_EPS_BEARER_CONTEXT_ACTIVATED: No EPS bearer context activated.
1566  * @QMI_NAS_REJECT_CAUSE_SEVERE_NETWORK_FAILURE: Severe network failure.
1567  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_0: Retry upon entry 0.
1568  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_1: Retry upon entry 1.
1569  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_2: Retry upon entry 2.
1570  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_3: Retry upon entry 3.
1571  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_4: Retry upon entry 4.
1572  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_5: Retry upon entry 5.
1573  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_6: Retry upon entry 6.
1574  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_7: Retry upon entry 7.
1575  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_8: Retry upon entry 8.
1576  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_9: Retry upon entry 9.
1577  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_10: Retry upon entry 10.
1578  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_11: Retry upon entry 11.
1579  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_12: Retry upon entry 12.
1580  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_13: Retry upon entry 13.
1581  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_14: Retry upon entry 14.
1582  * @QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_15: Retry upon entry 15.
1583  * @QMI_NAS_REJECT_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE: Semantically incorrect message.
1584  * @QMI_NAS_REJECT_CAUSE_INVALID_MANDATORY_INFORMATION: Invalid mandatory information.
1585  * @QMI_NAS_REJECT_CAUSE_MESSAGE_TYPE_NON_EXISTENT: Message type non existent.
1586  * @QMI_NAS_REJECT_CAUSE_MESSAGE_TYPE_NOT_COMPATIBLE: Message type not compatible.
1587  * @QMI_NAS_REJECT_CAUSE_INFORMATION_ELEMENT_NON_EXISTENT: Information element non existent.
1588  * @QMI_NAS_REJECT_CAUSE_CONDITIONAL_INFORMATION_ELEMENT_ERROR: Conditional information element error.
1589  * @QMI_NAS_REJECT_CAUSE_MESSAGE_NOT_COMPATIBLE: Message not compatible.
1590  * @QMI_NAS_REJECT_CAUSE_UNSPECIFIED_PROTOCOL_ERROR: Unspecified protocol error.
1591  *
1592  * Reason why a request from the mobile station is rejected by the network.
1593  *
1594  * Defined in 3GPP TS 24.008 in sections 10.5.3.6 and 10.5.5.14 (detailed in
1595  * annex G) and in 3GPP TS 24.301 in section 9.9.3.9.
1596  *
1597  * Since: 1.30
1598  */
1599 typedef enum { /*< since=1.30 >*/
1600     QMI_NAS_REJECT_CAUSE_NONE                                       = 0x00,
1601     QMI_NAS_REJECT_CAUSE_IMSI_UNKNOWN_IN_HLR                        = 0x02,
1602     QMI_NAS_REJECT_CAUSE_ILLEGAL_UE                                 = 0x03,
1603     QMI_NAS_REJECT_CAUSE_IMSI_UNKNOWN_IN_VLR                        = 0x04,
1604     QMI_NAS_REJECT_CAUSE_IMEI_NOT_ACCEPTED                          = 0x05,
1605     QMI_NAS_REJECT_CAUSE_ILLEGAL_ME                                 = 0x06,
1606     QMI_NAS_REJECT_CAUSE_PS_SERVICES_NOT_ALLOWED                    = 0x07,
1607     QMI_NAS_REJECT_CAUSE_PS_AND_NON_PS_SERVICES_NOT_ALLOWED         = 0x08,
1608     QMI_NAS_REJECT_CAUSE_UE_IDENTITY_NOT_DERIVED_BY_NETWORK         = 0x09,
1609     QMI_NAS_REJECT_CAUSE_IMPLICITLY_DETACHED                        = 0x0A,
1610     QMI_NAS_REJECT_CAUSE_PLMN_NOT_ALLOWED                           = 0x0B,
1611     QMI_NAS_REJECT_CAUSE_LOCATION_AREA_NOT_ALLOWED                  = 0x0C,
1612     QMI_NAS_REJECT_CAUSE_ROAMING_IN_LOCATION_AREA_NOT_ALLOWED       = 0x0D,
1613     QMI_NAS_REJECT_CAUSE_PS_SERVICES_IN_LOCATION_AREA_NOT_ALLOWED   = 0x0E,
1614     QMI_NAS_REJECT_CAUSE_NO_SUITABLE_CELLS_IN_LOCATION_AREA         = 0x0F,
1615     QMI_NAS_REJECT_CAUSE_MSC_TEMPORARILY_NOT_REACHABLE              = 0x10,
1616     QMI_NAS_REJECT_CAUSE_NETWORK_FAILURE                            = 0x11,
1617     QMI_NAS_REJECT_CAUSE_CS_DOMAIN_NOT_AVAILABLE                    = 0x12,
1618     QMI_NAS_REJECT_CAUSE_ESM_FAILURE                                = 0x13,
1619     QMI_NAS_REJECT_CAUSE_MAC_FAILURE                                = 0x14,
1620     QMI_NAS_REJECT_CAUSE_SYNCH_FAILURE                              = 0x15,
1621     QMI_NAS_REJECT_CAUSE_CONGESTION                                 = 0x16,
1622     QMI_NAS_REJECT_CAUSE_UE_SECURITY_CAPABILITIES_MISMATCH          = 0x17,
1623     QMI_NAS_REJECT_CAUSE_SECURITY_MODE_REJECTED_UNSPECIFIED         = 0x18,
1624     QMI_NAS_REJECT_CAUSE_CSG_NOT_AUTHORIZED                         = 0x19,
1625     QMI_NAS_REJECT_CAUSE_NON_EPS_AUTHENTICATION_UNACCEPTABLE        = 0x1A,
1626     QMI_NAS_REJECT_CAUSE_SMS_PROVIDED_BY_GPRS_IN_ROUTING_AREA       = 0x1C,
1627     QMI_NAS_REJECT_CAUSE_REDIRECTION_TO_5GCN_REQUIRED               = 0x1F,
1628     QMI_NAS_REJECT_CAUSE_SERVICE_OPTION_NOT_SUPPORTED               = 0x20,
1629     QMI_NAS_REJECT_CAUSE_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED    = 0x21,
1630     QMI_NAS_REJECT_CAUSE_SERVICE_OPTION_TEMPORARILY_OUT_OF_ORDER    = 0x22,
1631     QMI_NAS_REJECT_CAUSE_REQUESTED_SERVICE_OPTION_NOT_AUTHORIZED    = 0x23,
1632     QMI_NAS_REJECT_CAUSE_CALL_CANNOT_BE_IDENTIFIED                  = 0x26,
1633     QMI_NAS_REJECT_CAUSE_CS_SERVICE_TEMPORARILY_NOT_AVAILABLE       = 0x27,
1634     QMI_NAS_REJECT_CAUSE_NO_EPS_BEARER_CONTEXT_ACTIVATED            = 0x28,
1635     QMI_NAS_REJECT_CAUSE_SEVERE_NETWORK_FAILURE                     = 0x2A,
1636     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_0           = 0x30,
1637     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_1           = 0x31,
1638     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_2           = 0x32,
1639     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_3           = 0x33,
1640     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_4           = 0x34,
1641     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_5           = 0x35,
1642     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_6           = 0x36,
1643     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_7           = 0x37,
1644     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_8           = 0x38,
1645     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_9           = 0x39,
1646     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_10          = 0x3A,
1647     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_11          = 0x3B,
1648     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_12          = 0x3C,
1649     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_13          = 0x3D,
1650     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_14          = 0x3E,
1651     QMI_NAS_REJECT_CAUSE_RETRY_UPON_ENTRY_INTO_NEW_CELL_15          = 0x3F,
1652     QMI_NAS_REJECT_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE             = 0x5F,
1653     QMI_NAS_REJECT_CAUSE_INVALID_MANDATORY_INFORMATION              = 0x60,
1654     QMI_NAS_REJECT_CAUSE_MESSAGE_TYPE_NON_EXISTENT                  = 0x61,
1655     QMI_NAS_REJECT_CAUSE_MESSAGE_TYPE_NOT_COMPATIBLE                = 0x62,
1656     QMI_NAS_REJECT_CAUSE_INFORMATION_ELEMENT_NON_EXISTENT           = 0x63,
1657     QMI_NAS_REJECT_CAUSE_CONDITIONAL_INFORMATION_ELEMENT_ERROR      = 0x64,
1658     QMI_NAS_REJECT_CAUSE_MESSAGE_NOT_COMPATIBLE                     = 0x65,
1659     QMI_NAS_REJECT_CAUSE_UNSPECIFIED_PROTOCOL_ERROR                 = 0x6F,
1660 } QmiNasRejectCause;
1661 
1662 #endif /* _LIBQMI_GLIB_QMI_ENUMS_NAS_H_ */
1663 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt