LinuxQMISDK  SLQS04.00.21
 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 #define SLQSFWINFO_PART_NO_SZ 15
30 /* Gobi .mbn image defines */
31 #define GOBI_MBN_IMG_ID_SIZE 16
32 #define TOTAL_IMAGE_ID_STRING_SIZE 100
33 #define GOBI_MBN_IMG_ID_STR_LEN TOTAL_IMAGE_ID_STRING_SIZE
34 #define GOBI_MBN_BUILD_ID_STR_LEN TOTAL_IMAGE_ID_STRING_SIZE
35 #define GOBI_LISTENTRIES_MAX 2
36 #define GOBI_SET_IMG_PREF_RSPLEN 40
37 #define DEVICE_SHUTDOWN 5
38 #define DEVICE_RESET 4
39 #define DEVICE_OFFLINE 3
40 
41 #define FIRMWARE_UPDATE_SUCCESS 0x01
42 #define FIRMWARE_UPDATE_FAIL 0x01
43 #define PRI_UPDATE_FAIL 0x02
44 #define FIRMWARE_UPGRADE_SUCCESS 0x00
45 
46 #define IMG_ID_LEN TOTAL_IMAGE_ID_STRING_SIZE
47 #define BUILD_ID_LEN TOTAL_IMAGE_ID_STRING_SIZE //100
48 #define G3K_FIRMWARE_DOWNLOAD 1
49 #define SPKG_FIRMWARE_DOWNLOAD 2
50 
51 #define UNIQUE_ID_LEN 16
52 #define BUILD_ID_MAX_LEN 255
53 #define IMGDETAILS_LEN 16
54 #define MAX_IMAGE_IDE_ELEMENTS 50
55 
70 struct fwinfo_s
71 {
77 };
78 
112 };
113 
122 };
123 
156 {
157  union
158  {
159  struct fwinfo_s g;
160  struct slqsfwinfo_s s;
161  } dev;
162 };
163 
181 extern ULONG GetImageStore(
182  WORD imageStorePathSize,
183  CHAR *pImageStorePath );
184 
189 {
190  eGOBI_IMG_TECH_CDMA = 0, /* 0 - CDMA */
191  eGOBI_IMG_TECH_UMTS /* 1 - UMTS */
192 };
193 
198 {
199  eGOBI_IMG_CAR_GENERIC = 1, /* 001 */
202 
203  eGOBI_IMG_CAR_VERIZON = 101, /* 101 */
208  eGOBI_IMG_CAR_US, /* 106 */
220  eGOBI_IMG_CAR_OMH, /* 118 */
222 
223  eGOBI_IMG_CAR_ATT = 201, /* 201 */
229  eGOBI_IMG_CAR_3, /* 207 */
230  eGOBI_IMG_CAR_O2, /* 208 */
231  eGOBI_IMG_CAR_SFR, /* 209 */
250 };
251 
256 {
257  eGOBI_IMG_REG_NA = 0, /* 0 - North America */
258  eGOBI_IMG_REG_LA, /* 1 - Latin America */
259  eGOBI_IMG_REG_EU, /* 2 - Europe */
260  eGOBI_IMG_REG_ASIA, /* 3 - Asia */
261  eGOBI_IMG_REG_AUS, /* 4 - Australia */
262  eGOBI_IMG_REG_GLOBAL /* 5 - Global */
263 };
264 
269 {
270  eGOBI_IMG_GPS_NONE = 0, /* 0 - None */
271  eGOBI_IMG_GPS_STAND_ALONE, /* 1 - Stand-alone */
272  eGOBI_IMG_GPS_ASSISTED, /* 2 - Stand-alone + AGPS + XTRA */
273  eGOBI_IMG_GPS_NO_XTRA /* 3 - Stand-alone + AGPS */
274 };
275 
291  struct qmifwinfo_s *pinfo );
292 
316  LPCSTR path,
317  struct qmifwinfo_s *pinfo );
318 
340  LPCSTR path,
341  struct qmifwinfo_s *pinfo );
342 
369  LPCSTR path,
370  struct qmifwinfo_s *pinfo );
371 
391  LPCSTR path,
392  BYTE imgType,
393  struct slqsfwpartno_s *pinfo );
394 
429  CHAR *pDestinationPath );
430 
435 #pragma pack(push)
436 #pragma pack(1)
437 
457 {
462 };
463 
476 {
479 };
480 
484 #pragma pack(pop)
485 
507  ULONG *pImageListSize,
508  struct PrefImageList *pImageList );
509 
552  ULONG imageListSize,
553  BYTE *pImageList,
554  ULONG bForceDownload,
555  BYTE modemIndex,
556  ULONG *pImageTypesSize,
557  BYTE *pImageTypes );
558 
563 #pragma pack(push)
564 #pragma pack(1)
565 
588 {
594 };
595 
618 {
624 };
625 
635 struct ImageList
636 {
639 };
640 
644 #pragma pack(pop)
645 
667  ULONG *pImageListSize,
668  BYTE *pImageList );
669 
692  ULONG imageInfoSize,
693  BYTE *pImageInfo );
694 
721  LPCSTR path,
722  BYTE imgType,
723  struct slqsfwinfo_s *pinfo );
724 
747  CHAR *pDestinationPath );
748 
794  CHAR *pDestinationPath );
795 
810 ULONG SLQSGetBootVersionNumber(ULONG *bootversion);
811 
824 
837 void SLQSSetSpkgFormatRequired(BYTE isneeded);
838 
840  LPCSTR path );
841 
846 {
847  eGOBI_DEV_SERIES_UNKNOWN = -1, /* unknown */
848  eGOBI_DEV_SERIES_NON_GOBI = 0, /* Non Gobi */
850  eGOBI_DEV_SERIES_SIERRA_GOBI, /* MC9090 SL9090 */
853  eGOBI_DEV_SERIES_9X07_9X50, /* 9x07, 9x50 */
855 };
867 {
870 };
871 
882 
883 
916 {
924 };
944  struct SWI_STRUCT_CarrierImage *pCarrierImages,
945  char *pFolderPath);
946 
972  CHAR* path, struct slqsfwinfo_s fwImgInfo,
973  struct slqsfwinfo_s priImgInfo, BYTE slot, BYTE forceDownload);
974 
1025  CHAR *pPath, BYTE slot_index, BYTE force_download );
1026 
1045 ULONG SLQSGetValidFwPriCombinations (struct ImageList *pStoredImageList,
1046  ULONG *pValidCombinationSize,
1047  struct SWI_STRUCT_CarrierImage *pValidCombinations);
1048 
1061 
1073 void SLQSSetCrashStateCheckIgnore(BOOL ignore);
1094 typedef struct
1095 {
1097  BYTE uniqueID[UNIQUE_ID_LEN];
1100 } CurrImageInfo;
1101 
1125 typedef struct
1126 {
1133 } CurrentImgList;
1134 
1151 ULONG SLQSSwiGetFirmwareCurr( CurrentImgList *pCurrentImgList );
1152 
1169  LPCSTR path );
1170 
1198  CHAR *path,
1199  ULONG isMDM9x15,
1200  WORD imgMask,
1201  BYTE mdmProtocol);
1202 
1222 int SLQSIsBootloaderDebugEnabled(const char* szPath,
1223  const char* pQsn );
1224 
1225 #ifdef __cplusplus
1226 } /* extern "C" { */
1227 #endif
1228 
1229 #endif /* __GOBI_API_FMS_H__ */
Definition: qaGobiApiFms.h:214
Definition: qaGobiApiFms.h:228
Definition: qaGobiApiFms.h:212
ULONG SetImagesPreference(ULONG imageListSize, BYTE *pImageList, ULONG bForceDownload, BYTE modemIndex, ULONG *pImageTypesSize, BYTE *pImageTypes)
#define MAX_IMAGE_IDE_ELEMENTS
Definition: qaGobiApiFms.h:54
void eGetDeviceSeries(struct sGetDeviceSeriesResult *)
CHAR buildID[100]
Definition: qaGobiApiFms.h:593
Definition: qaGobiApiFms.h:199
BYTE m_PriImageId[100]
Definition: qaGobiApiFms.h:922
ULONG SLQSUpgradeFirmware9x15(CHAR *pDestinationPath)
ULONG GetImageStore(WORD imageStorePathSize, CHAR *pImageStorePath)
char CHAR
Definition: SwiDataTypes.h:34
#define IMGDETAILS_LEN
Definition: qaGobiApiFms.h:53
#define SLQSFWINFO_APPVERSION_SZ
Definition: qaGobiApiFms.h:22
Definition: qaGobiApiFms.h:200
ULONG m_nCarrierId
Definition: qaGobiApiFms.h:917
void SLQSSetCrashStateCheckIgnore(BOOL ignore)
BYTE imageId[100]
Definition: qaGobiApiFms.h:459
ULONG upgrade_mc77xx_fw(LPCSTR path)
CurrImageInfo * pCurrImgInfo
Definition: qaGobiApiFms.h:1128
#define BUILD_ID_LEN
Definition: qaGobiApiFms.h:47
struct fwinfo_s g
Definition: qaGobiApiFms.h:159
unsigned char BYTE
Definition: SwiDataTypes.h:33
#define GOBI_MBN_BUILD_ID_STR_LEN
Definition: qaGobiApiFms.h:34
Definition: qaGobiApiFms.h:233
ULONG SLQSSwiGetAllCarrierImages(ULONG *pNumOfItems, struct SWI_STRUCT_CarrierImage *pCarrierImages, char *pFolderPath)
Definition: qaGobiApiFms.h:244
CHAR packageid_str[85]
Definition: qaGobiApiFms.h:107
Definition: qaGobiApiFms.h:259
Definition: qaGobiApiFms.h:208
struct ImageElement listEntries[2]
Definition: qaGobiApiFms.h:478
#define UNIQUE_ID_LEN
Definition: qaGobiApiFms.h:51
Definition: qaGobiApiFms.h:227
Definition: qaGobiApiFms.h:206
BYTE imageType
Definition: qaGobiApiFms.h:619
Definition: qaGobiApiFms.h:231
Definition: qaGobiApiFms.h:245
eGobiImageGPS
Definition: qaGobiApiFms.h:268
BYTE buildIDLength
Definition: qaGobiApiFms.h:592
ULONG SLQSGetImageInfo(LPCSTR path, struct qmifwinfo_s *pinfo)
CHAR carrier_str[20]
Definition: qaGobiApiFms.h:108
ULONG SLQSGetImageInfoMC83xx(LPCSTR path, struct qmifwinfo_s *pinfo)
ULONG SLQSGetFirmwareInfo(struct qmifwinfo_s *pinfo)
Definition: qaGobiApiFms.h:209
enum eGobiDeviceSeries eDevice
Definition: qaGobiApiFms.h:868
#define GOBI_LISTENTRIES_MAX
Definition: qaGobiApiFms.h:35
eGobiImageCarrier
Definition: qaGobiApiFms.h:197
ULONG SLQSGetBootVersionNumber(ULONG *bootversion)
Definition: qaGobiApiFms.h:240
Definition: qaGobiApiFms.h:216
Definition: qaGobiApiFms.h:849
Definition: qaGobiApiFms.h:260
Definition: qaGobiApiFms.h:271
Definition: qaGobiApiFms.h:866
BYTE imageType
Definition: qaGobiApiFms.h:458
Definition: qaGobiApiFms.h:155
ULONG Region
Definition: qaGobiApiFms.h:75
Definition: qaGobiApiFms.h:70
Definition: qaGobiApiFms.h:234
ULONG SLQSGetImageInfoMC77xx(LPCSTR path, struct qmifwinfo_s *pinfo)
ULONG SLQSGetValidFwPriCombinations(struct ImageList *pStoredImageList, ULONG *pValidCombinationSize, struct SWI_STRUCT_CarrierImage *pValidCombinations)
const char * LPCSTR
Definition: SwiDataTypes.h:37
Definition: qaGobiApiFms.h:218
BYTE m_FwImageId[100]
Definition: qaGobiApiFms.h:920
ULONG SLQSSwiGetFirmwareCurr(CurrentImgList *pCurrentImgList)
Definition: qaGobiApiFms.h:223
Definition: qaGobiApiFms.h:852
struct slqsfwinfo_s s
Definition: qaGobiApiFms.h:160
Definition: qaGobiApiFms.h:847
ULONG GetImagesPreference(ULONG *pImageListSize, struct PrefImageList *pImageList)
#define SLQSFWINFO_CARRIER_SZ
Definition: qaGobiApiFms.h:25
Definition: qaGobiApiFms.h:243
#define SLQSFWINFO_MODELID_SZ
Definition: qaGobiApiFms.h:20
CHAR modelid_str[20]
Definition: qaGobiApiFms.h:103
Definition: qaGobiApiFms.h:229
BYTE maxImages
Definition: qaGobiApiFms.h:620
#define GOBI_MBN_IMG_ID_STR_LEN
Definition: qaGobiApiFms.h:33
ULONG SLQSSetSIMBasedImageSwitching(void)
union qmifwinfo_s::@2 dev
struct ImageIDEntries imageIDEntries[2]
Definition: qaGobiApiFms.h:638
Definition: qaGobiApiFms.h:102
Definition: qaGobiApiFms.h:191
Definition: qaGobiApiFms.h:211
BYTE storageIndex
Definition: qaGobiApiFms.h:589
Definition: qaGobiApiFms.h:261
Definition: qaGobiApiFms.h:851
Definition: qaGobiApiFms.h:237
ULONG SLQSGetImagePartNumber(LPCSTR path, BYTE imgType, struct slqsfwpartno_s *pinfo)
Definition: qaGobiApiFms.h:230
eGobiImageTech
Definition: qaGobiApiFms.h:188
#define SLQSFWINFO_BOOTVERSION_SZ
Definition: qaGobiApiFms.h:21
#define SLQSFWINFO_PRIVERSION_SZ
Definition: qaGobiApiFms.h:26
Definition: qaGobiApiFms.h:120
eGobiDeviceSeries
Definition: qaGobiApiFms.h:845
struct ImageIdElement imageIDElement[50]
Definition: qaGobiApiFms.h:623
Definition: qaGobiApiFms.h:232
Definition: qaGobiApiFms.h:204
BYTE m_PriBuildId[100]
Definition: qaGobiApiFms.h:923
Definition: qaGobiApiFms.h:219
Definition: qaGobiApiFms.h:915
Definition: qaGobiApiFms.h:220
Definition: qaGobiApiFms.h:850
CHAR partno_str[15]
Definition: qaGobiApiFms.h:121
BYTE buildIdLength
Definition: qaGobiApiFms.h:460
ULONG GetStoredImages(ULONG *pImageListSize, BYTE *pImageList)
#define BUILD_ID_MAX_LEN
Definition: qaGobiApiFms.h:52
Definition: qaGobiApiFms.h:236
Definition: qaGobiApiFms.h:235
Definition: qaGobiApiFms.h:257
Definition: qaGobiApiFms.h:475
ULONG SLQSGetImageInfo_9x15(LPCSTR path, BYTE imgType, struct slqsfwinfo_s *pinfo)
Definition: qaGobiApiFms.h:1094
#define SLQSFWINFO_CUR_CARR_NAME
Definition: qaGobiApiFms.h:27
Definition: qaGobiApiFms.h:238
ULONG uResult
Definition: qaGobiApiFms.h:869
ULONG SetImagePath(CHAR *path, ULONG isMDM9x15, WORD imgMask, BYTE mdmProtocol)
Definition: qaGobiApiFms.h:217
Definition: qaGobiApiFms.h:635
Definition: qaGobiApiFms.h:226
Definition: qaGobiApiFms.h:587
BYTE m_FwBuildId[100]
Definition: qaGobiApiFms.h:921
Definition: qaGobiApiFms.h:203
CHAR priversion_str[16]
Definition: qaGobiApiFms.h:109
Definition: qaGobiApiFms.h:249
Definition: qaGobiApiFms.h:239
BYTE numEntries
Definition: qaGobiApiFms.h:1127
CHAR bootversion_str[85]
Definition: qaGobiApiFms.h:104
ULONG m_nStorage
Definition: qaGobiApiFms.h:919
CHAR buildId[100]
Definition: qaGobiApiFms.h:461
Definition: qaGobiApiFms.h:207
BYTE imageID[100]
Definition: qaGobiApiFms.h:591
Definition: qaGobiApiFms.h:273
Definition: qaGobiApiFms.h:225
BYTE imageType
Definition: qaGobiApiFms.h:1096
Definition: qaGobiApiFms.h:854
Definition: qaGobiApiFms.h:242
Definition: qaGobiApiFms.h:247
ULONG GPSCapability
Definition: qaGobiApiFms.h:76
BYTE listSize
Definition: qaGobiApiFms.h:637
Definition: qaGobiApiFms.h:456
ULONG m_nFolderId
Definition: qaGobiApiFms.h:918
#define SLQSFWINFO_PART_NO_SZ
Definition: qaGobiApiFms.h:29
BYTE buildIDLen
Definition: qaGobiApiFms.h:1098
BYTE imageIDSize
Definition: qaGobiApiFms.h:622
CHAR cur_carr_rev[13]
Definition: qaGobiApiFms.h:111
Definition: qaGobiApiFms.h:190
Definition: qaGobiApiFms.h:853
Definition: qaGobiApiFms.h:215
CHAR appversion_str[85]
Definition: qaGobiApiFms.h:105
Definition: qaGobiApiFms.h:213
ULONG DownloadToSlot(CHAR *path, struct slqsfwinfo_s fwImgInfo, struct slqsfwinfo_s priImgInfo, BYTE slot, BYTE forceDownload)
Definition: qaGobiApiFms.h:272
ULONG FirmwareID
Definition: qaGobiApiFms.h:72
CHAR sku_str[15]
Definition: qaGobiApiFms.h:106
BOOL SLQSIsSpkgFormatRequired(void)
Definition: qaGobiApiFms.h:241
Definition: qaGobiApiFms.h:262
#define SLQSFWINFO_CUR_CARR_REV
Definition: qaGobiApiFms.h:28
eGobiImageRegion
Definition: qaGobiApiFms.h:255
Definition: qaGobiApiFms.h:210
ULONG SLQSDownloadFirmwareToSlot(CHAR *pPath, BYTE slot_index, BYTE force_download)
ULONG Technology
Definition: qaGobiApiFms.h:73
Definition: qaGobiApiFms.h:617
BYTE failureCount
Definition: qaGobiApiFms.h:590
void SLQSSetSpkgFormatRequired(BYTE isneeded)
ULONG upgrade_9x07_9x50_fw(LPCSTR path)
BYTE listSize
Definition: qaGobiApiFms.h:477
Definition: qaGobiApiFms.h:246
Definition: qaGobiApiFms.h:201
Definition: qaGobiApiFms.h:224
Definition: qaGobiApiFms.h:258
ULONG UpgradeFirmware2k(CHAR *pDestinationPath)
ULONG Carrier
Definition: qaGobiApiFms.h:74
int BOOL
Definition: SwiDataTypes.h:38
ULONG DeleteStoredImage(ULONG imageInfoSize, BYTE *pImageInfo)
int SLQSIsBootloaderDebugEnabled(const char *szPath, const char *pQsn)
Definition: qaGobiApiFms.h:848
unsigned int ULONG
Definition: SwiDataTypes.h:29
unsigned short WORD
Definition: SwiDataTypes.h:35
Definition: qaGobiApiFms.h:248
Definition: qaGobiApiFms.h:270
Definition: qaGobiApiFms.h:1125
ULONG SLQSUpgradeFirmware9x07(CHAR *pDestinationPath)
#define IMG_ID_LEN
Definition: qaGobiApiFms.h:46
Definition: qaGobiApiFms.h:205
BYTE executingImage
Definition: qaGobiApiFms.h:621
#define SLQSFWINFO_SKU_SZ
Definition: qaGobiApiFms.h:23
#define SLQSFWINFO_PACKAGEID_SZ
Definition: qaGobiApiFms.h:24
Definition: qaGobiApiFms.h:221
CHAR cur_carr_name[17]
Definition: qaGobiApiFms.h:110

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