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