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

Go to the source code of this file.

Functions

STATIC EFI_STATUS EFIAPI _DriverUnloadHandler (EFI_HANDLE ImageHandle)
 
EFI_STATUS EFIAPI _ModuleEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Entry point to a EFI/DXE driver. This version is specific to QEMU, and ties dispatch of the driver in question on the value of a QEMU fw_cfg boolean variable which is referenced by name via a fixed pointer PCD.

Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2022, Google LLC. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UefiDriverEntryPointFwCfgOverrideLib.c.

Function Documentation

◆ _DriverUnloadHandler()

STATIC EFI_STATUS EFIAPI _DriverUnloadHandler ( EFI_HANDLE  ImageHandle)

Unloads an image from memory.

This function is a callback that a driver registers to do cleanup when the UnloadImage boot service function is called.

Parameters
ImageHandleThe handle to the image to unload.
Returns
Status returned by all unload().

Definition at line 36 of file UefiDriverEntryPointFwCfgOverrideLib.c.

◆ _ModuleEntryPoint()

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

The entry point of PE/COFF Image for a DXE Driver, DXE Runtime Driver, or UEFI Driver.

Parameters
ImageHandleThe image handle of the DXE Driver, DXE Runtime Driver, or UEFI Driver.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe DXE Driver, DXE Runtime Driver, or UEFI Driver exited normally.
EFI_INCOMPATIBLE_VERSION_gUefiDriverRevision is greater than SystemTable->Hdr.Revision.
OtherReturn value from ProcessModuleEntryPointList().

Definition at line 81 of file UefiDriverEntryPointFwCfgOverrideLib.c.