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

Go to the source code of this file.

Data Structures

struct  _ADD_PERFORMANCE_RECORD_PROTOCOL
 

Macros

#define FSP_API_NOTIFY_PHASE_AFTER_PCI_ENUMERATION   BIT16
 

Typedefs

typedef EFI_STATUS(EFIAPI * ADD_PERFORMANCE_RECORDS) (IN CONST VOID *HobStart)
 
typedef struct _ADD_PERFORMANCE_RECORD_PROTOCOL ADD_PERFORMANCE_RECORD_PROTOCOL
 

Functions

EFI_STATUS RelocateImageUnder4GIfNeeded (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
VOID EFIAPI OnPciEnumerationComplete (IN EFI_EVENT Event, IN VOID *Context)
 
VOID EFIAPI OnReadyToBoot (IN EFI_EVENT Event, IN VOID *Context)
 
VOID EFIAPI OnEndOfFirmware (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI FspWrapperNotifyDxeEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_GUID gAddPerfRecordProtocolGuid
 
EFI_GUID gFspHobGuid
 
EFI_GUID gFspApiPerformanceGuid
 

Detailed Description

This driver will register two callbacks to call fsp's notifies.

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

Definition in file FspWrapperNotifyDxe.c.

Macro Definition Documentation

◆ FSP_API_NOTIFY_PHASE_AFTER_PCI_ENUMERATION

#define FSP_API_NOTIFY_PHASE_AFTER_PCI_ENUMERATION   BIT16

Definition at line 24 of file FspWrapperNotifyDxe.c.

Typedef Documentation

◆ ADD_PERFORMANCE_RECORD_PROTOCOL

◆ ADD_PERFORMANCE_RECORDS

typedef EFI_STATUS(EFIAPI * ADD_PERFORMANCE_RECORDS) (IN CONST VOID *HobStart)

Definition at line 27 of file FspWrapperNotifyDxe.c.

Function Documentation

◆ FspWrapperNotifyDxeEntryPoint()

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

Main entry for the FSP DXE module.

This routine registers two callbacks to call fsp's notifies.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
otherSome error occurs when executing this entry point.

Definition at line 227 of file FspWrapperNotifyDxe.c.

◆ OnEndOfFirmware()

VOID EFIAPI OnEndOfFirmware ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

This stage is notified just before the firmware/Preboot environment transfers management of all system resources to the OS or next level execution environment.

Parameters
EventEvent whose notification function is being invoked.
ContextPointer to the notification function's context, which is always zero in current implementation.

Definition at line 164 of file FspWrapperNotifyDxe.c.

◆ OnPciEnumerationComplete()

VOID EFIAPI OnPciEnumerationComplete ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

PciEnumerationComplete Protocol notification event handler.

Parameters
[in]EventEvent whose notification function is being invoked.
[in]ContextPointer to the notification function's context.

Definition at line 68 of file FspWrapperNotifyDxe.c.

◆ OnReadyToBoot()

VOID EFIAPI OnReadyToBoot ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Notification function of EVT_GROUP_READY_TO_BOOT event group.

This is a notification function registered on EVT_GROUP_READY_TO_BOOT event group. When the Boot Manager is about to load and execute a boot option, it reclaims variable storage if free size is below the threshold.

Parameters
[in]EventEvent whose notification function is being invoked.
[in]ContextPointer to the notification function's context.

Definition at line 123 of file FspWrapperNotifyDxe.c.

◆ RelocateImageUnder4GIfNeeded()

EFI_STATUS RelocateImageUnder4GIfNeeded ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Relocate this image under 4G memory.

Parameters
ImageHandleHandle of driver image.
SystemTablePointer to system table.
Return values
EFI_SUCCESSImage successfully relocated.
EFI_ABORTEDFailed to relocate image.

Definition at line 31 of file LoadBelow4G.c.