/usr/include/libqmi-glib/qmi-enums-dms.h is in libqmi-glib-dev 1.10.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* libqmi-glib -- GLib/GIO based library to control QMI devices
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2012 Lanedo GmbH <aleksander@lanedo.com>
*/
#ifndef _LIBQMI_GLIB_QMI_ENUMS_DMS_H_
#define _LIBQMI_GLIB_QMI_ENUMS_DMS_H_
#if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION)
#error "Only <libqmi-glib.h> can be included directly."
#endif
/**
* SECTION: qmi-enums-dms
* @title: DMS enumerations and flags
*
* This section defines enumerations and flags used in the DMS service
* interface.
*/
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get Capabilities' message */
/**
* QmiDmsDataServiceCapability:
* @QMI_DMS_DATA_SERVICE_CAPABILITY_NONE: No data services supported.
* @QMI_DMS_DATA_SERVICE_CAPABILITY_CS: Only CS supported.
* @QMI_DMS_DATA_SERVICE_CAPABILITY_PS: Only PS supported.
* @QMI_DMS_DATA_SERVICE_CAPABILITY_SIMULTANEOUS_CS_PS: Simultaneous CS and PS supported.
* @QMI_DMS_DATA_SERVICE_CAPABILITY_NON_SIMULTANEOUS_CS_PS: Non simultaneous CS and PS supported.
*
* Data service capability.
*/
typedef enum {
QMI_DMS_DATA_SERVICE_CAPABILITY_NONE = 0,
QMI_DMS_DATA_SERVICE_CAPABILITY_CS = 1,
QMI_DMS_DATA_SERVICE_CAPABILITY_PS = 2,
QMI_DMS_DATA_SERVICE_CAPABILITY_SIMULTANEOUS_CS_PS = 3,
QMI_DMS_DATA_SERVICE_CAPABILITY_NON_SIMULTANEOUS_CS_PS = 4
} QmiDmsDataServiceCapability;
/**
* QmiDmsSimCapability:
* @QMI_DMS_SIM_CAPABILITY_NOT_SUPPORTED: SIM not supported.
* @QMI_DMS_SIM_CAPABILITY_SUPPORTED: SIM is supported.
*
* SIM capability.
*/
typedef enum {
QMI_DMS_SIM_CAPABILITY_NOT_SUPPORTED = 1,
QMI_DMS_SIM_CAPABILITY_SUPPORTED = 2
} QmiDmsSimCapability;
/**
* QmiDmsRadioInterface:
* @QMI_DMS_RADIO_INTERFACE_CDMA20001X: CDMA2000 1x.
* @QMI_DMS_RADIO_INTERFACE_EVDO: CDMA2000 HRPD (1xEV-DO)
* @QMI_DMS_RADIO_INTERFACE_GSM: GSM.
* @QMI_DMS_RADIO_INTERFACE_UMTS: UMTS.
* @QMI_DMS_RADIO_INTERFACE_LTE: LTE.
*
* Radio interface type.
*/
typedef enum {
QMI_DMS_RADIO_INTERFACE_CDMA20001X = 1,
QMI_DMS_RADIO_INTERFACE_EVDO = 2,
QMI_DMS_RADIO_INTERFACE_GSM = 4,
QMI_DMS_RADIO_INTERFACE_UMTS = 5,
QMI_DMS_RADIO_INTERFACE_LTE = 8
} QmiDmsRadioInterface;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get Power State' message */
/**
* QmiDmsPowerState:
* @QMI_DMS_POWER_STATE_EXTERNAL_SOURCE: Powered by an external source.
* @QMI_DMS_POWER_STATE_BATTERY_CONNECTED: Battery is connected.
* @QMI_DMS_POWER_STATE_BATTERY_CHARGING: Battery is currently being charged.
* @QMI_DMS_POWER_STATE_FAULT: Recognized power fault.
*
* Flags specifying the current power state.
*
* If @QMI_DMS_POWER_STATE_EXTERNAL_SOURCE is set, the device is powerered by an
* external source; otherwise it is powered by a battery.
*
* If @QMI_DMS_POWER_STATE_BATTERY_CONNECTED is set, the battery is connected;
* otherwise the battery is not connected.
*
* If @QMI_DMS_POWER_STATE_BATTERY_CHARGING is set, the battery is being charged;
* otherwise the battery is not being charged.
*
* If @QMI_DMS_POWER_STATE_FAULT is set, a power fault has been detected.
*/
typedef enum {
QMI_DMS_POWER_STATE_EXTERNAL_SOURCE = 1 << 0,
QMI_DMS_POWER_STATE_BATTERY_CONNECTED = 1 << 1,
QMI_DMS_POWER_STATE_BATTERY_CHARGING = 1 << 2,
QMI_DMS_POWER_STATE_FAULT = 1 << 3,
} QmiDmsPowerState;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS UIM Set PIN Protection' message */
/**
* QmiDmsUimPinId:
* @QMI_DMS_UIM_PIN_ID_PIN: PIN.
* @QMI_DMS_UIM_PIN_ID_PIN2: PIN2.
*
* The PIN identifier.
*/
typedef enum {
QMI_DMS_UIM_PIN_ID_PIN = 1,
QMI_DMS_UIM_PIN_ID_PIN2 = 2
} QmiDmsUimPinId;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS UIM Get PIN Status' message */
/**
* QmiDmsUimPinStatus:
* @QMI_DMS_UIM_PIN_STATUS_NOT_INITIALIZED: Not initialized.
* @QMI_DMS_UIM_PIN_STATUS_ENABLED_NOT_VERIFIED: Enabled, not verified.
* @QMI_DMS_UIM_PIN_STATUS_ENABLED_VERIFIED: Enabled, verified.
* @QMI_DMS_UIM_PIN_STATUS_DISABLED: Disabled.
* @QMI_DMS_UIM_PIN_STATUS_BLOCKED: Blocked.
* @QMI_DMS_UIM_PIN_STATUS_PERMANENTLY_BLOCKED: Permanently Blocked.
* @QMI_DMS_UIM_PIN_STATUS_UNBLOCKED: Unblocked.
* @QMI_DMS_UIM_PIN_STATUS_CHANGED: Changed.
*
* The PIN status.
*/
typedef enum {
QMI_DMS_UIM_PIN_STATUS_NOT_INITIALIZED = 0,
QMI_DMS_UIM_PIN_STATUS_ENABLED_NOT_VERIFIED = 1,
QMI_DMS_UIM_PIN_STATUS_ENABLED_VERIFIED = 2,
QMI_DMS_UIM_PIN_STATUS_DISABLED = 3,
QMI_DMS_UIM_PIN_STATUS_BLOCKED = 4,
QMI_DMS_UIM_PIN_STATUS_PERMANENTLY_BLOCKED = 5,
QMI_DMS_UIM_PIN_STATUS_UNBLOCKED = 6,
QMI_DMS_UIM_PIN_STATUS_CHANGED = 7,
} QmiDmsUimPinStatus;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get Operating Mode' message */
/**
* QmiDmsOperatingMode:
* @QMI_DMS_OPERATING_MODE_ONLINE: Device can acquire a system and make calls.
* @QMI_DMS_OPERATING_MODE_LOW_POWER: Device has temporarily disabled RF.
* @QMI_DMS_OPERATING_MODE_PERSISTENT_LOW_POWER: Device has disabled RF and state persists even after a reset.
* @QMI_DMS_OPERATING_MODE_FACTORY_TEST: Special mode for manufacturer tests.
* @QMI_DMS_OPERATING_MODE_OFFLINE: Device has deactivated RF and is partially shutdown.
* @QMI_DMS_OPERATING_MODE_RESET: Device is in the process of power cycling.
* @QMI_DMS_OPERATING_MODE_SHUTTING_DOWN: Device is in the process of shutting down.
* @QMI_DMS_OPERATING_MODE_MODE_ONLY_LOW_POWER: Mode-only Low Power.
* @QMI_DMS_OPERATING_MODE_UNKNOWN: Unknown.
*
* Operating mode of the device.
*/
typedef enum {
QMI_DMS_OPERATING_MODE_ONLINE = 0,
QMI_DMS_OPERATING_MODE_LOW_POWER = 1,
QMI_DMS_OPERATING_MODE_FACTORY_TEST = 2,
QMI_DMS_OPERATING_MODE_OFFLINE = 3,
QMI_DMS_OPERATING_MODE_RESET = 4,
QMI_DMS_OPERATING_MODE_SHUTTING_DOWN = 5,
QMI_DMS_OPERATING_MODE_PERSISTENT_LOW_POWER = 6,
QMI_DMS_OPERATING_MODE_MODE_ONLY_LOW_POWER = 7,
QMI_DMS_OPERATING_MODE_UNKNOWN = 0xFF
} QmiDmsOperatingMode;
/**
* QmiDmsOfflineReason:
* @QMI_DMS_OFFLINE_REASON_HOST_IMAGE_MISCONFIGURATION: Host image misconfiguration.
* @QMI_DMS_OFFLINE_REASON_PRI_IMAGE_MISCONFIGURATION: PRI image misconfiguration.
* @QMI_DMS_OFFLINE_REASON_PRI_VERSION_INCOMPATIBLE: PRI version incompatible.
* @QMI_DMS_OFFLINE_REASON_DEVICE_MEMORY_FULL: Memory full, cannot copy PRI information.
*
* Reasons for being in Offline (@QMI_DMS_OPERATING_MODE_OFFLINE) state.
*/
typedef enum {
QMI_DMS_OFFLINE_REASON_HOST_IMAGE_MISCONFIGURATION = 1 << 0,
QMI_DMS_OFFLINE_REASON_PRI_IMAGE_MISCONFIGURATION = 1 << 1,
QMI_DMS_OFFLINE_REASON_PRI_VERSION_INCOMPATIBLE = 1 << 2,
QMI_DMS_OFFLINE_REASON_DEVICE_MEMORY_FULL = 1 << 3
} QmiDmsOfflineReason;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get Time' message */
/**
* QmiDmsTimeSource:
* @QMI_DMS_TIME_SOURCE_DEVICE: 32 kHz device clock.
* @QMI_DMS_TIME_SOURCE_CDMA_NETWORK: CDMA network.
* @QMI_DMS_TIME_SOURCE_HDR_NETWORK: HDR network.
*
* Source of the timestamp.
*/
typedef enum {
QMI_DMS_TIME_SOURCE_DEVICE = 0,
QMI_DMS_TIME_SOURCE_CDMA_NETWORK = 1,
QMI_DMS_TIME_SOURCE_HDR_NETWORK = 2,
} QmiDmsTimeSource;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get Activation State' message */
/**
* QmiDmsActivationState:
* @QMI_DMS_ACTIVATION_STATE_NOT_ACTIVATED: Service not activated.
* @QMI_DMS_ACTIVATION_STATE_ACTIVATED: Service is activated.
* @QMI_DMS_ACTIVATION_STATE_CONNECTING: Connection in progress for automatic activation.
* @QMI_DMS_ACTIVATION_STATE_CONNECTED: Connection connected for automatic activation.
* @QMI_DMS_ACTIVATION_STATE_OTASP_AUTHENTICATED: OTASP security authenticated.
* @QMI_DMS_ACTIVATION_STATE_OTASP_NAM: OTASP NAM downloaded.
* @QMI_DMS_ACTIVATION_STATE_OTASP_MDN: OTASP MDN downloaded.
* @QMI_DMS_ACTIVATION_STATE_OTASP_IMSI: OTASP IMSI downloaded.
* @QMI_DMS_ACTIVATION_STATE_OTASP_PRL: OTASP PRL downloaded.
* @QMI_DMS_ACTIVATION_STATE_OTASP_SPC: OTASP SPC downloaded.
* @QMI_DMS_ACTIVATION_STATE_OTASP_COMMITED: OTASP settings committed.
*
* State of the service activation.
*/
typedef enum {
QMI_DMS_ACTIVATION_STATE_NOT_ACTIVATED = 0x00,
QMI_DMS_ACTIVATION_STATE_ACTIVATED = 0x01,
QMI_DMS_ACTIVATION_STATE_CONNECTING = 0x02,
QMI_DMS_ACTIVATION_STATE_CONNECTED = 0x03,
QMI_DMS_ACTIVATION_STATE_OTASP_AUTHENTICATED = 0x04,
QMI_DMS_ACTIVATION_STATE_OTASP_NAM = 0x05,
QMI_DMS_ACTIVATION_STATE_OTASP_MDN = 0x06,
QMI_DMS_ACTIVATION_STATE_OTASP_IMSI = 0x07,
QMI_DMS_ACTIVATION_STATE_OTASP_PRL = 0x08,
QMI_DMS_ACTIVATION_STATE_OTASP_SPC = 0x09,
QMI_DMS_ACTIVATION_STATE_OTASP_COMMITED = 0x0A
} QmiDmsActivationState;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS UIM Get CK Status' message */
/**
* QmiDmsUimFacility:
* @QMI_DMS_UIM_FACILITY_PN: Network personalization facility.
* @QMI_DMS_UIM_FACILITY_PU: Network subset personalization facility.
* @QMI_DMS_UIM_FACILITY_PP: Service provider facility.
* @QMI_DMS_UIM_FACILITY_PC: Corporate personalization facility.
* @QMI_DMS_UIM_FACILITY_PF: UIM personalization facility.
*
* UIM personalization facilities.
*/
typedef enum {
QMI_DMS_UIM_FACILITY_PN = 0,
QMI_DMS_UIM_FACILITY_PU = 1,
QMI_DMS_UIM_FACILITY_PP = 2,
QMI_DMS_UIM_FACILITY_PC = 3,
QMI_DMS_UIM_FACILITY_PF = 4
} QmiDmsUimFacility;
/**
* QmiDmsUimFacilityState:
* @QMI_DMS_UIM_FACILITY_STATE_DEACTIVATED: Facility is deactivated.
* @QMI_DMS_UIM_FACILITY_STATE_ACTIVATED: Facility is activated.
* @QMI_DMS_UIM_FACILITY_STATE_BLOCKED: Facility is blocked.
*/
typedef enum {
QMI_DMS_UIM_FACILITY_STATE_DEACTIVATED = 0,
QMI_DMS_UIM_FACILITY_STATE_ACTIVATED = 1,
QMI_DMS_UIM_FACILITY_STATE_BLOCKED = 2
} QmiDmsUimFacilityState;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS UIM Get State' message */
/**
* QmiDmsUimState:
* @QMI_DMS_UIM_STATE_INITIALIZATION_COMPLETED: UIM initialization completed.
* @QMI_DMS_UIM_STATE_LOCKED_OR_FAILED: UIM is locked or failed.
* @QMI_DMS_UIM_STATE_NOT_PRESENT: No UIM in the device.
* @QMI_DMS_UIM_STATE_RESERVED: Reserved, unknown.
* @QMI_DMS_UIM_STATE_UNKNOWN: UIM state currently unavailable.
*
* State of the UIM.
*/
typedef enum {
QMI_DMS_UIM_STATE_INITIALIZATION_COMPLETED = 0x00,
QMI_DMS_UIM_STATE_LOCKED_OR_FAILED = 0x01,
QMI_DMS_UIM_STATE_NOT_PRESENT = 0x02,
QMI_DMS_UIM_STATE_RESERVED = 0x03,
QMI_DMS_UIM_STATE_UNKNOWN = 0xFF
} QmiDmsUimState;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Set Time' message */
/**
* QmiDmsTimeReferenceType:
* @QMI_DMS_TIME_REFERENCE_TYPE_USER: User time.
*
* Time reference type.
*/
typedef enum {
QMI_DMS_TIME_REFERENCE_TYPE_USER = 0
} QmiDmsTimeReferenceType;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get Firmware Preference' message */
/**
* QmiDmsFirmwareImageType:
* @QMI_DMS_FIRMWARE_IMAGE_TYPE_MODEM: Modem image.
* @QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI: PRI image.
*
* Type of firmware image.
*/
typedef enum {
QMI_DMS_FIRMWARE_IMAGE_TYPE_MODEM = 0,
QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI = 1
} QmiDmsFirmwareImageType;
#endif /* _LIBQMI_GLIB_QMI_ENUMS_DMS_H_ */
|