TianoCore EDK2 master
|
#include "EsrtImpl.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | GetEsrtEntry (IN EFI_GUID *FwClass, IN UINTN Attribute, OUT EFI_SYSTEM_RESOURCE_ENTRY *Entry) |
EFI_STATUS | InsertEsrtEntry (IN EFI_SYSTEM_RESOURCE_ENTRY *Entry, UINTN Attribute) |
EFI_STATUS | DeleteEsrtEntry (IN EFI_GUID *FwClass, IN UINTN Attribute) |
EFI_STATUS | UpdateEsrtEntry (IN EFI_SYSTEM_RESOURCE_ENTRY *Entry, UINTN Attribute) |
BOOLEAN | IsSystemFmp (IN EFI_FIRMWARE_IMAGE_DESCRIPTOR *FmpImageInfo) |
VOID | SetEsrtEntryFromFmpInfo (IN OUT EFI_SYSTEM_RESOURCE_ENTRY *EsrtEntry, IN EFI_FIRMWARE_IMAGE_DESCRIPTOR *FmpImageInfo, IN UINT32 DescriptorVersion) |
Esrt management implementation.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EsrtImpl.c.
EFI_STATUS DeleteEsrtEntry | ( | IN EFI_GUID * | FwClass, |
IN UINTN | Attribute | ||
) |
Delete ESRT Entry from ESRT repository.
[in] | FwClass | FwClass of Esrt entry to delete |
[in] | Attribute | Esrt from Esrt private protocol or FMP instance |
EFI_SUCCESS | Insert all entries Successfully |
EFI_NOT_FOUND | ESRT entry with FwClass doesn't exsit |
Definition at line 209 of file EsrtImpl.c.
EFI_STATUS GetEsrtEntry | ( | IN EFI_GUID * | FwClass, |
IN UINTN | Attribute, | ||
OUT EFI_SYSTEM_RESOURCE_ENTRY * | Entry | ||
) |
Find Esrt Entry stored in ESRT repository.
[in] | FwClass | Firmware class guid in Esrt entry |
[in] | Attribute | Esrt from Non FMP or FMP instance |
[out] | Entry | Esrt entry returned |
EFI_SUCCESS | Successfully find an Esrt entry |
EF_NOT_FOUND | No Esrt entry found |
Definition at line 23 of file EsrtImpl.c.
EFI_STATUS InsertEsrtEntry | ( | IN EFI_SYSTEM_RESOURCE_ENTRY * | Entry, |
UINTN | Attribute | ||
) |
Insert a new ESRT entry into ESRT Cache repository.
[in] | Entry | Esrt entry to be set |
[in] | Attribute | Esrt from Esrt private protocol or FMP instance |
EFI_SUCCESS | Successfully set a variable. |
Definition at line 92 of file EsrtImpl.c.
BOOLEAN IsSystemFmp | ( | IN EFI_FIRMWARE_IMAGE_DESCRIPTOR * | FmpImageInfo | ) |
Return if this FMP is a system FMP or a device FMP, based upon FmpImageInfo.
[in] | FmpImageInfo | A pointer to EFI_FIRMWARE_IMAGE_DESCRIPTOR |
Definition at line 405 of file EsrtImpl.c.
VOID SetEsrtEntryFromFmpInfo | ( | IN OUT EFI_SYSTEM_RESOURCE_ENTRY * | EsrtEntry, |
IN EFI_FIRMWARE_IMAGE_DESCRIPTOR * | FmpImageInfo, | ||
IN UINT32 | DescriptorVersion | ||
) |
Init one ESRT entry according to input FmpImageInfo (V1, V2, V3) .
[in,out] | EsrtEntry | Esrt entry to be Init |
[in] | FmpImageInfo | FMP image info descriptor |
[in] | DescriptorVersion | FMP Image info descriptor version |
Definition at line 434 of file EsrtImpl.c.
EFI_STATUS UpdateEsrtEntry | ( | IN EFI_SYSTEM_RESOURCE_ENTRY * | Entry, |
UINTN | Attribute | ||
) |
Update one ESRT entry in ESRT repository
[in] | Entry | Esrt entry to be set |
[in] | Attribute | Esrt from Non Esrt or FMP instance |
EFI_SUCCESS | Successfully Update a variable. |
EFI_NOT_FOUND | The Esrt enry doesn't exist |
Definition at line 310 of file EsrtImpl.c.