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

Go to the source code of this file.

Macros

#define CHECK_STATIC_DATA_BUFFER_PRM_HANDLER_GUID   {0xe1466081, 0x7562, 0x430f, {0x89, 0x6b, 0xb0, 0xe5, 0x23, 0xdc, 0x33, 0x5a}}
 

Functions

 PRM_HANDLER_EXPORT (CheckStaticDataBufferPrmHandler)
 
 PRM_MODULE_EXPORT ()
 
EFI_STATUS EFIAPI PrmSampleContextBufferModuleInit (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

This PRM Module demonstrates how to configure the module data resources in the firmware boot environment and access those resources in a PRM handler at OS runtime.

Copyright (c) Microsoft Corporation SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PrmSampleContextBufferModule.c.

Macro Definition Documentation

◆ CHECK_STATIC_DATA_BUFFER_PRM_HANDLER_GUID

#define CHECK_STATIC_DATA_BUFFER_PRM_HANDLER_GUID   {0xe1466081, 0x7562, 0x430f, {0x89, 0x6b, 0xb0, 0xe5, 0x23, 0xdc, 0x33, 0x5a}}

Definition at line 24 of file PrmSampleContextBufferModule.c.

Function Documentation

◆ PRM_HANDLER_EXPORT()

PRM_HANDLER_EXPORT ( CheckStaticDataBufferPrmHandler  )

A sample Platform Runtime Mechanism (PRM) handler.

This sample handler checks that a static data buffer can be accessed from a given context buffer.

Parameters
[in]ParameterBufferA pointer to the PRM handler parameter buffer
[in]ContextBUfferA pointer to the PRM handler context buffer
Return values
EFI_STATUSThe PRM handler executed successfully.
OthersAn error occurred in the PRM handler.

Definition at line 38 of file PrmSampleContextBufferModule.c.

◆ PrmSampleContextBufferModuleInit()

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

Module entry point.

Parameters
[in]ImageHandleThe image handle.
[in]SystemTableA pointer to the system table.
Return values
EFI_SUCCESSThis function always returns success.

Definition at line 78 of file PrmSampleContextBufferModule.c.