LinuxQMISDK  SLQS04.00.18
 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 #define DEVICE_OFFLINE 3
37 
38 #define FIRMWARE_UPDATE_SUCCESS 0x01
39 #define FIRMWARE_UPDATE_FAIL 0x01
40 #define PRI_UPDATE_FAIL 0x02
41 #define FIRMWARE_UPGRADE_SUCCESS 0x00
42 
43 #define IMG_ID_LEN 16
44 #define BUILD_ID_LEN 100
45 #define G3K_FIRMWARE_DOWNLOAD 1
46 #define SPKG_FIRMWARE_DOWNLOAD 2
47 
48 #define UNIQUE_ID_LEN 16
49 #define BUILD_ID_MAX_LEN 255
50 #define IMGDETAILS_LEN 16
51 #define MAX_IMAGE_IDE_ELEMENTS 50
52 
67 struct fwinfo_s
68 {
74 };
75 
99 struct slqsfwinfo_s{
109 };
110 
143 {
144  union
145  {
146  struct fwinfo_s g;
147  struct slqsfwinfo_s s;
148  } dev;
149 };
150 
168 extern ULONG GetImageStore(
169  WORD imageStorePathSize,
170  CHAR *pImageStorePath );
171 
176 {
177  eGOBI_IMG_TECH_CDMA = 0, /* 0 - CDMA */
178  eGOBI_IMG_TECH_UMTS /* 1 - UMTS */
179 };
180 
185 {
186  eGOBI_IMG_CAR_GENERIC = 1, /* 001 */
189 
190  eGOBI_IMG_CAR_VERIZON = 101, /* 101 */
195  eGOBI_IMG_CAR_US, /* 106 */
207  eGOBI_IMG_CAR_OMH, /* 118 */
209 
210  eGOBI_IMG_CAR_ATT = 201, /* 201 */
216  eGOBI_IMG_CAR_3, /* 207 */
217  eGOBI_IMG_CAR_O2, /* 208 */
218  eGOBI_IMG_CAR_SFR, /* 209 */
237 };
238 
243 {
244  eGOBI_IMG_REG_NA = 0, /* 0 - North America */
245  eGOBI_IMG_REG_LA, /* 1 - Latin America */
246  eGOBI_IMG_REG_EU, /* 2 - Europe */
247  eGOBI_IMG_REG_ASIA, /* 3 - Asia */
248  eGOBI_IMG_REG_AUS, /* 4 - Australia */
249  eGOBI_IMG_REG_GLOBAL /* 5 - Global */
250 };
251 
256 {
257  eGOBI_IMG_GPS_NONE = 0, /* 0 - None */
258  eGOBI_IMG_GPS_STAND_ALONE, /* 1 - Stand-alone */
259  eGOBI_IMG_GPS_ASSISTED, /* 2 - Stand-alone + AGPS + XTRA */
260  eGOBI_IMG_GPS_NO_XTRA /* 3 - Stand-alone + AGPS */
261 };
262 
278  struct qmifwinfo_s *pinfo );
279 
303  LPCSTR path,
304  struct qmifwinfo_s *pinfo );
305 
327  LPCSTR path,
328  struct qmifwinfo_s *pinfo );
329 
356  LPCSTR path,
357  struct qmifwinfo_s *pinfo );
358 
393  CHAR *pDestinationPath );
394 
399 #pragma pack(push)
400 #pragma pack(1)
401 
421 {
426 };
427 
440 {
443 };
444 
448 #pragma pack(pop)
449 
471  ULONG *pImageListSize,
472  struct PrefImageList *pImageList );
473 
516  ULONG imageListSize,
517  BYTE *pImageList,
518  ULONG bForceDownload,
519  BYTE modemIndex,
520  ULONG *pImageTypesSize,
521  BYTE *pImageTypes );
522 
527 #pragma pack(push)
528 #pragma pack(1)
529 
552 {
558 };
559 
582 {
588 };
589 
599 struct ImageList
600 {
603 };
604 
608 #pragma pack(pop)
609 
631  ULONG *pImageListSize,
632  BYTE *pImageList );
633 
656  ULONG imageInfoSize,
657  BYTE *pImageInfo );
658 
685  LPCSTR path,
686  BYTE imgType,
687  struct slqsfwinfo_s *pinfo );
688 
711  CHAR *pDestinationPath );
712 
758  CHAR *pDestinationPath );
759 
774 ULONG SLQSGetBootVersionNumber(ULONG *bootversion);
775 
788 
801 void SLQSSetSpkgFormatRequired(BYTE isneeded);
802 
804  LPCSTR path );
805 
810 {
811  eGOBI_DEV_SERIES_UNKNOWN = -1, /* unknown */
812  eGOBI_DEV_SERIES_NON_GOBI = 0, /* Non Gobi */
814  eGOBI_DEV_SERIES_SIERRA_GOBI, /* MC9090 SL9090 */
817  eGOBI_DEV_SERIES_9X07_9X50, /* 9x07, 9x50 */
819 };
831 {
834 };
835 
846 
847 
880 {
888 };
908  struct SWI_STRUCT_CarrierImage *pCarrierImages,
909  char *pFolderPath);
910 
936  CHAR* path, struct slqsfwinfo_s fwImgInfo,
937  struct slqsfwinfo_s priImgInfo, BYTE slot, BYTE forceDownload);
938 
989  CHAR *pPath, BYTE slot_index, BYTE force_download );
990 
1009 ULONG SLQSGetValidFwPriCombinations (struct ImageList *pStoredImageList,
1010  ULONG *pValidCombinationSize,
1011  struct SWI_STRUCT_CarrierImage *pValidCombinations);
1012 
1025 
1037 void SLQSSetCrashStateCheckIgnore(BOOL ignore);
1058 typedef struct
1059 {
1061  BYTE uniqueID[UNIQUE_ID_LEN];
1064 } CurrImageInfo;
1065 
1089 typedef struct
1090 {
1097 } CurrentImgList;
1098 
1115 ULONG SLQSSwiGetFirmwareCurr( CurrentImgList *pCurrentImgList );
1116 
1133  LPCSTR path );
1134 
1162  CHAR *path,
1163  ULONG isMDM9x15,
1164  WORD imgMask,
1165  BYTE mdmProtocol);
1166 
1167 #ifdef __cplusplus
1168 } /* extern "C" { */
1169 #endif
1170 
1171 #endif /* __GOBI_API_FMS_H__ */
Definition: qaGobiApiFms.h:201
Definition: qaGobiApiFms.h:215
Definition: qaGobiApiFms.h:199
ULONG SetImagesPreference(ULONG imageListSize, BYTE *pImageList, ULONG bForceDownload, BYTE modemIndex, ULONG *pImageTypesSize, BYTE *pImageTypes)
#define MAX_IMAGE_IDE_ELEMENTS
Definition: qaGobiApiFms.h:51
void eGetDeviceSeries(struct sGetDeviceSeriesResult *)
CHAR buildID[100]
Definition: qaGobiApiFms.h:557
Definition: qaGobiApiFms.h:186
ULONG SLQSUpgradeFirmware9x15(CHAR *pDestinationPath)
ULONG GetImageStore(WORD imageStorePathSize, CHAR *pImageStorePath)
char CHAR
Definition: SwiDataTypes.h:34
#define IMGDETAILS_LEN
Definition: qaGobiApiFms.h:50
#define SLQSFWINFO_APPVERSION_SZ
Definition: qaGobiApiFms.h:22
Definition: qaGobiApiFms.h:187
ULONG m_nCarrierId
Definition: qaGobiApiFms.h:881
void SLQSSetCrashStateCheckIgnore(BOOL ignore)
ULONG upgrade_mc77xx_fw(LPCSTR path)
CurrImageInfo * pCurrImgInfo
Definition: qaGobiApiFms.h:1092
#define BUILD_ID_LEN
Definition: qaGobiApiFms.h:44
struct fwinfo_s g
Definition: qaGobiApiFms.h:146
unsigned char BYTE
Definition: SwiDataTypes.h:33
#define GOBI_MBN_BUILD_ID_STR_LEN
Definition: qaGobiApiFms.h:31
Definition: qaGobiApiFms.h:220
ULONG SLQSSwiGetAllCarrierImages(ULONG *pNumOfItems, struct SWI_STRUCT_CarrierImage *pCarrierImages, char *pFolderPath)
Definition: qaGobiApiFms.h:231
CHAR packageid_str[85]
Definition: qaGobiApiFms.h:104
Definition: qaGobiApiFms.h:246
Definition: qaGobiApiFms.h:195
struct ImageElement listEntries[2]
Definition: qaGobiApiFms.h:442
#define UNIQUE_ID_LEN
Definition: qaGobiApiFms.h:48
Definition: qaGobiApiFms.h:214
Definition: qaGobiApiFms.h:193
BYTE imageType
Definition: qaGobiApiFms.h:583
Definition: qaGobiApiFms.h:218
Definition: qaGobiApiFms.h:232
BYTE m_FwImageId[16]
Definition: qaGobiApiFms.h:884
eGobiImageGPS
Definition: qaGobiApiFms.h:255
BYTE buildIDLength
Definition: qaGobiApiFms.h:556
ULONG SLQSGetImageInfo(LPCSTR path, struct qmifwinfo_s *pinfo)
CHAR carrier_str[20]
Definition: qaGobiApiFms.h:105
ULONG SLQSGetImageInfoMC83xx(LPCSTR path, struct qmifwinfo_s *pinfo)
ULONG SLQSGetFirmwareInfo(struct qmifwinfo_s *pinfo)
Definition: qaGobiApiFms.h:196
enum eGobiDeviceSeries eDevice
Definition: qaGobiApiFms.h:832
#define GOBI_LISTENTRIES_MAX
Definition: qaGobiApiFms.h:32
eGobiImageCarrier
Definition: qaGobiApiFms.h:184
ULONG SLQSGetBootVersionNumber(ULONG *bootversion)
Definition: qaGobiApiFms.h:227
BYTE imageId[16]
Definition: qaGobiApiFms.h:423
Definition: qaGobiApiFms.h:203
Definition: qaGobiApiFms.h:813
Definition: qaGobiApiFms.h:247
Definition: qaGobiApiFms.h:258
Definition: qaGobiApiFms.h:830
BYTE imageType
Definition: qaGobiApiFms.h:422
Definition: qaGobiApiFms.h:142
ULONG Region
Definition: qaGobiApiFms.h:72
Definition: qaGobiApiFms.h:67
Definition: qaGobiApiFms.h:221
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:205
ULONG SLQSSwiGetFirmwareCurr(CurrentImgList *pCurrentImgList)
Definition: qaGobiApiFms.h:210
Definition: qaGobiApiFms.h:816
struct slqsfwinfo_s s
Definition: qaGobiApiFms.h:147
Definition: qaGobiApiFms.h:811
ULONG GetImagesPreference(ULONG *pImageListSize, struct PrefImageList *pImageList)
#define SLQSFWINFO_CARRIER_SZ
Definition: qaGobiApiFms.h:25
Definition: qaGobiApiFms.h:230
BYTE m_PriImageId[16]
Definition: qaGobiApiFms.h:886
#define SLQSFWINFO_MODELID_SZ
Definition: qaGobiApiFms.h:20
CHAR modelid_str[20]
Definition: qaGobiApiFms.h:100
Definition: qaGobiApiFms.h:216
BYTE maxImages
Definition: qaGobiApiFms.h:584
#define GOBI_MBN_IMG_ID_STR_LEN
Definition: qaGobiApiFms.h:30
ULONG SLQSSetSIMBasedImageSwitching(void)
union qmifwinfo_s::@2 dev
struct ImageIDEntries imageIDEntries[2]
Definition: qaGobiApiFms.h:602
Definition: qaGobiApiFms.h:99
Definition: qaGobiApiFms.h:178
Definition: qaGobiApiFms.h:198
BYTE storageIndex
Definition: qaGobiApiFms.h:553
Definition: qaGobiApiFms.h:248
Definition: qaGobiApiFms.h:815
Definition: qaGobiApiFms.h:224
Definition: qaGobiApiFms.h:217
eGobiImageTech
Definition: qaGobiApiFms.h:175
#define SLQSFWINFO_BOOTVERSION_SZ
Definition: qaGobiApiFms.h:21
#define SLQSFWINFO_PRIVERSION_SZ
Definition: qaGobiApiFms.h:26
eGobiDeviceSeries
Definition: qaGobiApiFms.h:809
struct ImageIdElement imageIDElement[50]
Definition: qaGobiApiFms.h:587
Definition: qaGobiApiFms.h:219
Definition: qaGobiApiFms.h:191
BYTE m_PriBuildId[100]
Definition: qaGobiApiFms.h:887
Definition: qaGobiApiFms.h:206
Definition: qaGobiApiFms.h:879
Definition: qaGobiApiFms.h:207
Definition: qaGobiApiFms.h:814
BYTE buildIdLength
Definition: qaGobiApiFms.h:424
ULONG GetStoredImages(ULONG *pImageListSize, BYTE *pImageList)
#define BUILD_ID_MAX_LEN
Definition: qaGobiApiFms.h:49
Definition: qaGobiApiFms.h:223
Definition: qaGobiApiFms.h:222
Definition: qaGobiApiFms.h:244
Definition: qaGobiApiFms.h:439
ULONG SLQSGetImageInfo_9x15(LPCSTR path, BYTE imgType, struct slqsfwinfo_s *pinfo)
Definition: qaGobiApiFms.h:1058
#define SLQSFWINFO_CUR_CARR_NAME
Definition: qaGobiApiFms.h:27
Definition: qaGobiApiFms.h:225
ULONG uResult
Definition: qaGobiApiFms.h:833
ULONG SetImagePath(CHAR *path, ULONG isMDM9x15, WORD imgMask, BYTE mdmProtocol)
Definition: qaGobiApiFms.h:204
Definition: qaGobiApiFms.h:599
Definition: qaGobiApiFms.h:213
Definition: qaGobiApiFms.h:551
BYTE m_FwBuildId[100]
Definition: qaGobiApiFms.h:885
Definition: qaGobiApiFms.h:190
CHAR priversion_str[16]
Definition: qaGobiApiFms.h:106
Definition: qaGobiApiFms.h:236
Definition: qaGobiApiFms.h:226
BYTE numEntries
Definition: qaGobiApiFms.h:1091
CHAR bootversion_str[85]
Definition: qaGobiApiFms.h:101
ULONG m_nStorage
Definition: qaGobiApiFms.h:883
CHAR buildId[100]
Definition: qaGobiApiFms.h:425
Definition: qaGobiApiFms.h:194
Definition: qaGobiApiFms.h:260
Definition: qaGobiApiFms.h:212
BYTE imageType
Definition: qaGobiApiFms.h:1060
Definition: qaGobiApiFms.h:818
Definition: qaGobiApiFms.h:229
Definition: qaGobiApiFms.h:234
ULONG GPSCapability
Definition: qaGobiApiFms.h:73
BYTE listSize
Definition: qaGobiApiFms.h:601
Definition: qaGobiApiFms.h:420
ULONG m_nFolderId
Definition: qaGobiApiFms.h:882
BYTE buildIDLen
Definition: qaGobiApiFms.h:1062
BYTE imageIDSize
Definition: qaGobiApiFms.h:586
CHAR cur_carr_rev[13]
Definition: qaGobiApiFms.h:108
Definition: qaGobiApiFms.h:177
BYTE imageID[16]
Definition: qaGobiApiFms.h:555
Definition: qaGobiApiFms.h:817
Definition: qaGobiApiFms.h:202
CHAR appversion_str[85]
Definition: qaGobiApiFms.h:102
Definition: qaGobiApiFms.h:200
ULONG DownloadToSlot(CHAR *path, struct slqsfwinfo_s fwImgInfo, struct slqsfwinfo_s priImgInfo, BYTE slot, BYTE forceDownload)
Definition: qaGobiApiFms.h:259
ULONG FirmwareID
Definition: qaGobiApiFms.h:69
CHAR sku_str[15]
Definition: qaGobiApiFms.h:103
BOOL SLQSIsSpkgFormatRequired(void)
Definition: qaGobiApiFms.h:228
Definition: qaGobiApiFms.h:249
#define SLQSFWINFO_CUR_CARR_REV
Definition: qaGobiApiFms.h:28
eGobiImageRegion
Definition: qaGobiApiFms.h:242
Definition: qaGobiApiFms.h:197
ULONG SLQSDownloadFirmwareToSlot(CHAR *pPath, BYTE slot_index, BYTE force_download)
ULONG Technology
Definition: qaGobiApiFms.h:70
Definition: qaGobiApiFms.h:581
BYTE failureCount
Definition: qaGobiApiFms.h:554
void SLQSSetSpkgFormatRequired(BYTE isneeded)
ULONG upgrade_9x07_9x50_fw(LPCSTR path)
BYTE listSize
Definition: qaGobiApiFms.h:441
Definition: qaGobiApiFms.h:233
Definition: qaGobiApiFms.h:188
Definition: qaGobiApiFms.h:211
Definition: qaGobiApiFms.h:245
ULONG UpgradeFirmware2k(CHAR *pDestinationPath)
ULONG Carrier
Definition: qaGobiApiFms.h:71
int BOOL
Definition: SwiDataTypes.h:38
ULONG DeleteStoredImage(ULONG imageInfoSize, BYTE *pImageInfo)
Definition: qaGobiApiFms.h:812
unsigned int ULONG
Definition: SwiDataTypes.h:29
unsigned short WORD
Definition: SwiDataTypes.h:35
Definition: qaGobiApiFms.h:235
Definition: qaGobiApiFms.h:257
Definition: qaGobiApiFms.h:1089
ULONG SLQSUpgradeFirmware9x07(CHAR *pDestinationPath)
#define IMG_ID_LEN
Definition: qaGobiApiFms.h:43
Definition: qaGobiApiFms.h:192
BYTE executingImage
Definition: qaGobiApiFms.h:585
#define SLQSFWINFO_SKU_SZ
Definition: qaGobiApiFms.h:23
#define SLQSFWINFO_PACKAGEID_SZ
Definition: qaGobiApiFms.h:24
Definition: qaGobiApiFms.h:208
CHAR cur_carr_name[17]
Definition: qaGobiApiFms.h:107

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