OpenCore
1.0.4
OpenCore Bootloader
|
#include <Library/BaseMemoryLib.h>
#include <Library/DevicePathLib.h>
#include <Library/DuetBdsLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
Go to the source code of this file.
Functions | |
VOID *EFIAPI | BdsLibGetVariableAndSize (IN CHAR16 *Name, IN EFI_GUID *VendorGuid, OUT UINTN *VariableSize) |
EFI_DEVICE_PATH_PROTOCOL *EFIAPI | BdsLibDelPartMatchInstance (IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Single) |
BOOLEAN EFIAPI | BdsLibMatchDevicePaths (IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Single) |
Misc BDS library function
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file BdsMisc.c.
EFI_DEVICE_PATH_PROTOCOL *EFIAPI BdsLibDelPartMatchInstance | ( | 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. |
VOID *EFIAPI BdsLibGetVariableAndSize | ( | IN CHAR16 * | Name, |
IN EFI_GUID * | VendorGuid, | ||
OUT UINTN * | VariableSize ) |
Read the EFI variable (VendorGuid/Name) and return a dynamically allocated buffer, and the size of the buffer. If failure return NULL.
Name | String part of EFI variable name |
VendorGuid | GUID part of EFI variable name |
VariableSize | Returns the size of the EFI variable that was read |
NULL | Variable was not read |
BOOLEAN EFIAPI BdsLibMatchDevicePaths | ( | 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. |