7.8 Initializing Driver entry point

The example below shows an initializing driver called Abc. This driver initializes one or more components in the platform and exits. It does not produce any services that are required after the entry point has been executed. This type of driver returns an error from the entry point so the driver is unloaded by the UEFI image services. An initializing driver never registers an Unload() service because an initializing driver is always unloaded after the driver entry point is executed. This type is typically used by OEMs and IBVs to initialize the state of a hardware component in the platform such as a processor or chipset component.

Example 103-Initializing driver entry point

#include <Uefi.h>
EFI_STATUS
EFIAPI
AbcDriverEntryPoint (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
//
// Perform some platform initialization operations here
//
return EFI_ABORTED;
}