]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Protocol/FirmwareManagement.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Protocol / FirmwareManagement.h
1 /** @file
2 UEFI Firmware Management Protocol definition
3 Firmware Management Protocol provides an abstraction for device to provide firmware
4 management support. The base requirements for managing device firmware images include
5 identifying firmware image revision level and programming the image into the device.
6
7 GetImageInfo() is the only required function. GetImage(), SetImage(),
8 CheckImage(), GetPackageInfo(), and SetPackageInfo() shall return
9 EFI_UNSUPPORTED if not supported by the driver.
10
11 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
12 Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.<BR>
13 SPDX-License-Identifier: BSD-2-Clause-Patent
14
15 @par Revision Reference:
16 This Protocol is introduced in UEFI Specification 2.3
17
18 **/
19
20 #ifndef __EFI_FIRMWARE_MANAGEMENT_PROTOCOL_H__
21 #define __EFI_FIRMWARE_MANAGEMENT_PROTOCOL_H__
22
23
24 #define EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GUID \
25 { \
26 0x86c77a67, 0xb97, 0x4633, {0xa1, 0x87, 0x49, 0x10, 0x4d, 0x6, 0x85, 0xc7 } \
27 }
28
29 typedef struct _EFI_FIRMWARE_MANAGEMENT_PROTOCOL EFI_FIRMWARE_MANAGEMENT_PROTOCOL;
30
31 ///
32 /// EFI_FIRMWARE_IMAGE_DESCRIPTOR
33 ///
34 typedef struct {
35 ///
36 /// A unique number identifying the firmware image within the device. The number is
37 /// between 1 and DescriptorCount.
38 ///
39 UINT8 ImageIndex;
40 ///
41 /// A unique GUID identifying the firmware image type.
42 ///
43 EFI_GUID ImageTypeId;
44 ///
45 /// A unique number identifying the firmware image.
46 ///
47 UINT64 ImageId;
48 ///
49 /// A pointer to a null-terminated string representing the firmware image name.
50 ///
51 CHAR16 *ImageIdName;
52 ///
53 /// Identifies the version of the device firmware. The format is vendor specific and new
54 /// version must have a greater value than an old version.
55 ///
56 UINT32 Version;
57 ///
58 /// A pointer to a null-terminated string representing the firmware image version name.
59 ///
60 CHAR16 *VersionName;
61 ///
62 /// Size of the image in bytes. If size=0, then only ImageIndex and ImageTypeId are valid.
63 ///
64 UINTN Size;
65 ///
66 /// Image attributes that are supported by this device. See 'Image Attribute Definitions'
67 /// for possible returned values of this parameter. A value of 1 indicates the attribute is
68 /// supported and the current setting value is indicated in AttributesSetting. A
69 /// value of 0 indicates the attribute is not supported and the current setting value in
70 /// AttributesSetting is meaningless.
71 ///
72 UINT64 AttributesSupported;
73 ///
74 /// Image attributes. See 'Image Attribute Definitions' for possible returned values of
75 /// this parameter.
76 ///
77 UINT64 AttributesSetting;
78 ///
79 /// Image compatibilities. See 'Image Compatibility Definitions' for possible returned
80 /// values of this parameter.
81 ///
82 UINT64 Compatibilities;
83 ///
84 /// Describes the lowest ImageDescriptor version that the device will accept. Only
85 /// present in version 2 or higher.
86 ///
87 UINT32 LowestSupportedImageVersion;
88 ///
89 /// Describes the version that was last attempted to update. If no update attempted the
90 /// value will be 0. If the update attempted was improperly formatted and no version
91 /// number was available then the value will be zero. Only present in version 3 or higher.
92 UINT32 LastAttemptVersion;
93 ///
94 /// Describes the status that was last attempted to update. If no update has been attempted
95 /// the value will be LAST_ATTEMPT_STATUS_SUCCESS. Only present in version 3 or higher.
96 ///
97 UINT32 LastAttemptStatus;
98 ///
99 /// An optional number to identify the unique hardware instance within the system for
100 /// devices that may have multiple instances (Example: a plug in pci network card). This
101 /// number must be unique within the namespace of the ImageTypeId GUID and
102 /// ImageIndex. For FMP instances that have multiple descriptors for a single
103 /// hardware instance, all descriptors must have the same HardwareInstance value.
104 /// This number must be consistent between boots and should be based on some sort of
105 /// hardware identified unique id (serial number, etc) whenever possible. If a hardware
106 /// based number is not available the FMP provider may use some other characteristic
107 /// such as device path, bus/dev/function, slot num, etc for generating the
108 /// HardwareInstance. For implementations that will never have more than one
109 /// instance a zero can be used. A zero means the FMP provider is not able to determine a
110 /// unique hardware instance number or a hardware instance number is not needed. Only
111 /// present in version 3 or higher.
112 ///
113 UINT64 HardwareInstance;
114 } EFI_FIRMWARE_IMAGE_DESCRIPTOR;
115
116
117 //
118 // Image Attribute Definitions
119 //
120 ///
121 /// The attribute IMAGE_ATTRIBUTE_IMAGE_UPDATABLE indicates this device supports firmware
122 /// image update.
123 ///
124 #define IMAGE_ATTRIBUTE_IMAGE_UPDATABLE 0x0000000000000001
125 ///
126 /// The attribute IMAGE_ATTRIBUTE_RESET_REQUIRED indicates a reset of the device is required
127 /// for the new firmware image to take effect after a firmware update. The device is the device hosting
128 /// the firmware image.
129 ///
130 #define IMAGE_ATTRIBUTE_RESET_REQUIRED 0x0000000000000002
131 ///
132 /// The attribute IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED indicates authentication is
133 /// required to perform the following image operations: GetImage(), SetImage(), and
134 /// CheckImage(). See 'Image Attribute - Authentication'.
135 ///
136 #define IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED 0x0000000000000004
137 ///
138 /// The attribute IMAGE_ATTRIBUTE_IN_USE indicates the current state of the firmware image.
139 /// This distinguishes firmware images in a device that supports redundant images.
140 ///
141 #define IMAGE_ATTRIBUTE_IN_USE 0x0000000000000008
142 ///
143 /// The attribute IMAGE_ATTRIBUTE_UEFI_IMAGE indicates that this image is an EFI compatible image.
144 ///
145 #define IMAGE_ATTRIBUTE_UEFI_IMAGE 0x0000000000000010
146
147
148 //
149 // Image Compatibility Definitions
150 //
151 ///
152 /// Values from 0x0000000000000002 thru 0x000000000000FFFF are reserved for future assignments.
153 /// Values from 0x0000000000010000 thru 0xFFFFFFFFFFFFFFFF are used by firmware vendor for
154 /// compatibility check.
155 ///
156 #define IMAGE_COMPATIBILITY_CHECK_SUPPORTED 0x0000000000000001
157
158 ///
159 /// Descriptor Version exposed by GetImageInfo() function
160 ///
161 #define EFI_FIRMWARE_IMAGE_DESCRIPTOR_VERSION 3
162
163
164 ///
165 /// Image Attribute - Authentication Required
166 ///
167 typedef struct {
168 ///
169 /// It is included in the signature of AuthInfo. It is used to ensure freshness/no replay.
170 /// It is incremented during each firmware image operation.
171 ///
172 UINT64 MonotonicCount;
173 ///
174 /// Provides the authorization for the firmware image operations. It is a signature across
175 /// the image data and the Monotonic Count value. Caller uses the private key that is
176 /// associated with a public key that has been provisioned via the key exchange.
177 /// Because this is defined as a signature, WIN_CERTIFICATE_UEFI_GUID.CertType must
178 /// be EFI_CERT_TYPE_PKCS7_GUID.
179 ///
180 WIN_CERTIFICATE_UEFI_GUID AuthInfo;
181 } EFI_FIRMWARE_IMAGE_AUTHENTICATION;
182
183
184 //
185 // ImageUpdatable Definitions
186 //
187 ///
188 /// IMAGE_UPDATABLE_VALID indicates SetImage() will accept the new image and update the
189 /// device with the new image. The version of the new image could be higher or lower than
190 /// the current image. SetImage VendorCode is optional but can be used for vendor
191 /// specific action.
192 ///
193 #define IMAGE_UPDATABLE_VALID 0x0000000000000001
194 ///
195 /// IMAGE_UPDATABLE_INVALID indicates SetImage() will reject the new image. No additional
196 /// information is provided for the rejection.
197 ///
198 #define IMAGE_UPDATABLE_INVALID 0x0000000000000002
199 ///
200 /// IMAGE_UPDATABLE_INVALID_TYPE indicates SetImage() will reject the new image. The
201 /// rejection is due to the new image is not a firmware image recognized for this device.
202 ///
203 #define IMAGE_UPDATABLE_INVALID_TYPE 0x0000000000000004
204 ///
205 /// IMAGE_UPDATABLE_INVALID_OLD indicates SetImage() will reject the new image. The
206 /// rejection is due to the new image version is older than the current firmware image
207 /// version in the device. The device firmware update policy does not support firmware
208 /// version downgrade.
209 ///
210 #define IMAGE_UPDATABLE_INVALID_OLD 0x0000000000000008
211 ///
212 /// IMAGE_UPDATABLE_VALID_WITH_VENDOR_CODE indicates SetImage() will accept and update
213 /// the new image only if a correct VendorCode is provided or else image would be
214 /// rejected and SetImage will return appropriate error.
215 ///
216 #define IMAGE_UPDATABLE_VALID_WITH_VENDOR_CODE 0x0000000000000010
217
218
219 //
220 // Package Attribute Definitions
221 //
222 ///
223 /// The attribute PACKAGE_ATTRIBUTE_VERSION_UPDATABLE indicates this device supports the
224 /// update of the firmware package version.
225 ///
226 #define PACKAGE_ATTRIBUTE_VERSION_UPDATABLE 0x0000000000000001
227 ///
228 /// The attribute PACKAGE_ATTRIBUTE_RESET_REQUIRED indicates a reset of the device is
229 /// required for the new package info to take effect after an update.
230 ///
231 #define PACKAGE_ATTRIBUTE_RESET_REQUIRED 0x0000000000000002
232 ///
233 /// The attribute PACKAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED indicates authentication
234 /// is required to update the package info.
235 ///
236 #define PACKAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED 0x0000000000000004
237
238 /**
239 Callback function to report the process of the firmware updating.
240
241 @param[in] Completion A value between 1 and 100 indicating the current completion
242 progress of the firmware update. Completion progress is
243 reported as from 1 to 100 percent. A value of 0 is used by
244 the driver to indicate that progress reporting is not supported.
245
246 @retval EFI_SUCCESS SetImage() continues to do the callback if supported.
247 @retval other SetImage() discontinues the callback and completes
248 the update and returns.
249
250 **/
251 typedef
252 EFI_STATUS
253 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS)(
254 IN UINTN Completion
255 );
256
257 /**
258 Returns information about the current firmware image(s) of the device.
259
260 This function allows a copy of the current firmware image to be created and saved.
261 The saved copy could later been used, for example, in firmware image recovery or rollback.
262
263 @param[in] This A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.
264 @param[in, out] ImageInfoSize A pointer to the size, in bytes, of the ImageInfo buffer.
265 On input, this is the size of the buffer allocated by the caller.
266 On output, it is the size of the buffer returned by the firmware
267 if the buffer was large enough, or the size of the buffer needed
268 to contain the image(s) information if the buffer was too small.
269 @param[in, out] ImageInfo A pointer to the buffer in which firmware places the current image(s)
270 information. The information is an array of EFI_FIRMWARE_IMAGE_DESCRIPTORs.
271 @param[out] DescriptorVersion A pointer to the location in which firmware returns the version number
272 associated with the EFI_FIRMWARE_IMAGE_DESCRIPTOR.
273 @param[out] DescriptorCount A pointer to the location in which firmware returns the number of
274 descriptors or firmware images within this device.
275 @param[out] DescriptorSize A pointer to the location in which firmware returns the size, in bytes,
276 of an individual EFI_FIRMWARE_IMAGE_DESCRIPTOR.
277 @param[out] PackageVersion A version number that represents all the firmware images in the device.
278 The format is vendor specific and new version must have a greater value
279 than the old version. If PackageVersion is not supported, the value is
280 0xFFFFFFFF. A value of 0xFFFFFFFE indicates that package version comparison
281 is to be performed using PackageVersionName. A value of 0xFFFFFFFD indicates
282 that package version update is in progress.
283 @param[out] PackageVersionName A pointer to a pointer to a null-terminated string representing the
284 package version name. The buffer is allocated by this function with
285 AllocatePool(), and it is the caller's responsibility to free it with a call
286 to FreePool().
287
288 @retval EFI_SUCCESS The device was successfully updated with the new image.
289 @retval EFI_BUFFER_TOO_SMALL The ImageInfo buffer was too small. The current buffer size
290 needed to hold the image(s) information is returned in ImageInfoSize.
291 @retval EFI_INVALID_PARAMETER ImageInfoSize is NULL.
292 @retval EFI_DEVICE_ERROR Valid information could not be returned. Possible corrupted image.
293
294 **/
295 typedef
296 EFI_STATUS
297 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_IMAGE_INFO)(
298 IN EFI_FIRMWARE_MANAGEMENT_PROTOCOL *This,
299 IN OUT UINTN *ImageInfoSize,
300 IN OUT EFI_FIRMWARE_IMAGE_DESCRIPTOR *ImageInfo,
301 OUT UINT32 *DescriptorVersion,
302 OUT UINT8 *DescriptorCount,
303 OUT UINTN *DescriptorSize,
304 OUT UINT32 *PackageVersion,
305 OUT CHAR16 **PackageVersionName
306 );
307
308 /**
309 Retrieves a copy of the current firmware image of the device.
310
311 This function allows a copy of the current firmware image to be created and saved.
312 The saved copy could later been used, for example, in firmware image recovery or rollback.
313
314 @param[in] This A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.
315 @param[in] ImageIndex A unique number identifying the firmware image(s) within the device.
316 The number is between 1 and DescriptorCount.
317 @param[in, out] Image Points to the buffer where the current image is copied to.
318 @param[in, out] ImageSize On entry, points to the size of the buffer pointed to by Image, in bytes.
319 On return, points to the length of the image, in bytes.
320
321 @retval EFI_SUCCESS The device was successfully updated with the new image.
322 @retval EFI_BUFFER_TOO_SMALL The buffer specified by ImageSize is too small to hold the
323 image. The current buffer size needed to hold the image is returned
324 in ImageSize.
325 @retval EFI_INVALID_PARAMETER The Image was NULL.
326 @retval EFI_NOT_FOUND The current image is not copied to the buffer.
327 @retval EFI_UNSUPPORTED The operation is not supported.
328 @retval EFI_SECURITY_VIOLATION The operation could not be performed due to an authentication failure.
329
330 **/
331 typedef
332 EFI_STATUS
333 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_IMAGE)(
334 IN EFI_FIRMWARE_MANAGEMENT_PROTOCOL *This,
335 IN UINT8 ImageIndex,
336 IN OUT VOID *Image,
337 IN OUT UINTN *ImageSize
338 );
339
340 /**
341 Updates the firmware image of the device.
342
343 This function updates the hardware with the new firmware image.
344 This function returns EFI_UNSUPPORTED if the firmware image is not updatable.
345 If the firmware image is updatable, the function should perform the following minimal validations
346 before proceeding to do the firmware image update.
347 - Validate the image authentication if image has attribute
348 IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED. The function returns
349 EFI_SECURITY_VIOLATION if the validation fails.
350 - Validate the image is a supported image for this device. The function returns EFI_ABORTED if
351 the image is unsupported. The function can optionally provide more detailed information on
352 why the image is not a supported image.
353 - Validate the data from VendorCode if not null. Image validation must be performed before
354 VendorCode data validation. VendorCode data is ignored or considered invalid if image
355 validation failed. The function returns EFI_ABORTED if the data is invalid.
356
357 VendorCode enables vendor to implement vendor-specific firmware image update policy. Null if
358 the caller did not specify the policy or use the default policy. As an example, vendor can implement
359 a policy to allow an option to force a firmware image update when the abort reason is due to the new
360 firmware image version is older than the current firmware image version or bad image checksum.
361 Sensitive operations such as those wiping the entire firmware image and render the device to be
362 non-functional should be encoded in the image itself rather than passed with the VendorCode.
363 AbortReason enables vendor to have the option to provide a more detailed description of the abort
364 reason to the caller.
365
366 @param[in] This A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.
367 @param[in] ImageIndex A unique number identifying the firmware image(s) within the device.
368 The number is between 1 and DescriptorCount.
369 @param[in] Image Points to the new image.
370 @param[in] ImageSize Size of the new image in bytes.
371 @param[in] VendorCode This enables vendor to implement vendor-specific firmware image update policy.
372 Null indicates the caller did not specify the policy or use the default policy.
373 @param[in] Progress A function used by the driver to report the progress of the firmware update.
374 @param[out] AbortReason A pointer to a pointer to a null-terminated string providing more
375 details for the aborted operation. The buffer is allocated by this function
376 with AllocatePool(), and it is the caller's responsibility to free it with a
377 call to FreePool().
378
379 @retval EFI_SUCCESS The device was successfully updated with the new image.
380 @retval EFI_ABORTED The operation is aborted.
381 @retval EFI_INVALID_PARAMETER The Image was NULL.
382 @retval EFI_UNSUPPORTED The operation is not supported.
383 @retval EFI_SECURITY_VIOLATION The operation could not be performed due to an authentication failure.
384
385 **/
386 typedef
387 EFI_STATUS
388 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_SET_IMAGE)(
389 IN EFI_FIRMWARE_MANAGEMENT_PROTOCOL *This,
390 IN UINT8 ImageIndex,
391 IN CONST VOID *Image,
392 IN UINTN ImageSize,
393 IN CONST VOID *VendorCode,
394 IN EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS Progress,
395 OUT CHAR16 **AbortReason
396 );
397
398 /**
399 Checks if the firmware image is valid for the device.
400
401 This function allows firmware update application to validate the firmware image without
402 invoking the SetImage() first.
403
404 @param[in] This A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.
405 @param[in] ImageIndex A unique number identifying the firmware image(s) within the device.
406 The number is between 1 and DescriptorCount.
407 @param[in] Image Points to the new image.
408 @param[in] ImageSize Size of the new image in bytes.
409 @param[out] ImageUpdatable Indicates if the new image is valid for update. It also provides,
410 if available, additional information if the image is invalid.
411
412 @retval EFI_SUCCESS The image was successfully checked.
413 @retval EFI_INVALID_PARAMETER The Image was NULL.
414 @retval EFI_UNSUPPORTED The operation is not supported.
415 @retval EFI_SECURITY_VIOLATION The operation could not be performed due to an authentication failure.
416
417 **/
418 typedef
419 EFI_STATUS
420 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_CHECK_IMAGE)(
421 IN EFI_FIRMWARE_MANAGEMENT_PROTOCOL *This,
422 IN UINT8 ImageIndex,
423 IN CONST VOID *Image,
424 IN UINTN ImageSize,
425 OUT UINT32 *ImageUpdatable
426 );
427
428 /**
429 Returns information about the firmware package.
430
431 This function returns package information.
432
433 @param[in] This A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.
434 @param[out] PackageVersion A version number that represents all the firmware images in the device.
435 The format is vendor specific and new version must have a greater value
436 than the old version. If PackageVersion is not supported, the value is
437 0xFFFFFFFF. A value of 0xFFFFFFFE indicates that package version
438 comparison is to be performed using PackageVersionName. A value of
439 0xFFFFFFFD indicates that package version update is in progress.
440 @param[out] PackageVersionName A pointer to a pointer to a null-terminated string representing
441 the package version name. The buffer is allocated by this function with
442 AllocatePool(), and it is the caller's responsibility to free it with a
443 call to FreePool().
444 @param[out] PackageVersionNameMaxLen The maximum length of package version name if device supports update of
445 package version name. A value of 0 indicates the device does not support
446 update of package version name. Length is the number of Unicode characters,
447 including the terminating null character.
448 @param[out] AttributesSupported Package attributes that are supported by this device. See 'Package Attribute
449 Definitions' for possible returned values of this parameter. A value of 1
450 indicates the attribute is supported and the current setting value is
451 indicated in AttributesSetting. A value of 0 indicates the attribute is not
452 supported and the current setting value in AttributesSetting is meaningless.
453 @param[out] AttributesSetting Package attributes. See 'Package Attribute Definitions' for possible returned
454 values of this parameter
455
456 @retval EFI_SUCCESS The package information was successfully returned.
457 @retval EFI_UNSUPPORTED The operation is not supported.
458
459 **/
460 typedef
461 EFI_STATUS
462 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_PACKAGE_INFO)(
463 IN EFI_FIRMWARE_MANAGEMENT_PROTOCOL *This,
464 OUT UINT32 *PackageVersion,
465 OUT CHAR16 **PackageVersionName,
466 OUT UINT32 *PackageVersionNameMaxLen,
467 OUT UINT64 *AttributesSupported,
468 OUT UINT64 *AttributesSetting
469 );
470
471 /**
472 Updates information about the firmware package.
473
474 This function updates package information.
475 This function returns EFI_UNSUPPORTED if the package information is not updatable.
476 VendorCode enables vendor to implement vendor-specific package information update policy.
477 Null if the caller did not specify this policy or use the default policy.
478
479 @param[in] This A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.
480 @param[in] Image Points to the authentication image.
481 Null if authentication is not required.
482 @param[in] ImageSize Size of the authentication image in bytes.
483 0 if authentication is not required.
484 @param[in] VendorCode This enables vendor to implement vendor-specific firmware
485 image update policy.
486 Null indicates the caller did not specify this policy or use
487 the default policy.
488 @param[in] PackageVersion The new package version.
489 @param[in] PackageVersionName A pointer to the new null-terminated Unicode string representing
490 the package version name.
491 The string length is equal to or less than the value returned in
492 PackageVersionNameMaxLen.
493
494 @retval EFI_SUCCESS The device was successfully updated with the new package
495 information.
496 @retval EFI_INVALID_PARAMETER The PackageVersionName length is longer than the value
497 returned in PackageVersionNameMaxLen.
498 @retval EFI_UNSUPPORTED The operation is not supported.
499 @retval EFI_SECURITY_VIOLATION The operation could not be performed due to an authentication failure.
500
501 **/
502 typedef
503 EFI_STATUS
504 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_SET_PACKAGE_INFO)(
505 IN EFI_FIRMWARE_MANAGEMENT_PROTOCOL *This,
506 IN CONST VOID *Image,
507 IN UINTN ImageSize,
508 IN CONST VOID *VendorCode,
509 IN UINT32 PackageVersion,
510 IN CONST CHAR16 *PackageVersionName
511 );
512
513 ///
514 /// EFI_FIRMWARE_MANAGEMENT_PROTOCOL
515 /// The protocol for managing firmware provides the following services.
516 /// - Get the attributes of the current firmware image. Attributes include revision level.
517 /// - Get a copy of the current firmware image. As an example, this service could be used by a
518 /// management application to facilitate a firmware roll-back.
519 /// - Program the device with a firmware image supplied by the user.
520 /// - Label all the firmware images within a device with a single version.
521 ///
522 struct _EFI_FIRMWARE_MANAGEMENT_PROTOCOL {
523 EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_IMAGE_INFO GetImageInfo;
524 EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_IMAGE GetImage;
525 EFI_FIRMWARE_MANAGEMENT_PROTOCOL_SET_IMAGE SetImage;
526 EFI_FIRMWARE_MANAGEMENT_PROTOCOL_CHECK_IMAGE CheckImage;
527 EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_PACKAGE_INFO GetPackageInfo;
528 EFI_FIRMWARE_MANAGEMENT_PROTOCOL_SET_PACKAGE_INFO SetPackageInfo;
529 };
530
531 extern EFI_GUID gEfiFirmwareManagementProtocolGuid;
532
533 #endif