VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/PrmPkg/Include/Prm.h@ 106058

Last change on this file since 106058 was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/** @file
2
3 Common Platform Runtime Mechanism (PRM) definitions.
4
5 Copyright (c) Microsoft Corporation
6 Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9**/
10
11#ifndef PRM_H_
12#define PRM_H_
13
14#include <Uefi.h>
15#include <PrmContextBuffer.h>
16
17#if defined (_MSC_VER)
18#define PRM_EXPORT_API __declspec(dllexport)
19#elif defined (__GNUC__)
20#define PRM_EXPORT_API __attribute__ ((visibility ("default")))
21#else
22#define PRM_EXPORT_API
23#endif
24
25#define PRM_HANDLER_NAME_MAXIMUM_LENGTH 128
26
27#define PRM_STRING_(x) #x
28#define PRM_STRING(x) PRM_STRING_(x)
29
30/**
31 A Platform Runtime Mechanism (PRM) handler function.
32
33 @param[in] ParameterBuffer A pointer to a buffer with arbitrary data that is allocated and populated
34 by the PRM handler caller.
35 @param[in] ContextBuffer A pointer to a buffer with arbitrary data that is allocated in the firmware
36 boot environment.
37
38 @retval EFI_STATUS The PRM handler executed successfully.
39 @retval Others An error occurred in the PRM handler.
40
41**/
42typedef
43EFI_STATUS
44(EFIAPI PRM_HANDLER)(
45 IN VOID *ParameterBuffer OPTIONAL,
46 IN PRM_CONTEXT_BUFFER *ContextBuffer OPTIONAL
47 );
48
49#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette