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