LinuxQMISDK  SLQS04.00.02
 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 
62 struct fwinfo_s
63 {
69 };
70 
95 struct slqsfwinfo_s{
105 };
106 
139 {
140  union
141  {
142  struct fwinfo_s g;
143  struct slqsfwinfo_s s;
144  } dev;
145 };
146 
164 extern ULONG GetImageStore(
165  WORD imageStorePathSize,
166  CHAR *pImageStorePath );
167 
172 {
173  eGOBI_IMG_TECH_CDMA = 0, /* 0 - CDMA */
174  eGOBI_IMG_TECH_UMTS /* 1 - UMTS */
175 };
176 
181 {
182  eGOBI_IMG_CAR_GENERIC = 1, /* 001 */
185 
186  eGOBI_IMG_CAR_VERIZON = 101, /* 101 */
191  eGOBI_IMG_CAR_US, /* 106 */
203  eGOBI_IMG_CAR_OMH, /* 118 */
205 
206  eGOBI_IMG_CAR_ATT = 201, /* 201 */
212  eGOBI_IMG_CAR_3, /* 207 */
213  eGOBI_IMG_CAR_O2, /* 208 */
214  eGOBI_IMG_CAR_SFR, /* 209 */
233 };
234 
239 {
240  eGOBI_IMG_REG_NA = 0, /* 0 - North America */
241  eGOBI_IMG_REG_LA, /* 1 - Latin America */
242  eGOBI_IMG_REG_EU, /* 2 - Europe */
243  eGOBI_IMG_REG_ASIA, /* 3 - Asia */
244  eGOBI_IMG_REG_AUS, /* 4 - Australia */
245  eGOBI_IMG_REG_GLOBAL /* 5 - Global */
246 };
247 
252 {
253  eGOBI_IMG_GPS_NONE = 0, /* 0 - None */
254  eGOBI_IMG_GPS_STAND_ALONE, /* 1 - Stand-alone */
255  eGOBI_IMG_GPS_ASSISTED, /* 2 - Stand-alone + AGPS + XTRA */
256  eGOBI_IMG_GPS_NO_XTRA /* 3 - Stand-alone + AGPS */
257 };
258 
274  struct qmifwinfo_s *pinfo );
275 
299  LPCSTR path,
300  struct qmifwinfo_s *pinfo );
301 
323  LPCSTR path,
324  struct qmifwinfo_s *pinfo );
325 
352  LPCSTR path,
353  struct qmifwinfo_s *pinfo );
354 
389  CHAR *pDestinationPath );
390 
395 #pragma pack(push)
396 #pragma pack(1)
397 
417 {
422 };
423 
436 {
439 };
440 
444 #pragma pack(pop)
445 
467  ULONG *pImageListSize,
468  struct PrefImageList *pImageList );
469 
512  ULONG imageListSize,
513  BYTE *pImageList,
514  ULONG bForceDownload,
515  BYTE modemIndex,
516  ULONG *pImageTypesSize,
517  BYTE *pImageTypes );
518 
523 #pragma pack(push)
524 #pragma pack(1)
525 
548 {
554 };
555 
578 {
584 };
585 
595 struct ImageList
596 {
599 };
600 
604 #pragma pack(pop)
605 
627  ULONG *pImageListSize,
628  BYTE *pImageList );
629 
652  ULONG imageInfoSize,
653  BYTE *pImageInfo );
654 
681  LPCSTR path,
682  BYTE imgType,
683  struct slqsfwinfo_s *pinfo );
684 
730  CHAR *pDestinationPath );
731 
746 ULONG SLQSGetBootVersionNumber(ULONG *bootversion);
747 
760 
773 void SLQSSetSpkgFormatRequired(BYTE isneeded);
774 
776  LPCSTR path );
777 
782 {
783  eGOBI_DEV_SERIES_UNKNOWN = -1, /* unknown */
784  eGOBI_DEV_SERIES_NON_GOBI = 0, /* Non Gobi */
786  eGOBI_DEV_SERIES_SIERRA_GOBI, /* MC9090 SL9090 */
790 };
802 {
805 };
806 
817 
818 
851 {
859 };
879  struct SWI_STRUCT_CarrierImage *pCarrierImages,
880  char *pFolderPath);
881 
933  CHAR *pPath, BYTE slot_index, BYTE force_download );
934 
953 ULONG SLQSGetValidFwPriCombinations (struct ImageList *pStoredImageList,
954  ULONG *pValidCombinationSize,
955  struct SWI_STRUCT_CarrierImage *pValidCombinations);
956 
969 
982 
983 #ifdef __cplusplus
984 } /* extern "C" { */
985 #endif
986 
987 #endif /* __GOBI_API_FMS_H__ */
Definition: qaGobiApiFms.h:197
Definition: qaGobiApiFms.h:211
Definition: qaGobiApiFms.h:195
ULONG SetImagesPreference(ULONG imageListSize, BYTE *pImageList, ULONG bForceDownload, BYTE modemIndex, ULONG *pImageTypesSize, BYTE *pImageTypes)
void eGetDeviceSeries(struct sGetDeviceSeriesResult *)
CHAR buildID[100]
Definition: qaGobiApiFms.h:553
Definition: qaGobiApiFms.h:182
ULONG SLQSUpgradeFirmware9x15(CHAR *pDestinationPath)
ULONG GetImageStore(WORD imageStorePathSize, CHAR *pImageStorePath)
char CHAR
Definition: SwiDataTypes.h:33
#define SLQSFWINFO_APPVERSION_SZ
Definition: qaGobiApiFms.h:22
Definition: qaGobiApiFms.h:183
ULONG m_nCarrierId
Definition: qaGobiApiFms.h:852
void SLQSSetCrashStateCheckIgnore(BOOL ignore)
ULONG upgrade_mc77xx_fw(LPCSTR path)
#define BUILD_ID_LEN
Definition: qaGobiApiFms.h:44
struct fwinfo_s g
Definition: qaGobiApiFms.h:142
unsigned char BYTE
Definition: SwiDataTypes.h:32
#define GOBI_MBN_BUILD_ID_STR_LEN
Definition: qaGobiApiFms.h:31
Definition: qaGobiApiFms.h:216
ULONG SLQSSwiGetAllCarrierImages(ULONG *pNumOfItems, struct SWI_STRUCT_CarrierImage *pCarrierImages, char *pFolderPath)
Definition: qaGobiApiFms.h:227
CHAR packageid_str[85]
Definition: qaGobiApiFms.h:100
Definition: qaGobiApiFms.h:242
Definition: qaGobiApiFms.h:191
struct ImageElement listEntries[2]
Definition: qaGobiApiFms.h:438
Definition: qaGobiApiFms.h:210
Definition: qaGobiApiFms.h:189
BYTE imageType
Definition: qaGobiApiFms.h:579
Definition: qaGobiApiFms.h:214
Definition: qaGobiApiFms.h:228
BYTE m_FwImageId[16]
Definition: qaGobiApiFms.h:855
eGobiImageGPS
Definition: qaGobiApiFms.h:251
BYTE buildIDLength
Definition: qaGobiApiFms.h:552
ULONG SLQSGetImageInfo(LPCSTR path, struct qmifwinfo_s *pinfo)
CHAR carrier_str[20]
Definition: qaGobiApiFms.h:101
ULONG SLQSGetImageInfoMC83xx(LPCSTR path, struct qmifwinfo_s *pinfo)
ULONG SLQSGetFirmwareInfo(struct qmifwinfo_s *pinfo)
Definition: qaGobiApiFms.h:192
enum eGobiDeviceSeries eDevice
Definition: qaGobiApiFms.h:803
#define GOBI_LISTENTRIES_MAX
Definition: qaGobiApiFms.h:32
eGobiImageCarrier
Definition: qaGobiApiFms.h:180
ULONG SLQSGetBootVersionNumber(ULONG *bootversion)
Definition: qaGobiApiFms.h:223
BYTE imageId[16]
Definition: qaGobiApiFms.h:419
Definition: qaGobiApiFms.h:199
Definition: qaGobiApiFms.h:785
Definition: qaGobiApiFms.h:243
Definition: qaGobiApiFms.h:254
Definition: qaGobiApiFms.h:801
BYTE imageType
Definition: qaGobiApiFms.h:418
Definition: qaGobiApiFms.h:138
ULONG Region
Definition: qaGobiApiFms.h:67
Definition: qaGobiApiFms.h:62
Definition: qaGobiApiFms.h:217
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:36
Definition: qaGobiApiFms.h:201
Definition: qaGobiApiFms.h:206
Definition: qaGobiApiFms.h:788
struct slqsfwinfo_s s
Definition: qaGobiApiFms.h:143
Definition: qaGobiApiFms.h:783
ULONG GetImagesPreference(ULONG *pImageListSize, struct PrefImageList *pImageList)
#define SLQSFWINFO_CARRIER_SZ
Definition: qaGobiApiFms.h:25
Definition: qaGobiApiFms.h:226
BYTE m_PriImageId[16]
Definition: qaGobiApiFms.h:857
#define SLQSFWINFO_MODELID_SZ
Definition: qaGobiApiFms.h:20
CHAR modelid_str[20]
Definition: qaGobiApiFms.h:96
Definition: qaGobiApiFms.h:212
BYTE maxImages
Definition: qaGobiApiFms.h:580
#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:598
Definition: qaGobiApiFms.h:95
Definition: qaGobiApiFms.h:174
Definition: qaGobiApiFms.h:194
BYTE storageIndex
Definition: qaGobiApiFms.h:549
Definition: qaGobiApiFms.h:244
Definition: qaGobiApiFms.h:787
Definition: qaGobiApiFms.h:220
Definition: qaGobiApiFms.h:213
eGobiImageTech
Definition: qaGobiApiFms.h:171
#define SLQSFWINFO_BOOTVERSION_SZ
Definition: qaGobiApiFms.h:21
#define SLQSFWINFO_PRIVERSION_SZ
Definition: qaGobiApiFms.h:26
eGobiDeviceSeries
Definition: qaGobiApiFms.h:781
struct ImageIdElement imageIDElement[50]
Definition: qaGobiApiFms.h:583
Definition: qaGobiApiFms.h:215
Definition: qaGobiApiFms.h:187
BYTE m_PriBuildId[100]
Definition: qaGobiApiFms.h:858
Definition: qaGobiApiFms.h:202
Definition: qaGobiApiFms.h:850
Definition: qaGobiApiFms.h:203
Definition: qaGobiApiFms.h:786
BYTE buildIdLength
Definition: qaGobiApiFms.h:420
ULONG GetStoredImages(ULONG *pImageListSize, BYTE *pImageList)
Definition: qaGobiApiFms.h:219
Definition: qaGobiApiFms.h:218
Definition: qaGobiApiFms.h:240
Definition: qaGobiApiFms.h:435
ULONG SLQSGetImageInfo_9x15(LPCSTR path, BYTE imgType, struct slqsfwinfo_s *pinfo)
unsigned long ULONG
Definition: SwiDataTypes.h:28
#define SLQSFWINFO_CUR_CARR_NAME
Definition: qaGobiApiFms.h:27
Definition: qaGobiApiFms.h:221
ULONG uResult
Definition: qaGobiApiFms.h:804
Definition: qaGobiApiFms.h:200
Definition: qaGobiApiFms.h:595
Definition: qaGobiApiFms.h:209
Definition: qaGobiApiFms.h:547
BYTE m_FwBuildId[100]
Definition: qaGobiApiFms.h:856
Definition: qaGobiApiFms.h:186
CHAR priversion_str[16]
Definition: qaGobiApiFms.h:102
Definition: qaGobiApiFms.h:232
Definition: qaGobiApiFms.h:222
CHAR bootversion_str[85]
Definition: qaGobiApiFms.h:97
ULONG m_nStorage
Definition: qaGobiApiFms.h:854
CHAR buildId[100]
Definition: qaGobiApiFms.h:421
Definition: qaGobiApiFms.h:190
Definition: qaGobiApiFms.h:256
Definition: qaGobiApiFms.h:208
Definition: qaGobiApiFms.h:789
Definition: qaGobiApiFms.h:225
Definition: qaGobiApiFms.h:230
ULONG GPSCapability
Definition: qaGobiApiFms.h:68
BYTE listSize
Definition: qaGobiApiFms.h:597
Definition: qaGobiApiFms.h:416
ULONG m_nFolderId
Definition: qaGobiApiFms.h:853
BYTE imageIDSize
Definition: qaGobiApiFms.h:582
CHAR cur_carr_rev[13]
Definition: qaGobiApiFms.h:104
Definition: qaGobiApiFms.h:173
BYTE imageID[16]
Definition: qaGobiApiFms.h:551
Definition: qaGobiApiFms.h:198
CHAR appversion_str[85]
Definition: qaGobiApiFms.h:98
Definition: qaGobiApiFms.h:196
Definition: qaGobiApiFms.h:255
ULONG FirmwareID
Definition: qaGobiApiFms.h:64
CHAR sku_str[15]
Definition: qaGobiApiFms.h:99
BOOL SLQSIsSpkgFormatRequired(void)
Definition: qaGobiApiFms.h:224
Definition: qaGobiApiFms.h:245
#define SLQSFWINFO_CUR_CARR_REV
Definition: qaGobiApiFms.h:28
eGobiImageRegion
Definition: qaGobiApiFms.h:238
Definition: qaGobiApiFms.h:193
ULONG SLQSDownloadFirmwareToSlot(CHAR *pPath, BYTE slot_index, BYTE force_download)
ULONG Technology
Definition: qaGobiApiFms.h:65
Definition: qaGobiApiFms.h:577
BYTE failureCount
Definition: qaGobiApiFms.h:550
void SLQSSetSpkgFormatRequired(BYTE isneeded)
BYTE listSize
Definition: qaGobiApiFms.h:437
Definition: qaGobiApiFms.h:229
Definition: qaGobiApiFms.h:184
Definition: qaGobiApiFms.h:207
Definition: qaGobiApiFms.h:241
ULONG UpgradeFirmware2k(CHAR *pDestinationPath)
ULONG Carrier
Definition: qaGobiApiFms.h:66
int BOOL
Definition: SwiDataTypes.h:37
ULONG DeleteStoredImage(ULONG imageInfoSize, BYTE *pImageInfo)
Definition: qaGobiApiFms.h:784
unsigned short WORD
Definition: SwiDataTypes.h:34
Definition: qaGobiApiFms.h:231
Definition: qaGobiApiFms.h:253
#define IMG_ID_LEN
Definition: qaGobiApiFms.h:43
Definition: qaGobiApiFms.h:188
BYTE executingImage
Definition: qaGobiApiFms.h:581
#define SLQSFWINFO_SKU_SZ
Definition: qaGobiApiFms.h:23
#define SLQSFWINFO_PACKAGEID_SZ
Definition: qaGobiApiFms.h:24
Definition: qaGobiApiFms.h:204
CHAR cur_carr_name[17]
Definition: qaGobiApiFms.h:103

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