LinuxSDK
V1.4.0.5
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
SwiApiCmUpgrade.h
Go to the documentation of this file.
1
15
#ifndef __SWI_API_CM_UPGRADE_H__
16
#define __SWI_API_CM_UPGRADE_H__
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
/* include files */
23
#include "
SwiDataTypes.h
"
24
#include "
SwiRcodes.h
"
25
26
/* defines */
27
36
enum
SWI_TYPE_NvOperation
37
{
38
SWI_NVOPER_BackupAll
,
39
SWI_NVOPER_RestoreAll
,
40
SWI_NVOPER_Backup
,
41
SWI_NVOPER_Restore
42
};
43
52
enum
SWI_TYPE_NvCategory
53
{
54
SWI_NVCAT_Factory
,
55
SWI_NVCAT_Oem
,
56
SWI_NVCAT_User
57
};
58
69
struct
SWI_STRUCT_NvStore
70
{
72
swi_uint32
sizeStruct
;
73
77
swi_bool
bSuccess
;
78
81
enum
SWI_TYPE_NvOperation
eOperation
;
82
84
enum
SWI_TYPE_NvCategory
eCategory
;
85
88
swi_uint32
nStored
;
89
91
swi_uint32
nSkipped
;
92
95
swi_uint32
nZeroLength
;
96
};
108
enum
SWI_TYPE_FW_IMAGE
109
{
110
FW_DWN_APPL
,
111
FW_DWN_BOOT
,
112
FW_DWN_QCOM
,
113
FW_DWN_USBD
,
114
FW_DWN_EXEC
,
115
FW_DWN_SWOC
116
};
117
128
enum
SWI_NOTIF_FW_TYPE
129
{
131
FW_INIT
,
132
134
FW_INIT_ERR
,
135
137
FW_SOFT_RESET
,
138
140
FW_SOFT_RESET_ERR
,
141
143
FW_START_REQ
,
144
151
FW_START_REQ_ERR
,
152
154
FW_FILE_ERR
,
155
157
FW_DWN
,
158
163
FW_DWN_ERR
,
164
166
FW_CHKSUM
,
167
171
FW_CHKSUM_ERR
,
172
174
FW_FLASH
,
175
177
FW_FLASH_ERR
,
178
181
FW_LAUNCH_FRAG
,
182
184
FW_LAUNCH_FRAG_ERR
,
185
187
FW_RESET
,
188
191
FW_RESET_ERR
,
192
194
FW_DONE
195
} ;
196
208
struct
SWI_STRUCT_FwDownload
209
{
212
swi_uint32
sizeStruct
;
213
216
enum
SWI_NOTIF_FW_TYPE
State
;
217
};
218
219
/* prototypes */
220
extern
SWI_API
SWI_RCODE
SwiNvStore
(
221
struct
SWI_STRUCT_NvStore
sNvStore,
222
swi_uint32
timeout);
223
224
extern
SWI_API
SWI_RCODE
SwiFirmwareDownload
(
225
swi_charp
szFileName,
226
enum
SWI_TYPE_FW_IMAGE
eFwDwnType,
227
swi_bool
bMpDownload,
228
swi_uint32
nHIPPayloadSize,
229
swi_uint32
timeout);
230
231
#ifdef __cplusplus
232
}
/* extern "C" { */
233
#endif
234
235
#endif
/*__SWI_API_CM_UPGRADE_H__*/
236
237
/*
238
* $Log: SwiApiCmUpgrade.h,v $
239
*/
Linux SDK V1.4.0.5
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved