TianoCore EDK2 master
|
#include <PiSmm.h>
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/SmmServicesTableLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/SmmMemLib.h>
#include <Protocol/SmmSwDispatch2.h>
#include <Protocol/SmmCommunication.h>
#include <Ppi/SmmCommunication.h>
#include "PiSmmCommunicationPrivate.h"
Go to the source code of this file.
Functions | |
VOID | SetCommunicationContext (VOID) |
EFI_STATUS EFIAPI | PiSmmCommunicationHandler (IN EFI_HANDLE DispatchHandle, IN CONST VOID *Context OPTIONAL, IN OUT VOID *CommBuffer OPTIONAL, IN OUT UINTN *CommBufferSize OPTIONAL) |
VOID * | AllocateAcpiNvsMemoryBelow4G (IN UINTN Size) |
EFI_STATUS EFIAPI | PiSmmCommunicationSmmEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
EFI_SMM_COMMUNICATION_CONTEXT | mSmmCommunicationContext |
PiSmmCommunication SMM Driver.
Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PiSmmCommunicationSmm.c.
Allocate EfiACPIMemoryNVS below 4G memory address.
This function allocates EfiACPIMemoryNVS below 4G memory address.
Size | Size of memory to allocate. |
Definition at line 126 of file PiSmmCommunicationSmm.c.
EFI_STATUS EFIAPI PiSmmCommunicationHandler | ( | IN EFI_HANDLE | DispatchHandle, |
IN CONST VOID *Context | OPTIONAL, | ||
IN OUT VOID *CommBuffer | OPTIONAL, | ||
IN OUT UINTN *CommBufferSize | OPTIONAL | ||
) |
Dispatch function for a Software SMI handler.
DispatchHandle | The unique handle assigned to this handler by SmiHandlerRegister(). |
Context | Points to an optional handler context which was specified when the handler was registered. |
CommBuffer | A pointer to a collection of data in memory that will be conveyed from a non-SMM environment into an SMM environment. |
CommBufferSize | The size of the CommBuffer. |
EFI_SUCCESS | Command is handled successfully. |
Definition at line 62 of file PiSmmCommunicationSmm.c.
EFI_STATUS EFIAPI PiSmmCommunicationSmmEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Entry Point for PI SMM communication SMM driver.
[in] | ImageHandle | Image handle of this driver. |
[in] | SystemTable | A Pointer to the EFI System Table. |
EFI_SUCCESS |
Definition at line 163 of file PiSmmCommunicationSmm.c.
VOID SetCommunicationContext | ( | VOID | ) |
Set SMM communication context.
Definition at line 32 of file PiSmmCommunicationSmm.c.
EFI_SMM_COMMUNICATION_CONTEXT mSmmCommunicationContext |
Definition at line 24 of file PiSmmCommunicationSmm.c.