]>
git.proxmox.com Git - mirror_edk2.git/blob - PrmPkg/Include/PrmModule.h
3 Common definitions needed for Platform Runtime Mechanism (PRM) modules.
5 Copyright (c) Microsoft Corporation
6 SPDX-License-Identifier: BSD-2-Clause-Patent
14 #include <PrmContextBuffer.h>
15 #include <PrmDataBuffer.h>
16 #include <PrmExportDescriptor.h>
20 Macro that provides a condensed form of a PRM Handler.
22 This macro can be used to define a PRM Handler that uses the standard PRM Handle
23 signature. It is simply provided for convenience.
26 #define PRM_HANDLER_EXPORT(Name) \
27 STATIC_ASSERT (sizeof (PRM_STRING_(Name)) <= PRM_HANDLER_NAME_MAXIMUM_LENGTH, "The PRM handler exceeds the maximum allowed size of 128."); \
30 A Platform Runtime Mechanism (PRM) handler. \
32 @param[in] ParameterBuffer A pointer to the PRM handler parameter buffer \
33 @param[in] ContextBUffer A pointer to the PRM handler context buffer \
35 @retval EFI_STATUS The PRM handler executed successfully. \
36 @retval Others An error occurred in the PRM handler. \
43 IN VOID *ParameterBuffer, \
44 IN PRM_CONTEXT_BUFFER *ContextBuffer \