TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeContextBufferModuleConfigLib.c File Reference

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
 

Detailed Description

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.

Function Documentation

◆ ContextBufferModuleConfigLibConstructor()

EFI_STATUS EFIAPI ContextBufferModuleConfigLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Constructor of the PRM configuration library.

Parameters
[in]ImageHandleThe image handle of the driver.
[in]SystemTableThe EFI System Table pointer.
Return values
EFI_SUCCESSThe shell command handlers were installed successfully.
EFI_UNSUPPORTEDThe shell level required was not found.

Definition at line 124 of file DxeContextBufferModuleConfigLib.c.

◆ GetStaticDataBuffer()

EFI_STATUS GetStaticDataBuffer ( OUT PRM_DATA_BUFFER **  StaticDataBuffer)

Allocates and populates the static data buffer for this PRM module.

Parameters
[out]StaticDataBufferA pointer to a pointer to the static data buffer.
Return values
EFI_SUCCESSThe static data buffer was allocated and filled successfully.
EFI_INVALID_PARAMETERThe StaticDataBuffer pointer argument is NULL.
EFI_OUT_OF_RESOURCESInsufficient memory resources to allocate the static data buffer.

Definition at line 76 of file DxeContextBufferModuleConfigLib.c.

◆ PopulateStaticDataBuffer()

EFI_STATUS PopulateStaticDataBuffer ( OUT STATIC_DATA_SAMPLE_CONTEXT_BUFFER_MODULE StaticDataBuffer)

Populates the static data buffer for this PRM module.

Parameters
[out]StaticDataBufferA pointer to the static data buffer.
Return values
EFI_SUCCESSThe static data buffer was populated successfully.
EFI_INVALID_PARAMETERThe StaticDataBuffer pointer argument is NULL.

Definition at line 43 of file DxeContextBufferModuleConfigLib.c.

Variable Documentation

◆ mCheckStaticDataBufferPrmHandlerGuid

STATIC CONST EFI_GUID mCheckStaticDataBufferPrmHandlerGuid
Initial value:
= {
0xe1466081, 0x7562, 0x430f, { 0x89, 0x6b, 0xb0, 0xe5, 0x23, 0xdc, 0x33, 0x5a }
}

Definition at line 29 of file DxeContextBufferModuleConfigLib.c.

◆ mPrmConfigProtocolHandle

STATIC EFI_HANDLE mPrmConfigProtocolHandle

Definition at line 21 of file DxeContextBufferModuleConfigLib.c.

◆ mPrmModuleGuid

STATIC CONST EFI_GUID mPrmModuleGuid
Initial value:
= {
0x5a6cf42b, 0x8bb4, 0x472c, { 0xa2, 0x33, 0x5c, 0x4d, 0xc4, 0x03, 0x3d, 0xc7 }
}

Definition at line 24 of file DxeContextBufferModuleConfigLib.c.