10#define _CAPSULE_APP_H_
41#define CAPSULE_HEADER_SIZE 0x20
43#define NESTED_CAPSULE_HEADER_SIZE SIZE_4KB
44#define SYSTEM_FIRMWARE_FLAG 0x50000
45#define DEVICE_FIRMWARE_FLAG 0x78010
47#define MAJOR_VERSION 1
48#define MINOR_VERSION 0
50#define MAX_CAPSULE_NUM 10
55#define MAX_FILE_NAME_SIZE 522
56#define MAX_FILE_NAME_LEN (MAX_FILE_NAME_SIZE / sizeof(CHAR16))
129 IN CHAR16 *CapsuleName
182 IN BOOLEAN DumpCapsuleInfo
227 IN VOID **CapsuleBuffer,
229 IN CHAR16 **FilePath,
EFI_STATUS ReadFileToBuffer(IN CHAR16 *FileName, OUT UINTN *BufferSize, OUT VOID **Buffer)
EFI_STATUS WriteFileFromBuffer(IN CHAR16 *FileName, IN UINTN BufferSize, IN VOID *Buffer)
VOID DumpProvisionedCapsule(IN BOOLEAN DumpCapsuleInfo)
EFI_STATUS GetEfiSysPartitionFromBootOptionFilePath(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT EFI_DEVICE_PATH_PROTOCOL **FullPath, OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL **Fs)
EFI_SHELL_PROTOCOL * GetShellProtocol(VOID)
VOID DumpAllEfiSysPartition(VOID)
EFI_STATUS DumpCapsuleStatusVariable(VOID)
EFI_STATUS DumpCapsule(IN CHAR16 *CapsuleName)
VOID DumpFmpImage(IN EFI_GUID *ImageTypeId, IN UINTN ImageIndex, IN CHAR16 *ImageName)
EFI_STATUS ProcessCapsuleOnDisk(IN VOID **CapsuleBuffer, IN UINTN *CapsuleBufferSize, IN CHAR16 **FilePath, IN CHAR16 *Map, IN UINTN CapsuleNum)