libpack  SLQS03.03.10
 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 
60 struct fwinfo_s
61 {
67 };
68 
93 struct slqsfwinfo_s{
103 };
104 
137 {
138  union
139  {
140  struct fwinfo_s g;
141  struct slqsfwinfo_s s;
142  } dev;
143 };
144 
162 extern ULONG GetImageStore(
163  WORD imageStorePathSize,
164  CHAR *pImageStorePath );
165 
170 {
171  eGOBI_IMG_TECH_CDMA = 0, /* 0 - CDMA */
172  eGOBI_IMG_TECH_UMTS /* 1 - UMTS */
173 };
174 
179 {
180  eGOBI_IMG_CAR_GENERIC = 1, /* 001 */
183 
184  eGOBI_IMG_CAR_VERIZON = 101, /* 101 */
189  eGOBI_IMG_CAR_US, /* 106 */
201  eGOBI_IMG_CAR_OMH, /* 118 */
203 
204  eGOBI_IMG_CAR_ATT = 201, /* 201 */
210  eGOBI_IMG_CAR_3, /* 207 */
211  eGOBI_IMG_CAR_O2, /* 208 */
212  eGOBI_IMG_CAR_SFR, /* 209 */
231 };
232 
237 {
238  eGOBI_IMG_REG_NA = 0, /* 0 - North America */
239  eGOBI_IMG_REG_LA, /* 1 - Latin America */
240  eGOBI_IMG_REG_EU, /* 2 - Europe */
241  eGOBI_IMG_REG_ASIA, /* 3 - Asia */
242  eGOBI_IMG_REG_AUS, /* 4 - Australia */
243  eGOBI_IMG_REG_GLOBAL /* 5 - Global */
244 };
245 
250 {
251  eGOBI_IMG_GPS_NONE = 0, /* 0 - None */
252  eGOBI_IMG_GPS_STAND_ALONE, /* 1 - Stand-alone */
253  eGOBI_IMG_GPS_ASSISTED, /* 2 - Stand-alone + AGPS + XTRA */
254  eGOBI_IMG_GPS_NO_XTRA /* 3 - Stand-alone + AGPS */
255 };
256 
272  struct qmifwinfo_s *pinfo );
273 
297  LPCSTR path,
298  struct qmifwinfo_s *pinfo );
299 
321  LPCSTR path,
322  struct qmifwinfo_s *pinfo );
323 
350  LPCSTR path,
351  struct qmifwinfo_s *pinfo );
352 
382  CHAR *pDestinationPath );
383 
388 #pragma pack(push)
389 #pragma pack(1)
390 
410 {
415 };
416 
429 {
432 };
433 
437 #pragma pack(pop)
438 
460  ULONG *pImageListSize,
461  struct PrefImageList *pImageList );
462 
505  ULONG imageListSize,
506  BYTE *pImageList,
507  ULONG bForceDownload,
508  BYTE modemIndex,
509  ULONG *pImageTypesSize,
510  BYTE *pImageTypes );
511 
516 #pragma pack(push)
517 #pragma pack(1)
518 
541 {
547 };
548 
571 {
577 };
578 
588 struct ImageList
589 {
592 };
593 
597 #pragma pack(pop)
598 
620  ULONG *pImageListSize,
621  BYTE *pImageList );
622 
645  ULONG imageInfoSize,
646  BYTE *pImageInfo );
647 
674  LPCSTR path,
675  BYTE imgType,
676  struct slqsfwinfo_s *pinfo );
677 
723  CHAR *pDestinationPath );
724 
739 ULONG SLQSGetBootVersionNumber(ULONG *bootversion);
740 
753 
755  LPCSTR path );
756 
761 {
762  eGOBI_DEV_SERIES_UNKNOWN = -1, /* unknown */
763  eGOBI_DEV_SERIES_NON_GOBI = 0, /* Non Gobi */
765  eGOBI_DEV_SERIES_SIERRA_GOBI, /* MC9090 SL9090 */
769 };
781 {
784 };
785 
796 
797 
830 {
838 };
858  struct SWI_STRUCT_CarrierImage *pCarrierImages,
859  char *pFolderPath);
860 
912  CHAR *pPath, BYTE slot_index, BYTE force_download );
913 
932 ULONG SLQSGetValidFwPriCombinations (struct ImageList *pStoredImageList,
933  ULONG *pValidCombinationSize,
934  struct SWI_STRUCT_CarrierImage *pValidCombinations
935  );
936 
937 #ifdef __cplusplus
938 } /* extern "C" { */
939 #endif
940 
941 #endif /* __GOBI_API_FMS_H__ */
Definition: qaGobiApiFms.h:195
Definition: qaGobiApiFms.h:209
Definition: qaGobiApiFms.h:193
ULONG SetImagesPreference(ULONG imageListSize, BYTE *pImageList, ULONG bForceDownload, BYTE modemIndex, ULONG *pImageTypesSize, BYTE *pImageTypes)
void eGetDeviceSeries(struct sGetDeviceSeriesResult *)
CHAR buildID[100]
Definition: qaGobiApiFms.h:546
Definition: qaGobiApiFms.h:180
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:181
ULONG m_nCarrierId
Definition: qaGobiApiFms.h:831
ULONG upgrade_mc77xx_fw(LPCSTR path)
#define BUILD_ID_LEN
Definition: qaGobiApiFms.h:44
struct fwinfo_s g
Definition: qaGobiApiFms.h:140
unsigned char BYTE
Definition: SwiDataTypes.h:32
#define GOBI_MBN_BUILD_ID_STR_LEN
Definition: qaGobiApiFms.h:31
Definition: qaGobiApiFms.h:214
ULONG SLQSSwiGetAllCarrierImages(ULONG *pNumOfItems, struct SWI_STRUCT_CarrierImage *pCarrierImages, char *pFolderPath)
Definition: qaGobiApiFms.h:225
CHAR packageid_str[85]
Definition: qaGobiApiFms.h:98
Definition: qaGobiApiFms.h:240
Definition: qaGobiApiFms.h:189
struct ImageElement listEntries[2]
Definition: qaGobiApiFms.h:431
Definition: qaGobiApiFms.h:208
Definition: qaGobiApiFms.h:187
BYTE imageType
Definition: qaGobiApiFms.h:572
Definition: qaGobiApiFms.h:212
Definition: qaGobiApiFms.h:226
BYTE m_FwImageId[16]
Definition: qaGobiApiFms.h:834
eGobiImageGPS
Definition: qaGobiApiFms.h:249
BYTE buildIDLength
Definition: qaGobiApiFms.h:545
ULONG SLQSGetImageInfo(LPCSTR path, struct qmifwinfo_s *pinfo)
CHAR carrier_str[20]
Definition: qaGobiApiFms.h:99
ULONG SLQSGetImageInfoMC83xx(LPCSTR path, struct qmifwinfo_s *pinfo)
ULONG SLQSGetFirmwareInfo(struct qmifwinfo_s *pinfo)
Definition: qaGobiApiFms.h:190
enum eGobiDeviceSeries eDevice
Definition: qaGobiApiFms.h:782
#define GOBI_LISTENTRIES_MAX
Definition: qaGobiApiFms.h:32
eGobiImageCarrier
Definition: qaGobiApiFms.h:178
ULONG SLQSGetBootVersionNumber(ULONG *bootversion)
Definition: qaGobiApiFms.h:221
BYTE imageId[16]
Definition: qaGobiApiFms.h:412
Definition: qaGobiApiFms.h:197
Definition: qaGobiApiFms.h:764
Definition: qaGobiApiFms.h:241
Definition: qaGobiApiFms.h:252
Definition: qaGobiApiFms.h:780
BYTE imageType
Definition: qaGobiApiFms.h:411
Definition: qaGobiApiFms.h:136
ULONG Region
Definition: qaGobiApiFms.h:65
Definition: qaGobiApiFms.h:60
Definition: qaGobiApiFms.h:215
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:199
Definition: qaGobiApiFms.h:204
Definition: qaGobiApiFms.h:767
struct slqsfwinfo_s s
Definition: qaGobiApiFms.h:141
Definition: qaGobiApiFms.h:762
ULONG GetImagesPreference(ULONG *pImageListSize, struct PrefImageList *pImageList)
#define SLQSFWINFO_CARRIER_SZ
Definition: qaGobiApiFms.h:25
Definition: qaGobiApiFms.h:224
BYTE m_PriImageId[16]
Definition: qaGobiApiFms.h:836
#define SLQSFWINFO_MODELID_SZ
Definition: qaGobiApiFms.h:20
CHAR modelid_str[20]
Definition: qaGobiApiFms.h:94
Definition: qaGobiApiFms.h:210
BYTE maxImages
Definition: qaGobiApiFms.h:573
#define GOBI_MBN_IMG_ID_STR_LEN
Definition: qaGobiApiFms.h:30
union qmifwinfo_s::@2 dev
struct ImageIDEntries imageIDEntries[2]
Definition: qaGobiApiFms.h:591
Definition: qaGobiApiFms.h:93
Definition: qaGobiApiFms.h:172
Definition: qaGobiApiFms.h:192
BYTE storageIndex
Definition: qaGobiApiFms.h:542
Definition: qaGobiApiFms.h:242
Definition: qaGobiApiFms.h:766
Definition: qaGobiApiFms.h:218
Definition: qaGobiApiFms.h:211
eGobiImageTech
Definition: qaGobiApiFms.h:169
#define SLQSFWINFO_BOOTVERSION_SZ
Definition: qaGobiApiFms.h:21
#define SLQSFWINFO_PRIVERSION_SZ
Definition: qaGobiApiFms.h:26
eGobiDeviceSeries
Definition: qaGobiApiFms.h:760
struct ImageIdElement imageIDElement[50]
Definition: qaGobiApiFms.h:576
Definition: qaGobiApiFms.h:213
Definition: qaGobiApiFms.h:185
BYTE m_PriBuildId[100]
Definition: qaGobiApiFms.h:837
Definition: qaGobiApiFms.h:200
Definition: qaGobiApiFms.h:829
Definition: qaGobiApiFms.h:201
Definition: qaGobiApiFms.h:765
BYTE buildIdLength
Definition: qaGobiApiFms.h:413
ULONG GetStoredImages(ULONG *pImageListSize, BYTE *pImageList)
Definition: qaGobiApiFms.h:217
Definition: qaGobiApiFms.h:216
Definition: qaGobiApiFms.h:238
Definition: qaGobiApiFms.h:428
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:219
ULONG uResult
Definition: qaGobiApiFms.h:783
Definition: qaGobiApiFms.h:198
Definition: qaGobiApiFms.h:588
Definition: qaGobiApiFms.h:207
Definition: qaGobiApiFms.h:540
BYTE m_FwBuildId[100]
Definition: qaGobiApiFms.h:835
Definition: qaGobiApiFms.h:184
CHAR priversion_str[16]
Definition: qaGobiApiFms.h:100
Definition: qaGobiApiFms.h:230
Definition: qaGobiApiFms.h:220
CHAR bootversion_str[85]
Definition: qaGobiApiFms.h:95
ULONG m_nStorage
Definition: qaGobiApiFms.h:833
CHAR buildId[100]
Definition: qaGobiApiFms.h:414
Definition: qaGobiApiFms.h:188
Definition: qaGobiApiFms.h:254
Definition: qaGobiApiFms.h:206
Definition: qaGobiApiFms.h:768
Definition: qaGobiApiFms.h:223
Definition: qaGobiApiFms.h:228
ULONG GPSCapability
Definition: qaGobiApiFms.h:66
BYTE listSize
Definition: qaGobiApiFms.h:590
Definition: qaGobiApiFms.h:409
ULONG m_nFolderId
Definition: qaGobiApiFms.h:832
BYTE imageIDSize
Definition: qaGobiApiFms.h:575
CHAR cur_carr_rev[13]
Definition: qaGobiApiFms.h:102
Definition: qaGobiApiFms.h:171
BYTE imageID[16]
Definition: qaGobiApiFms.h:544
Definition: qaGobiApiFms.h:196
CHAR appversion_str[85]
Definition: qaGobiApiFms.h:96
Definition: qaGobiApiFms.h:194
Definition: qaGobiApiFms.h:253
ULONG FirmwareID
Definition: qaGobiApiFms.h:62
CHAR sku_str[15]
Definition: qaGobiApiFms.h:97
BOOL SLQSIsSpkgFormatRequired(void)
Definition: qaGobiApiFms.h:222
Definition: qaGobiApiFms.h:243
#define SLQSFWINFO_CUR_CARR_REV
Definition: qaGobiApiFms.h:28
eGobiImageRegion
Definition: qaGobiApiFms.h:236
Definition: qaGobiApiFms.h:191
ULONG SLQSDownloadFirmwareToSlot(CHAR *pPath, BYTE slot_index, BYTE force_download)
ULONG Technology
Definition: qaGobiApiFms.h:63
Definition: qaGobiApiFms.h:570
BYTE failureCount
Definition: qaGobiApiFms.h:543
BYTE listSize
Definition: qaGobiApiFms.h:430
Definition: qaGobiApiFms.h:227
Definition: qaGobiApiFms.h:182
Definition: qaGobiApiFms.h:205
Definition: qaGobiApiFms.h:239
ULONG UpgradeFirmware2k(CHAR *pDestinationPath)
ULONG Carrier
Definition: qaGobiApiFms.h:64
int BOOL
Definition: SwiDataTypes.h:37
ULONG DeleteStoredImage(ULONG imageInfoSize, BYTE *pImageInfo)
Definition: qaGobiApiFms.h:763
unsigned short WORD
Definition: SwiDataTypes.h:34
Definition: qaGobiApiFms.h:229
Definition: qaGobiApiFms.h:251
#define IMG_ID_LEN
Definition: qaGobiApiFms.h:43
Definition: qaGobiApiFms.h:186
BYTE executingImage
Definition: qaGobiApiFms.h:574
#define SLQSFWINFO_SKU_SZ
Definition: qaGobiApiFms.h:23
#define SLQSFWINFO_PACKAGEID_SZ
Definition: qaGobiApiFms.h:24
Definition: qaGobiApiFms.h:202
CHAR cur_carr_name[17]
Definition: qaGobiApiFms.h:101

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