LinuxQMISDK  SLQS03.03.12
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qaGobiApiFms.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright: © 2011-2105 Sierra Wireless, Inc. all rights reserved
11  */
12 #ifndef __GOBI_API_FMS_H__
13 #define __GOBI_API_FMS_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /* MC7xx CWE Header SPKGS defines */
20 #define SLQSFWINFO_MODELID_SZ 20
21 #define SLQSFWINFO_BOOTVERSION_SZ 85
22 #define SLQSFWINFO_APPVERSION_SZ 85
23 #define SLQSFWINFO_SKU_SZ 15
24 #define SLQSFWINFO_PACKAGEID_SZ 85
25 #define SLQSFWINFO_CARRIER_SZ 20
26 #define SLQSFWINFO_PRIVERSION_SZ 16
27 #define SLQSFWINFO_CUR_CARR_NAME 17
28 #define SLQSFWINFO_CUR_CARR_REV 13
29 /* Gobi .mbn image defines */
30 #define GOBI_MBN_IMG_ID_STR_LEN 16
31 #define GOBI_MBN_BUILD_ID_STR_LEN 100
32 #define GOBI_LISTENTRIES_MAX 2
33 #define GOBI_SET_IMG_PREF_RSPLEN 40
34 #define DEVICE_SHUTDOWN 5
35 #define DEVICE_RESET 4
36 
37 #define FIRMWARE_UPDATE_SUCCESS 0x01
38 #define FIRMWARE_UPDATE_FAIL 0x01
39 #define PRI_UPDATE_FAIL 0x02
40 #define FIRMWARE_UPGRADE_SUCCESS 0x00
41 
56 struct fwinfo_s
57 {
63 };
64 
88 struct slqsfwinfo_s{
98 };
99 
132 {
133  union
134  {
135  struct fwinfo_s g;
136  struct slqsfwinfo_s s;
137  } dev;
138 };
139 
157 extern ULONG GetImageStore(
158  WORD imageStorePathSize,
159  CHAR *pImageStorePath );
160 
165 {
166  eGOBI_IMG_TECH_CDMA = 0, /* 0 - CDMA */
167  eGOBI_IMG_TECH_UMTS /* 1 - UMTS */
168 };
169 
174 {
175  eGOBI_IMG_CAR_GENERIC = 1, /* 001 */
178 
179  eGOBI_IMG_CAR_VERIZON = 101, /* 101 */
184  eGOBI_IMG_CAR_US, /* 106 */
196  eGOBI_IMG_CAR_OMH, /* 118 */
198 
199  eGOBI_IMG_CAR_ATT = 201, /* 201 */
205  eGOBI_IMG_CAR_3, /* 207 */
206  eGOBI_IMG_CAR_O2, /* 208 */
207  eGOBI_IMG_CAR_SFR, /* 209 */
226 };
227 
232 {
233  eGOBI_IMG_REG_NA = 0, /* 0 - North America */
234  eGOBI_IMG_REG_LA, /* 1 - Latin America */
235  eGOBI_IMG_REG_EU, /* 2 - Europe */
236  eGOBI_IMG_REG_ASIA, /* 3 - Asia */
237  eGOBI_IMG_REG_AUS, /* 4 - Australia */
238  eGOBI_IMG_REG_GLOBAL /* 5 - Global */
239 };
240 
245 {
246  eGOBI_IMG_GPS_NONE = 0, /* 0 - None */
247  eGOBI_IMG_GPS_STAND_ALONE, /* 1 - Stand-alone */
248  eGOBI_IMG_GPS_ASSISTED, /* 2 - Stand-alone + AGPS + XTRA */
249  eGOBI_IMG_GPS_NO_XTRA /* 3 - Stand-alone + AGPS */
250 };
251 
267  struct qmifwinfo_s *pinfo );
268 
292  LPCSTR path,
293  struct qmifwinfo_s *pinfo );
294 
316  LPCSTR path,
317  struct qmifwinfo_s *pinfo );
318 
345  LPCSTR path,
346  struct qmifwinfo_s *pinfo );
347 
377  CHAR *pDestinationPath );
378 
383 #pragma pack(push)
384 #pragma pack(1)
385 
406 {
411 };
412 
426 {
429 };
430 
434 #pragma pack(pop)
435 
457  ULONG *pImageListSize,
458  struct PrefImageList *pImageList );
459 
502  ULONG imageListSize,
503  BYTE *pImageList,
504  ULONG bForceDownload,
505  BYTE modemIndex,
506  ULONG *pImageTypesSize,
507  BYTE *pImageTypes );
508 
513 #pragma pack(push)
514 #pragma pack(1)
515 
538 {
544 };
545 
568 {
574 };
575 
585 struct ImageList
586 {
589 };
590 
594 #pragma pack(pop)
595 
617  ULONG *pImageListSize,
618  BYTE *pImageList );
619 
642  ULONG imageInfoSize,
643  BYTE *pImageInfo );
644 
671  LPCSTR path,
672  BYTE imgType,
673  struct slqsfwinfo_s *pinfo );
674 
721  CHAR *pDestinationPath );
722 
737 ULONG SLQSGetBootVersionNumber(ULONG *bootversion);
738 
751 
753  LPCSTR path );
754 
759 {
760  eGOBI_DEV_SERIES_UNKNOWN = -1, /* unknown */
761  eGOBI_DEV_SERIES_NON_GOBI = 0, /* Non Gobi */
763  eGOBI_DEV_SERIES_SIERRA_GOBI, /* MC9090 SL9090 */
767 };
779 {
782 };
783 
794 
795 
828 {
836 };
856  struct SWI_STRUCT_CarrierImage *pCarrierImages,
857  wchar_t *pFolderPath);
858 
891  CHAR *pPath, BYTE slot_index, BYTE force_download );
892 
893 #ifdef __cplusplus
894 } /* extern "C" { */
895 #endif
896 
897 #endif /* __GOBI_API_FMS_H__ */
Definition: qaGobiApiFms.h:190
Definition: qaGobiApiFms.h:204
Definition: qaGobiApiFms.h:188
ULONG SetImagesPreference(ULONG imageListSize, BYTE *pImageList, ULONG bForceDownload, BYTE modemIndex, ULONG *pImageTypesSize, BYTE *pImageTypes)
void eGetDeviceSeries(struct sGetDeviceSeriesResult *)
CHAR buildID[100]
Definition: qaGobiApiFms.h:543
Definition: qaGobiApiFms.h:175
ULONG SLQSUpgradeFirmware9x15(CHAR *pDestinationPath)
ULONG GetImageStore(WORD imageStorePathSize, CHAR *pImageStorePath)
char CHAR
Definition: SwiDataTypes.h:29
#define SLQSFWINFO_APPVERSION_SZ
Definition: qaGobiApiFms.h:22
Definition: qaGobiApiFms.h:176
ULONG m_nCarrierId
Definition: qaGobiApiFms.h:829
ULONG upgrade_mc77xx_fw(LPCSTR path)
struct fwinfo_s g
Definition: qaGobiApiFms.h:135
unsigned char BYTE
Definition: SwiDataTypes.h:28
#define GOBI_MBN_BUILD_ID_STR_LEN
Definition: qaGobiApiFms.h:31
Definition: qaGobiApiFms.h:209
Definition: qaGobiApiFms.h:220
CHAR packageid_str[85]
Definition: qaGobiApiFms.h:93
Definition: qaGobiApiFms.h:235
Definition: qaGobiApiFms.h:184
struct ImageElement listEntries[2]
Definition: qaGobiApiFms.h:428
Definition: qaGobiApiFms.h:203
Definition: qaGobiApiFms.h:182
BYTE imageType
Definition: qaGobiApiFms.h:569
Definition: qaGobiApiFms.h:207
Definition: qaGobiApiFms.h:221
BYTE m_FwImageId[16]
Definition: qaGobiApiFms.h:832
eGobiImageGPS
Definition: qaGobiApiFms.h:244
BYTE buildIDLength
Definition: qaGobiApiFms.h:542
ULONG SLQSGetImageInfo(LPCSTR path, struct qmifwinfo_s *pinfo)
CHAR carrier_str[20]
Definition: qaGobiApiFms.h:94
ULONG SLQSGetImageInfoMC83xx(LPCSTR path, struct qmifwinfo_s *pinfo)
ULONG SLQSGetFirmwareInfo(struct qmifwinfo_s *pinfo)
Definition: qaGobiApiFms.h:185
enum eGobiDeviceSeries eDevice
Definition: qaGobiApiFms.h:780
#define GOBI_LISTENTRIES_MAX
Definition: qaGobiApiFms.h:32
eGobiImageCarrier
Definition: qaGobiApiFms.h:173
ULONG SLQSGetBootVersionNumber(ULONG *bootversion)
Definition: qaGobiApiFms.h:216
BYTE imageId[16]
Definition: qaGobiApiFms.h:408
Definition: qaGobiApiFms.h:192
Definition: qaGobiApiFms.h:762
Definition: qaGobiApiFms.h:236
Definition: qaGobiApiFms.h:247
Definition: qaGobiApiFms.h:778
BYTE imageType
Definition: qaGobiApiFms.h:407
Definition: qaGobiApiFms.h:131
ULONG Region
Definition: qaGobiApiFms.h:61
Definition: qaGobiApiFms.h:56
Definition: qaGobiApiFms.h:210
ULONG SLQSGetImageInfoMC77xx(LPCSTR path, struct qmifwinfo_s *pinfo)
const char * LPCSTR
Definition: SwiDataTypes.h:32
Definition: qaGobiApiFms.h:194
Definition: qaGobiApiFms.h:199
Definition: qaGobiApiFms.h:765
struct slqsfwinfo_s s
Definition: qaGobiApiFms.h:136
Definition: qaGobiApiFms.h:760
ULONG GetImagesPreference(ULONG *pImageListSize, struct PrefImageList *pImageList)
#define SLQSFWINFO_CARRIER_SZ
Definition: qaGobiApiFms.h:25
Definition: qaGobiApiFms.h:219
BYTE m_PriImageId[16]
Definition: qaGobiApiFms.h:834
#define SLQSFWINFO_MODELID_SZ
Definition: qaGobiApiFms.h:20
CHAR modelid_str[20]
Definition: qaGobiApiFms.h:89
Definition: qaGobiApiFms.h:205
BYTE maxImages
Definition: qaGobiApiFms.h:570
#define GOBI_MBN_IMG_ID_STR_LEN
Definition: qaGobiApiFms.h:30
struct ImageIDEntries imageIDEntries[2]
Definition: qaGobiApiFms.h:588
Definition: qaGobiApiFms.h:88
Definition: qaGobiApiFms.h:167
Definition: qaGobiApiFms.h:187
BYTE storageIndex
Definition: qaGobiApiFms.h:539
Definition: qaGobiApiFms.h:237
Definition: qaGobiApiFms.h:764
Definition: qaGobiApiFms.h:213
Definition: qaGobiApiFms.h:206
eGobiImageTech
Definition: qaGobiApiFms.h:164
#define SLQSFWINFO_BOOTVERSION_SZ
Definition: qaGobiApiFms.h:21
#define SLQSFWINFO_PRIVERSION_SZ
Definition: qaGobiApiFms.h:26
eGobiDeviceSeries
Definition: qaGobiApiFms.h:758
struct ImageIdElement imageIDElement[50]
Definition: qaGobiApiFms.h:573
Definition: qaGobiApiFms.h:208
Definition: qaGobiApiFms.h:180
Definition: qaGobiApiFms.h:195
Definition: qaGobiApiFms.h:827
Definition: qaGobiApiFms.h:196
Definition: qaGobiApiFms.h:763
BYTE buildIdLength
Definition: qaGobiApiFms.h:409
ULONG GetStoredImages(ULONG *pImageListSize, BYTE *pImageList)
Definition: qaGobiApiFms.h:212
BYTE m_PriBuildId[32]
Definition: qaGobiApiFms.h:835
Definition: qaGobiApiFms.h:211
Definition: qaGobiApiFms.h:233
Definition: qaGobiApiFms.h:425
ULONG SLQSGetImageInfo_9x15(LPCSTR path, BYTE imgType, struct slqsfwinfo_s *pinfo)
unsigned long ULONG
Definition: SwiDataTypes.h:25
#define SLQSFWINFO_CUR_CARR_NAME
Definition: qaGobiApiFms.h:27
Definition: qaGobiApiFms.h:214
ULONG uResult
Definition: qaGobiApiFms.h:781
Definition: qaGobiApiFms.h:193
Definition: qaGobiApiFms.h:585
Definition: qaGobiApiFms.h:202
Definition: qaGobiApiFms.h:537
Definition: qaGobiApiFms.h:179
CHAR priversion_str[16]
Definition: qaGobiApiFms.h:95
Definition: qaGobiApiFms.h:225
Definition: qaGobiApiFms.h:215
CHAR bootversion_str[85]
Definition: qaGobiApiFms.h:90
ULONG m_nStorage
Definition: qaGobiApiFms.h:831
CHAR buildId[100]
Definition: qaGobiApiFms.h:410
Definition: qaGobiApiFms.h:183
Definition: qaGobiApiFms.h:249
Definition: qaGobiApiFms.h:201
Definition: qaGobiApiFms.h:766
Definition: qaGobiApiFms.h:218
Definition: qaGobiApiFms.h:223
ULONG GPSCapability
Definition: qaGobiApiFms.h:62
BYTE listSize
Definition: qaGobiApiFms.h:587
Definition: qaGobiApiFms.h:405
ULONG m_nFolderId
Definition: qaGobiApiFms.h:830
BYTE imageIDSize
Definition: qaGobiApiFms.h:572
CHAR cur_carr_rev[13]
Definition: qaGobiApiFms.h:97
Definition: qaGobiApiFms.h:166
BYTE imageID[16]
Definition: qaGobiApiFms.h:541
Definition: qaGobiApiFms.h:191
CHAR appversion_str[85]
Definition: qaGobiApiFms.h:91
Definition: qaGobiApiFms.h:189
BYTE m_FwBuildId[32]
Definition: qaGobiApiFms.h:833
Definition: qaGobiApiFms.h:248
union qmifwinfo_s::@1 dev
ULONG FirmwareID
Definition: qaGobiApiFms.h:58
CHAR sku_str[15]
Definition: qaGobiApiFms.h:92
BOOL SLQSIsSpkgFormatRequired(void)
Definition: qaGobiApiFms.h:217
Definition: qaGobiApiFms.h:238
#define SLQSFWINFO_CUR_CARR_REV
Definition: qaGobiApiFms.h:28
eGobiImageRegion
Definition: qaGobiApiFms.h:231
Definition: qaGobiApiFms.h:186
ULONG SLQSDownloadFirmwareToSlot(CHAR *pPath, BYTE slot_index, BYTE force_download)
ULONG Technology
Definition: qaGobiApiFms.h:59
Definition: qaGobiApiFms.h:567
BYTE failureCount
Definition: qaGobiApiFms.h:540
BYTE listSize
Definition: qaGobiApiFms.h:427
Definition: qaGobiApiFms.h:222
Definition: qaGobiApiFms.h:177
Definition: qaGobiApiFms.h:200
Definition: qaGobiApiFms.h:234
ULONG UpgradeFirmware2k(CHAR *pDestinationPath)
ULONG Carrier
Definition: qaGobiApiFms.h:60
int BOOL
Definition: SwiDataTypes.h:33
ULONG DeleteStoredImage(ULONG imageInfoSize, BYTE *pImageInfo)
Definition: qaGobiApiFms.h:761
unsigned short WORD
Definition: SwiDataTypes.h:30
Definition: qaGobiApiFms.h:224
Definition: qaGobiApiFms.h:246
ULONG SLQSSwiGetAllCarrierImages(ULONG *pNumOfItems, struct SWI_STRUCT_CarrierImage *pCarrierImages, wchar_t *pFolderPath)
Definition: qaGobiApiFms.h:181
BYTE executingImage
Definition: qaGobiApiFms.h:571
#define SLQSFWINFO_SKU_SZ
Definition: qaGobiApiFms.h:23
#define SLQSFWINFO_PACKAGEID_SZ
Definition: qaGobiApiFms.h:24
Definition: qaGobiApiFms.h:197
CHAR cur_carr_name[17]
Definition: qaGobiApiFms.h:96

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved