VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Include/Ppi/SmmCommunication.h

Last change on this file 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.8 KB
Line 
1/** @file
2 EFI SMM Communication PPI definition.
3
4 This Ppi provides a means of communicating between PEIM and SMI
5 handlers inside of SMM.
6 This Ppi is produced and consumed only in S3 resume boot path.
7 It is NOT available in normal boot path.
8
9Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
10
11SPDX-License-Identifier: BSD-2-Clause-Patent
12
13**/
14
15#ifndef _SMM_COMMUNICATION_PPI_H_
16#define _SMM_COMMUNICATION_PPI_H_
17
18#define EFI_PEI_SMM_COMMUNICATION_PPI_GUID \
19 { \
20 0xae933e1c, 0xcc47, 0x4e38, { 0x8f, 0xe, 0xe2, 0xf6, 0x1d, 0x26, 0x5, 0xdf } \
21 }
22
23typedef struct _EFI_PEI_SMM_COMMUNICATION_PPI EFI_PEI_SMM_COMMUNICATION_PPI;
24
25/**
26 Communicates with a registered handler.
27
28 This function provides a service to send and receive messages from a registered UEFI service.
29
30 @param[in] This The EFI_PEI_SMM_COMMUNICATION_PPI instance.
31 @param[in] CommBuffer A pointer to the buffer to convey into SMRAM.
32 @param[in] CommSize The size of the data buffer being passed in.On exit, the size of data
33 being returned. Zero if the handler does not wish to reply with any data.
34
35 @retval EFI_SUCCESS The message was successfully posted.
36 @retval EFI_INVALID_PARAMETER The CommBuffer was NULL.
37**/
38typedef
39EFI_STATUS
40(EFIAPI *EFI_PEI_SMM_COMMUNICATE)(
41 IN CONST EFI_PEI_SMM_COMMUNICATION_PPI *This,
42 IN OUT VOID *CommBuffer,
43 IN OUT UINTN *CommSize
44 );
45
46///
47/// EFI SMM Communication Protocol provides runtime services for communicating
48/// between DXE drivers and a registered SMI handler.
49///
50struct _EFI_PEI_SMM_COMMUNICATION_PPI {
51 EFI_PEI_SMM_COMMUNICATE Communicate;
52};
53
54extern EFI_GUID gEfiPeiSmmCommunicationPpiGuid;
55
56#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