|
libpack
SLQS03.03.10
|
Firmware Management Service API function prototypes. More...
Go to the source code of this file.
Data Structures | |
| struct | fwinfo_s |
| struct | slqsfwinfo_s |
| struct | qmifwinfo_s |
| struct | ImageElement |
| struct | PrefImageList |
| struct | ImageIdElement |
| struct | ImageIDEntries |
| struct | ImageList |
| struct | sGetDeviceSeriesResult |
| struct | SWI_STRUCT_CarrierImage |
Macros | |
| #define | SLQSFWINFO_MODELID_SZ 20 |
| #define | SLQSFWINFO_BOOTVERSION_SZ 85 |
| #define | SLQSFWINFO_APPVERSION_SZ 85 |
| #define | SLQSFWINFO_SKU_SZ 15 |
| #define | SLQSFWINFO_PACKAGEID_SZ 85 |
| #define | SLQSFWINFO_CARRIER_SZ 20 |
| #define | SLQSFWINFO_PRIVERSION_SZ 16 |
| #define | SLQSFWINFO_CUR_CARR_NAME 17 |
| #define | SLQSFWINFO_CUR_CARR_REV 13 |
| #define | GOBI_MBN_IMG_ID_STR_LEN 16 |
| #define | GOBI_MBN_BUILD_ID_STR_LEN 100 |
| #define | GOBI_LISTENTRIES_MAX 2 |
| #define | GOBI_SET_IMG_PREF_RSPLEN 40 |
| #define | DEVICE_SHUTDOWN 5 |
| #define | DEVICE_RESET 4 |
| #define | DEVICE_OFFLINE 3 |
| #define | FIRMWARE_UPDATE_SUCCESS 0x01 |
| #define | FIRMWARE_UPDATE_FAIL 0x01 |
| #define | PRI_UPDATE_FAIL 0x02 |
| #define | FIRMWARE_UPGRADE_SUCCESS 0x00 |
| #define | IMG_ID_LEN 16 |
| #define | BUILD_ID_LEN 100 |
Firmware Management Service API function prototypes.
| #define BUILD_ID_LEN 100 |
| #define DEVICE_OFFLINE 3 |
| #define DEVICE_RESET 4 |
| #define DEVICE_SHUTDOWN 5 |
| #define FIRMWARE_UPDATE_FAIL 0x01 |
| #define FIRMWARE_UPDATE_SUCCESS 0x01 |
| #define FIRMWARE_UPGRADE_SUCCESS 0x00 |
| #define GOBI_LISTENTRIES_MAX 2 |
| #define GOBI_MBN_BUILD_ID_STR_LEN 100 |
| #define GOBI_MBN_IMG_ID_STR_LEN 16 |
| #define GOBI_SET_IMG_PREF_RSPLEN 40 |
| #define IMG_ID_LEN 16 |
| #define PRI_UPDATE_FAIL 0x02 |
| #define SLQSFWINFO_APPVERSION_SZ 85 |
| #define SLQSFWINFO_BOOTVERSION_SZ 85 |
| #define SLQSFWINFO_CARRIER_SZ 20 |
| #define SLQSFWINFO_CUR_CARR_NAME 17 |
| #define SLQSFWINFO_CUR_CARR_REV 13 |
| #define SLQSFWINFO_MODELID_SZ 20 |
| #define SLQSFWINFO_PACKAGEID_SZ 85 |
| #define SLQSFWINFO_PRIVERSION_SZ 16 |
| #define SLQSFWINFO_SKU_SZ 15 |
| enum eGobiDeviceSeries |
| enum eGobiImageCarrier |
enumeration which lists the carrier supported by the image
| enum eGobiImageGPS |
| enum eGobiImageRegion |
| enum eGobiImageTech |
Used to delete the specified image from the device. This API function is only relevant to devices with the ability to store multiple firmware images(see Device Supported section below).
| imageInfoSize[IN] |
|
| pImageInfo[IN] |
|
| void eGetDeviceSeries | ( | struct sGetDeviceSeriesResult * | ) |
| ULONG GetImagesPreference | ( | ULONG * | pImageListSize, |
| struct PrefImageList * | pImageList | ||
| ) |
restore original alignment from stack Gets the current images preference from the device.
| pImageListSize[IN/OUT] | |
| pImageList[OUT] |
|
Returns the image store folder, i.e., the folder containing one or more carrier-specific image subfolders compatible with the currently connected QC WWAN device.
| imageStorePathSize |
|
| pImageStorePath[OUT] |
|
restore original alignment from stack Gets the list of images stored on the device.
| pImageListSize[IN/OUT] | |
| pImageList[OUT] |
|
| ULONG SetImagesPreference | ( | ULONG | imageListSize, |
| BYTE * | pImageList, | ||
| ULONG | bForceDownload, | ||
| BYTE | modemIndex, | ||
| ULONG * | pImageTypesSize, | ||
| BYTE * | pImageTypes | ||
| ) |
Sets the current images preference on the device. After this function successfully completes, the device must be reset for the selected image preference to be realized. Additionally, when the returned list of image types that require downloading is not empty, the device opens in QDL mode after the reset. At that point, the QDL portion of this API must be used to download the selected image preference to the device.
| imageListSize |
|
| pImageList[IN] |
|
| bForceDownload[IN] |
|
| modemIndex |
|
| pImageTypesSize[IN/OUT] |
|
| pImageTypes[OUT] | -The download image types array. |
This API is used to download firmware to a specific slot id of the modem. It is only applicable for EM74xx variant. This API encapsulates all steps involved in the firmware download process.Hence it is a blocking API call.
This API will not return until the entire process has been completed. This API will takes significant amount of time (in order of minutes, normally should be less than 10 minutes).
This API Performs the following steps:
| pPath[IN] |
|
| slot_index[IN] |
|
| force_download[IN] |
|
Gets the boot loader version number
| bootversion[OUT] |
|
| ULONG SLQSGetFirmwareInfo | ( | struct qmifwinfo_s * | pinfo | ) |
Returns firmware image information from the connected device
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfo | ( | LPCSTR | path, |
| struct qmifwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from a CWE file or mbn files stored on the host. For CWE, information is returned for the first CWE image found at the specified path. For MBN, the provided path must be located under the image store for the currently connected QC WWAN device. Note that as this API supports multiple firmware image types, it relies on the presence of a supported device. Otherwise, refer to SLQSGetImageInfoMC83xx and SLQSGetImageInfoMC77xx for APIs which do not rely on the presence of a supported device.
| path[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfo_9x15 | ( | LPCSTR | path, |
| BYTE | imgType, | ||
| struct slqsfwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from a CWE file(s) stored on the host. It does not rely on the presence of a supported device.
| path[IN] |
|
| imgType[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfoMC77xx | ( | LPCSTR | path, |
| struct qmifwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from a SPKGS CWE file stored on the host. The information is returned for the first SPKGS CWE image found at the specified path. This API executes independent of a MC77xx being connected to the target.
| path[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfoMC83xx | ( | LPCSTR | path, |
| struct qmifwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from an MBN file located on the host. This API executes independent of a MC83xx being connected to the target.
| path[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetValidFwPriCombinations | ( | struct ImageList * | pStoredImageList, |
| ULONG * | pValidCombinationSize, | ||
| struct SWI_STRUCT_CarrierImage * | pValidCombinations | ||
| ) |
This API distills valid Firmware/PRI combinations from GetStoredImages result
| [in] | pStoredImageList |
|
| [in,out] | pValidCombinationSize |
|
| [out] | pValidCombinations |
|
| BOOL SLQSIsSpkgFormatRequired | ( | void | ) |
Check if SPKG format download is required for SL9090/MC9090
| none |
| ULONG SLQSSwiGetAllCarrierImages | ( | ULONG * | pNumOfItems, |
| struct SWI_STRUCT_CarrierImage * | pCarrierImages, | ||
| char * | pFolderPath | ||
| ) |
This API gets a list of all images stored on both the host and the device
| pNumOfItems |
|
| pCarrierImages[OUT] | |
| pFolderPath |
|
This API is used to upgrade firmware on a MC73xx device. This API encapsulates all steps involved in the firmware download process. It is an alternative to any firmware download application. Hence it is a blocking API call. This API will not return until the entire process has been completed.
This API Performs the following steps:
| pDestinationPath[IN] |
|
This API is used to download firmware to a MC77xx or Gobi 3000 device.
This API Performs the following steps:
| pDestinationPath[IN] |
|