TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/PrmConfig.h>
#include <Samples/PrmSampleContextBufferModule/Include/StaticData.h>
#include <PrmContextBuffer.h>
#include <PrmDataBuffer.h>
Go to the source code of this file.
Functions | |
EFI_STATUS | PopulateStaticDataBuffer (OUT STATIC_DATA_SAMPLE_CONTEXT_BUFFER_MODULE *StaticDataBuffer) |
EFI_STATUS | GetStaticDataBuffer (OUT PRM_DATA_BUFFER **StaticDataBuffer) |
EFI_STATUS EFIAPI | ContextBufferModuleConfigLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC EFI_HANDLE | mPrmConfigProtocolHandle |
STATIC CONST EFI_GUID | mPrmModuleGuid |
STATIC CONST EFI_GUID | mCheckStaticDataBufferPrmHandlerGuid |
The boot services environment configuration library for the Context Buffer Sample PRM module.
Copyright (c) Microsoft Corporation SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DxeContextBufferModuleConfigLib.c.
EFI_STATUS EFIAPI ContextBufferModuleConfigLibConstructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Constructor of the PRM configuration library.
[in] | ImageHandle | The image handle of the driver. |
[in] | SystemTable | The EFI System Table pointer. |
EFI_SUCCESS | The shell command handlers were installed successfully. |
EFI_UNSUPPORTED | The shell level required was not found. |
Definition at line 124 of file DxeContextBufferModuleConfigLib.c.
EFI_STATUS GetStaticDataBuffer | ( | OUT PRM_DATA_BUFFER ** | StaticDataBuffer | ) |
Allocates and populates the static data buffer for this PRM module.
[out] | StaticDataBuffer | A pointer to a pointer to the static data buffer. |
EFI_SUCCESS | The static data buffer was allocated and filled successfully. |
EFI_INVALID_PARAMETER | The StaticDataBuffer pointer argument is NULL. |
EFI_OUT_OF_RESOURCES | Insufficient memory resources to allocate the static data buffer. |
Definition at line 76 of file DxeContextBufferModuleConfigLib.c.
EFI_STATUS PopulateStaticDataBuffer | ( | OUT STATIC_DATA_SAMPLE_CONTEXT_BUFFER_MODULE * | StaticDataBuffer | ) |
Populates the static data buffer for this PRM module.
[out] | StaticDataBuffer | A pointer to the static data buffer. |
EFI_SUCCESS | The static data buffer was populated successfully. |
EFI_INVALID_PARAMETER | The StaticDataBuffer pointer argument is NULL. |
Definition at line 43 of file DxeContextBufferModuleConfigLib.c.
Definition at line 29 of file DxeContextBufferModuleConfigLib.c.
STATIC EFI_HANDLE mPrmConfigProtocolHandle |
Definition at line 21 of file DxeContextBufferModuleConfigLib.c.
Definition at line 24 of file DxeContextBufferModuleConfigLib.c.