TianoCore EDK2 master
|
#include <PrmModule.h>
#include <Library/BaseLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiLib.h>
#include <Samples/PrmSampleContextBufferModule/Include/StaticData.h>
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) |
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.
#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.
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.
[in] | ParameterBuffer | A pointer to the PRM handler parameter buffer |
[in] | ContextBUffer | A pointer to the PRM handler context buffer |
EFI_STATUS | The PRM handler executed successfully. |
Others | An error occurred in the PRM handler. |
Definition at line 38 of file PrmSampleContextBufferModule.c.
EFI_STATUS EFIAPI PrmSampleContextBufferModuleInit | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Module entry point.
[in] | ImageHandle | The image handle. |
[in] | SystemTable | A pointer to the system table. |
EFI_SUCCESS | This function always returns success. |
Definition at line 78 of file PrmSampleContextBufferModule.c.