TianoCore EDK2 master
Loading...
Searching...
No Matches
FmpDeviceLib.c
Go to the documentation of this file.
1
12#include <PiDxe.h>
15
36EFIAPI
39 )
40{
41 return EFI_UNSUPPORTED;
42}
43
64EFIAPI
67 )
68{
69 return EFI_UNSUPPORTED;
70}
71
97EFIAPI
99 IN EFI_HANDLE Handle,
100 IN OUT VOID **Context
101 )
102{
103 return EFI_UNSUPPORTED;
104}
105
126EFIAPI
128 OUT UINTN *Size
129 )
130{
131 if (Size == NULL) {
132 return EFI_INVALID_PARAMETER;
133 }
134
135 *Size = 0;
136 return EFI_SUCCESS;
137}
138
157EFIAPI
159 OUT EFI_GUID **Guid
160 )
161{
162 return EFI_UNSUPPORTED;
163}
164
186EFIAPI
188 OUT UINT64 *Supported,
189 OUT UINT64 *Setting
190 )
191{
192 if ((Supported == NULL) || (Setting == NULL)) {
193 return EFI_INVALID_PARAMETER;
194 }
195
196 *Supported = 0;
197 *Setting = 0;
198 return EFI_SUCCESS;
199}
200
230EFIAPI
232 OUT UINT32 *LowestSupportedVersion
233 )
234{
235 return EFI_UNSUPPORTED;
236}
237
265EFIAPI
267 OUT CHAR16 **VersionString
268 )
269{
270 if (VersionString == NULL) {
271 return EFI_INVALID_PARAMETER;
272 }
273
274 *VersionString = NULL;
275 return EFI_UNSUPPORTED;
276}
277
305EFIAPI
307 OUT UINT32 *Version
308 )
309{
310 return EFI_UNSUPPORTED;
311}
312
334EFIAPI
336 OUT UINT64 *HardwareInstance
337 )
338{
339 return EFI_UNSUPPORTED;
340}
341
373EFIAPI
375 OUT VOID *Image,
376 IN OUT UINTN *ImageSize
377 )
378{
379 return EFI_UNSUPPORTED;
380}
381
407EFIAPI
409 IN CONST VOID *Image,
410 IN UINTN ImageSize,
411 OUT UINT32 *ImageUpdatable
412 )
413{
414 UINT32 LastAttemptStatus;
415
416 return FmpDeviceCheckImageWithStatus (Image, ImageSize, ImageUpdatable, &LastAttemptStatus);
417}
418
454EFIAPI
456 IN CONST VOID *Image,
457 IN UINTN ImageSize,
458 OUT UINT32 *ImageUpdatable,
459 OUT UINT32 *LastAttemptStatus
460 )
461{
462 *LastAttemptStatus = LAST_ATTEMPT_STATUS_SUCCESS;
463
464 return EFI_SUCCESS;
465}
466
520EFIAPI
522 IN CONST VOID *Image,
523 IN UINTN ImageSize,
524 IN CONST VOID *VendorCode OPTIONAL,
526 IN UINT32 CapsuleFwVersion,
527 OUT CHAR16 **AbortReason
528 )
529{
530 UINT32 LastAttemptStatus;
531
533 Image,
534 ImageSize,
535 VendorCode,
536 Progress,
537 CapsuleFwVersion,
538 AbortReason,
539 &LastAttemptStatus
540 );
541}
542
607EFIAPI
609 IN CONST VOID *Image,
610 IN UINTN ImageSize,
611 IN CONST VOID *VendorCode OPTIONAL,
613 IN UINT32 CapsuleFwVersion,
614 OUT CHAR16 **AbortReason,
615 OUT UINT32 *LastAttemptStatus
616 )
617{
618 *LastAttemptStatus = LAST_ATTEMPT_STATUS_SUCCESS;
619
620 return EFI_UNSUPPORTED;
621}
622
639EFIAPI
641 VOID
642 )
643{
644 return EFI_UNSUPPORTED;
645}
UINT64 UINTN
EFI_STATUS(EFIAPI * EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS)(IN UINTN Completion)
EFI_STATUS EFIAPI FmpDeviceGetImage(OUT VOID *Image, IN OUT UINTN *ImageSize)
Definition: FmpDeviceLib.c:374
EFI_STATUS EFIAPI FmpDeviceSetImageWithStatus(IN CONST VOID *Image, IN UINTN ImageSize, IN CONST VOID *VendorCode OPTIONAL, IN EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS Progress OPTIONAL, IN UINT32 CapsuleFwVersion, OUT CHAR16 **AbortReason, OUT UINT32 *LastAttemptStatus)
Definition: FmpDeviceLib.c:608
EFI_STATUS EFIAPI FmpDeviceGetSize(OUT UINTN *Size)
Definition: FmpDeviceLib.c:127
EFI_STATUS EFIAPI FmpDeviceCheckImage(IN CONST VOID *Image, IN UINTN ImageSize, OUT UINT32 *ImageUpdatable)
Definition: FmpDeviceLib.c:408
EFI_STATUS EFIAPI FmpDeviceLock(VOID)
Definition: FmpDeviceLib.c:640
EFI_STATUS EFIAPI FmpDeviceGetVersion(OUT UINT32 *Version)
Definition: FmpDeviceLib.c:306
EFI_STATUS EFIAPI FmpDeviceCheckImageWithStatus(IN CONST VOID *Image, IN UINTN ImageSize, OUT UINT32 *ImageUpdatable, OUT UINT32 *LastAttemptStatus)
Definition: FmpDeviceLib.c:455
EFI_STATUS EFIAPI FmpDeviceGetAttributes(OUT UINT64 *Supported, OUT UINT64 *Setting)
Definition: FmpDeviceLib.c:187
EFI_STATUS EFIAPI FmpDeviceSetImage(IN CONST VOID *Image, IN UINTN ImageSize, IN CONST VOID *VendorCode OPTIONAL, IN EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS Progress OPTIONAL, IN UINT32 CapsuleFwVersion, OUT CHAR16 **AbortReason)
Definition: FmpDeviceLib.c:521
EFI_STATUS EFIAPI FmpDeviceGetHardwareInstance(OUT UINT64 *HardwareInstance)
Definition: FmpDeviceLib.c:335
EFI_STATUS EFIAPI FmpDeviceSetContext(IN EFI_HANDLE Handle, IN OUT VOID **Context)
Definition: FmpDeviceLib.c:98
EFI_STATUS EFIAPI FmpDeviceGetLowestSupportedVersion(OUT UINT32 *LowestSupportedVersion)
Definition: FmpDeviceLib.c:231
EFI_STATUS EFIAPI RegisterFmpInstaller(IN FMP_DEVICE_LIB_REGISTER_FMP_INSTALLER Function)
Definition: FmpDeviceLib.c:37
EFI_STATUS EFIAPI RegisterFmpUninstaller(IN FMP_DEVICE_LIB_REGISTER_FMP_UNINSTALLER Function)
Definition: FmpDeviceLib.c:65
EFI_STATUS EFIAPI FmpDeviceGetVersionString(OUT CHAR16 **VersionString)
Definition: FmpDeviceLib.c:266
EFI_STATUS EFIAPI FmpDeviceGetImageTypeIdGuidPtr(OUT EFI_GUID **Guid)
Definition: FmpDeviceLib.c:158
EFI_STATUS(EFIAPI * FMP_DEVICE_LIB_REGISTER_FMP_UNINSTALLER)(IN EFI_HANDLE Handle)
Definition: FmpDeviceLib.h:53
EFI_STATUS(EFIAPI * FMP_DEVICE_LIB_REGISTER_FMP_INSTALLER)(IN EFI_HANDLE Handle)
Definition: FmpDeviceLib.h:33
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define LAST_ATTEMPT_STATUS_SUCCESS
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
Definition: Base.h:213