TianoCore EDK2 master
|
#include "InternalBm.h"
Go to the source code of this file.
Functions | |
EFI_DEVICE_PATH_PROTOCOL * | BmDelPartMatchInstance (IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Single) |
BOOLEAN | BmMatchDevicePaths (IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Single) |
VOID | BmSetMemoryTypeInformationVariable (IN BOOLEAN Boot) |
EFI_STATUS | BmSetVariableAndReportStatusCodeOnError (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data) |
VOID | BmPrintDp (EFI_DEVICE_PATH_PROTOCOL *DevicePath) |
UINTN | BmCharToUint (IN CHAR16 Char) |
EFI_STATUS EFIAPI | EfiBootManagerDispatchDeferredImages (VOID) |
Misc library functions.
Copyright (c) 2011 - 2019, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BmMisc.c.
EFI_DEVICE_PATH_PROTOCOL * BmDelPartMatchInstance | ( | IN EFI_DEVICE_PATH_PROTOCOL * | Multi, |
IN EFI_DEVICE_PATH_PROTOCOL * | Single | ||
) |
Delete the instance in Multi which matches partly with Single instance
Multi | A pointer to a multi-instance device path data structure. |
Single | A pointer to a single-instance device path data structure. |
BOOLEAN BmMatchDevicePaths | ( | IN EFI_DEVICE_PATH_PROTOCOL * | Multi, |
IN EFI_DEVICE_PATH_PROTOCOL * | Single | ||
) |
Function compares a device path data structure to that of all the nodes of a second device path instance.
Multi | A pointer to a multi-instance device path data structure. |
Single | A pointer to a single-instance device path data structure. |
TRUE | If the Single device path is contained within Multi device path. |
FALSE | The Single device path is not match within Multi device path. |
VOID BmPrintDp | ( | EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
VOID BmSetMemoryTypeInformationVariable | ( | IN BOOLEAN | Boot | ) |
This routine adjust the memory information for different memory type and save them into the variables for next boot. It resets the system when memory information is updated and the current boot option belongs to boot category instead of application category. It doesn't count the reserved memory occupied by RAM Disk.
Boot | TRUE if current boot option belongs to boot category instead of application category. |
EFI_STATUS BmSetVariableAndReportStatusCodeOnError | ( | IN CHAR16 * | VariableName, |
IN EFI_GUID * | VendorGuid, | ||
IN UINT32 | Attributes, | ||
IN UINTN | DataSize, | ||
IN VOID * | Data | ||
) |
Set the variable and report the error through status code upon failure.
VariableName | A Null-terminated string that is the name of the vendor's variable. Each VariableName is unique for each VendorGuid. VariableName must contain 1 or more characters. If VariableName is an empty string, then EFI_INVALID_PARAMETER is returned. |
VendorGuid | A unique identifier for the vendor. |
Attributes | Attributes bitmask to set for the variable. |
DataSize | The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE, or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is set, then a SetVariable() call with a DataSize of zero will not cause any change to the variable value (the timestamp associated with the variable may be updated however even if no new data value is provided,see the description of the EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated). |
Data | The contents for the variable. |
EFI_SUCCESS | The firmware has successfully stored the variable and its data as defined by the Attributes. |
EFI_INVALID_PARAMETER | An invalid combination of attribute bits, name, and GUID was supplied, or the DataSize exceeds the maximum allowed. |
EFI_INVALID_PARAMETER | VariableName is an empty string. |
EFI_OUT_OF_RESOURCES | Not enough storage is available to hold the variable and its data. |
EFI_DEVICE_ERROR | The variable could not be retrieved due to a hardware error. |
EFI_WRITE_PROTECTED | The variable in question is read-only. |
EFI_WRITE_PROTECTED | The variable in question cannot be deleted. |
EFI_SECURITY_VIOLATION | The variable could not be written due to EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo does NOT pass the validation check carried out by the firmware. |
EFI_NOT_FOUND | The variable trying to be updated or deleted was not found. |
EFI_STATUS EFIAPI EfiBootManagerDispatchDeferredImages | ( | VOID | ) |
Dispatch the deferred images that are returned from all DeferredImageLoad instances.
EFI_SUCCESS | At least one deferred image is loaded successfully and started. |
EFI_NOT_FOUND | There is no deferred image. |
EFI_ACCESS_DENIED | There are deferred images but all of them are failed to load. |