TianoCore EDK2 master
|
#include "CapsuleApp.h"
Go to the source code of this file.
Variables | |
EFI_GUID | mCapsuleOnDiskBootOptionGuid |
Process Capsule On Disk.
Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CapsuleOnDisk.c.
VOID DumpAllEfiSysPartition | ( | VOID | ) |
Dump all EFI System Partition.
Definition at line 115 of file CapsuleOnDisk.c.
EFI_STATUS GetEfiSysPartition | ( | OUT EFI_DEVICE_PATH_PROTOCOL ** | FsDevicePath, |
OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL ** | Fs | ||
) |
Get one active Efi System Partition.
[out] | FsDevicePath | The device path of Fs |
[out] | Fs | The file system within EfiSysPartition |
EFI_SUCCESS | Get file system successfully |
EFI_NOT_FOUND | No valid file system found |
Definition at line 202 of file CapsuleOnDisk.c.
EFI_STATUS GetEfiSysPartitionFromBootOptionFilePath | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath, |
OUT EFI_DEVICE_PATH_PROTOCOL ** | FullPath, | ||
OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL ** | Fs | ||
) |
Get SimpleFileSystem from boot option file path.
[in] | DevicePath | The file path of boot option |
[out] | FullPath | The full device path of boot device |
[out] | Fs | The file system within EfiSysPartition |
EFI_SUCCESS | Get file system successfully |
EFI_NOT_FOUND | No valid file system found |
others | Get file system failed |
Definition at line 314 of file CapsuleOnDisk.c.
EFI_STATUS GetEfiSysPartitionFromDevPath | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath, |
OUT EFI_DEVICE_PATH_PROTOCOL ** | FsDevicePath, | ||
OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL ** | Fs | ||
) |
Check if Active Efi System Partition within GPT is in the device path.
[in] | DevicePath | The device path |
[out] | FsDevicePath | The device path of Fs |
[out] | Fs | The file system within EfiSysPartition |
EFI_SUCCESS | Get file system successfully |
EFI_NOT_FOUND | No valid file system found |
others | Get file system failed |
Definition at line 252 of file CapsuleOnDisk.c.
CHAR16 * GetFileNameFromPath | ( | CHAR16 * | FilePath | ) |
Get file name from file path.
FilePath | File path. |
Definition at line 24 of file CapsuleOnDisk.c.
EFI_STATUS GetUpdateFileSystem | ( | IN CHAR16 * | Map, |
OUT UINT16 * | BootNext, | ||
OUT EFI_SIMPLE_FILE_SYSTEM_PROTOCOL ** | Fs, | ||
OUT BOOLEAN * | UpdateBootNext | ||
) |
Get a valid SimpleFileSystem within EFI system partition.
[in] | Map | The FS mapping capsule write to |
[out] | BootNext | The value of BootNext Variable |
[out] | Fs | The file system within EfiSysPartition |
[out] | UpdateBootNext | The flag to indicate whether update BootNext Variable |
EFI_SUCCESS | Get FS successfully |
EFI_NOT_FOUND | No valid FS found |
others | Get FS failed |
Definition at line 382 of file CapsuleOnDisk.c.
BOOLEAN IsCapsuleOnDiskSupported | ( | VOID | ) |
Check if Capsule On Disk is supported.
TRUE | Capsule On Disk is supported. |
FALSE | Capsule On Disk is not supported. |
Definition at line 742 of file CapsuleOnDisk.c.
BOOLEAN IsCapsuleProvisioned | ( | VOID | ) |
Check if capsule is provisioned.
TRUE | Capsule is provisioned previously. |
FALSE | No capsule is provisioned. |
Definition at line 165 of file CapsuleOnDisk.c.
BOOLEAN IsEfiSysPartitionDevicePath | ( | EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
Check if the device path is EFI system Partition.
DevicePath | The ESP device path. |
TRUE | DevicePath is a device path for ESP. |
FALSE | DevicePath is not a device path for ESP. |
Definition at line 72 of file CapsuleOnDisk.c.
EFI_STATUS ProcessCapsuleOnDisk | ( | IN VOID ** | CapsuleBuffer, |
IN UINTN * | CapsuleBufferSize, | ||
IN CHAR16 ** | FilePath, | ||
IN CHAR16 * | Map, | ||
IN UINTN | CapsuleNum | ||
) |
Process Capsule On Disk.
[in] | CapsuleBuffer | An array of pointer to capsule images |
[in] | CapsuleBufferSize | An array of UINTN to capsule images size |
[in] | FilePath | An array of capsule images file path |
[in] | Map | File system mapping string |
[in] | CapsuleNum | The count of capsule images |
EFI_SUCCESS | Capsule on disk success. |
others | Capsule on disk fail. |
Definition at line 783 of file CapsuleOnDisk.c.
EFI_STATUS SetCapsuleStatusVariable | ( | BOOLEAN | SetCap | ) |
Set capsule status variable.
[in] | SetCap | Set or clear the capsule flag. |
EFI_SUCCESS | Succeed to set SetCap variable. |
others | Fail to set the variable. |
Definition at line 696 of file CapsuleOnDisk.c.
EFI_STATUS WriteUpdateFile | ( | IN VOID ** | Buffer, |
IN UINTN * | BufferSize, | ||
IN CHAR16 ** | FileName, | ||
IN UINTN | BufferNum, | ||
IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * | Fs | ||
) |
Write files to a given SimpleFileSystem.
[in] | Buffer | The buffer array |
[in] | BufferSize | The buffer size array |
[in] | FileName | The file name array |
[in] | BufferNum | The buffer number |
[in] | Fs | The SimpleFileSystem handle to be written |
EFI_SUCCESS | Write file successfully |
EFI_NOT_FOUND | SFS protocol not found |
others | Write file failed |
Definition at line 579 of file CapsuleOnDisk.c.
EFI_GUID mCapsuleOnDiskBootOptionGuid |
Definition at line 11 of file CapsuleOnDisk.c.