TianoCore EDK2 master
Loading...
Searching...
No Matches
PiSmmCommunicationSmm.c File Reference

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
 

Detailed Description

PiSmmCommunication SMM Driver.

Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PiSmmCommunicationSmm.c.

Function Documentation

◆ AllocateAcpiNvsMemoryBelow4G()

VOID * AllocateAcpiNvsMemoryBelow4G ( IN UINTN  Size)

Allocate EfiACPIMemoryNVS below 4G memory address.

This function allocates EfiACPIMemoryNVS below 4G memory address.

Parameters
SizeSize of memory to allocate.
Returns
Allocated address for output.

Definition at line 126 of file PiSmmCommunicationSmm.c.

◆ PiSmmCommunicationHandler()

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.

Parameters
DispatchHandleThe unique handle assigned to this handler by SmiHandlerRegister().
ContextPoints to an optional handler context which was specified when the handler was registered.
CommBufferA pointer to a collection of data in memory that will be conveyed from a non-SMM environment into an SMM environment.
CommBufferSizeThe size of the CommBuffer.
Return values
EFI_SUCCESSCommand is handled successfully.

Definition at line 62 of file PiSmmCommunicationSmm.c.

◆ PiSmmCommunicationSmmEntryPoint()

EFI_STATUS EFIAPI PiSmmCommunicationSmmEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entry Point for PI SMM communication SMM driver.

Parameters
[in]ImageHandleImage handle of this driver.
[in]SystemTableA Pointer to the EFI System Table.
Return values
EFI_SUCCESS
Returns
Others Some error occurs.

Definition at line 163 of file PiSmmCommunicationSmm.c.

◆ SetCommunicationContext()

VOID SetCommunicationContext ( VOID  )

Set SMM communication context.

Definition at line 32 of file PiSmmCommunicationSmm.c.

Variable Documentation

◆ mSmmCommunicationContext

EFI_SMM_COMMUNICATION_CONTEXT mSmmCommunicationContext
Initial value:
= {
SMM_COMMUNICATION_SIGNATURE
}

Definition at line 24 of file PiSmmCommunicationSmm.c.