123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377 |
- /*++
- Copyright (c) 2014 Minoca Corp. All Rights Reserved
- Module Name:
- ueficore.h
- Abstract:
- This header contains internal definitions for the UEFI core.
- Author:
- Evan Green 26-Feb-2014
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- //
- // Define away API decorators, as everything is linked statically.
- //
- #define RTL_API
- #define KERNEL_API
- #include <minoca/lib/types.h>
- #include <minoca/lib/status.h>
- #include <minoca/kernel/arch.h>
- #include <minoca/lib/rtl.h>
- #include <uefifw.h>
- #include "image.h"
- #include "lock.h"
- #include "devpath.h"
- #include "handle.h"
- #include "memory.h"
- #include "runtime.h"
- #include "shortcut.h"
- //
- // --------------------------------------------------------------------- Macros
- //
- #define EFI_UNPACK_UINT32(_Pointer) \
- (((UINT8 *)_Pointer)[0] | \
- (((UINT8 *)_Pointer)[1] << 8) | \
- (((UINT8 *)_Pointer)[2] << 16) | \
- (((UINT8 *)_Pointer)[3] << 24))
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- #if defined(EFI_X86)
- typedef struct _EFI_JUMP_BUFFER {
- UINT32 Ebx;
- UINT32 Esi;
- UINT32 Edi;
- UINT32 Ebp;
- UINT32 Esp;
- UINT32 Eip;
- } EFI_JUMP_BUFFER, *PEFI_JUMP_BUFFER;
- #define EFI_JUMP_BUFFER_ALIGNMENT 4
- #elif defined(EFI_ARM)
- typedef struct _EFI_JUMP_BUFFER {
- UINT32 R3;
- UINT32 R4;
- UINT32 R5;
- UINT32 R6;
- UINT32 R7;
- UINT32 R8;
- UINT32 R9;
- UINT32 R10;
- UINT32 R11;
- UINT32 R12;
- UINT32 R14;
- } EFI_JUMP_BUFFER, *PEFI_JUMP_BUFFER;
- #define EFI_JUMP_BUFFER_ALIGNMENT 4
- #else
- #error Unsupported Architecture
- #endif
- //
- // -------------------------------------------------------------------- Globals
- //
- extern EFI_TPL EfiCurrentTpl;
- extern UINTN EfiEventsPending;
- //
- // Define timer services data.
- //
- extern UINT32 EfiClockTimerInterruptNumber;
- //
- // Store the runtime handoff information.
- //
- extern EFI_RUNTIME_ARCH_PROTOCOL *EfiRuntimeProtocol;
- //
- // Store the image handle of the firmware itself.
- //
- extern EFI_HANDLE EfiFirmwareImageHandle;
- //
- // -------------------------------------------------------- Function Prototypes
- //
- VOID
- EfipInitializeProcessor (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes processor-specific structures. In the case of x86,
- it initializes the GDT and TSS.
- Arguments:
- None.
- Return Value:
- None.
- --*/
- EFIAPI
- EFI_TPL
- EfiCoreRaiseTpl (
- EFI_TPL NewTpl
- );
- /*++
- Routine Description:
- This routine raises the current Task Priority Level.
- Arguments:
- NewTpl - Supplies the new TPL to set.
- Return Value:
- Returns the previous TPL.
- --*/
- EFIAPI
- VOID
- EfiCoreRestoreTpl (
- EFI_TPL OldTpl
- );
- /*++
- Routine Description:
- This routine restores the Task Priority Level back to its original value
- before it was raised.
- Arguments:
- OldTpl - Supplies the original TPL to restore back to.
- Return Value:
- None.
- --*/
- EFI_STATUS
- EfiCoreInitializeInterruptServices (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes core interrupt services.
- Arguments:
- None.
- Return Value:
- EFI status code.
- --*/
- VOID
- EfiCoreTerminateInterruptServices (
- VOID
- );
- /*++
- Routine Description:
- This routine terminates interrupt services in preparation for transitioning
- out of boot services.
- Arguments:
- None.
- Return Value:
- None.
- --*/
- VOID
- EfiCoreDispatchInterrupt (
- VOID
- );
- /*++
- Routine Description:
- This routine is called to service an interrupt.
- Arguments:
- None.
- Return Value:
- None.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreGetNextMonotonicCount (
- UINT64 *Count
- );
- /*++
- Routine Description:
- This routine returns a monotonically increasing count for the platform.
- Arguments:
- Count - Supplies a pointer where the next count is returned.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the count is NULL.
- EFI_DEVICE_ERROR if the device is not functioning properly.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreStall (
- UINTN Microseconds
- );
- /*++
- Routine Description:
- This routine induces a fine-grained delay.
- Arguments:
- Microseconds - Supplies the number of microseconds to stall execution for.
- Return Value:
- EFI_SUCCESS on success.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreSetWatchdogTimer (
- UINTN Timeout,
- UINT64 WatchdogCode,
- UINTN DataSize,
- CHAR16 *WatchdogData
- );
- /*++
- Routine Description:
- This routine sets the system's watchdog timer.
- Arguments:
- Timeout - Supplies the number of seconds to set the timer for.
- WatchdogCode - Supplies a numeric code to log on a watchdog timeout event.
- DataSize - Supplies the size of the watchdog data.
- WatchdogData - Supplies an optional buffer that includes a null-terminated
- string, optionally followed by additional binary data.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the supplied watchdog code is invalid.
- EFI_UNSUPPORTED if there is no watchdog timer.
- EFI_DEVICE_ERROR if an error occurred accessing the device hardware.
- --*/
- UINT64
- EfiCoreReadTimeCounter (
- VOID
- );
- /*++
- Routine Description:
- This routine reads the current time counter value.
- Arguments:
- None.
- Return Value:
- Returns a 64-bit non-decreasing value.
- 0 if the time counter is not implemented.
- --*/
- UINT64
- EfiCoreReadRecentTimeCounter (
- VOID
- );
- /*++
- Routine Description:
- This routine reads a relatively recent but not entirely up to date version
- of the time counter.
- Arguments:
- None.
- Return Value:
- Returns a 64-bit non-decreasing value.
- 0 if the time counter is not implemented.
- --*/
- UINT64
- EfiCoreGetTimeCounterFrequency (
- VOID
- );
- /*++
- Routine Description:
- This routine returns the frequency of the time counter.
- Arguments:
- None.
- Return Value:
- Returns the frequency of the time counter.
- 0 if the time counter is not implemented.
- --*/
- VOID
- EfiCoreServiceClockInterrupt (
- UINT32 InterruptNumber
- );
- /*++
- Routine Description:
- This routine is called to service the clock interrupt.
- Arguments:
- InterruptNumber - Supplies the interrupt number that fired.
- Return Value:
- None.
- --*/
- EFI_STATUS
- EfiCoreInitializeTimerServices (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes platform timer services, including the periodic
- tick and time counter.
- Arguments:
- None.
- Return Value:
- EFI status code.
- --*/
- VOID
- EfiCoreTerminateTimerServices (
- VOID
- );
- /*++
- Routine Description:
- This routine terminates timer services in preparation for the termination
- of boot services.
- Arguments:
- None.
- Return Value:
- None.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreCreateEvent (
- UINT32 Type,
- EFI_TPL NotifyTpl,
- EFI_EVENT_NOTIFY NotifyFunction,
- VOID *NotifyContext,
- EFI_EVENT *Event
- );
- /*++
- Routine Description:
- This routine creates an event.
- Arguments:
- Type - Supplies the type of event to create, as well as its mode and
- attributes.
- NotifyTpl - Supplies an optional task priority level of event notifications.
- NotifyFunction - Supplies an optional pointer to the event's notification
- function.
- NotifyContext - Supplies an optional context pointer that will be passed
- to the notify function when the event is signaled.
- Event - Supplies a pointer where the new event will be returned on success.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if one or more parameters are not valid.
- EFI_OUT_OF_RESOURCES if memory could not be allocated.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreCreateEventEx (
- UINT32 Type,
- EFI_TPL NotifyTpl,
- EFI_EVENT_NOTIFY NotifyFunction,
- VOID *NotifyContext,
- EFI_GUID *EventGroup,
- EFI_EVENT *Event
- );
- /*++
- Routine Description:
- This routine creates an event.
- Arguments:
- Type - Supplies the type of event to create, as well as its mode and
- attributes.
- NotifyTpl - Supplies an optional task priority level of event notifications.
- NotifyFunction - Supplies an optional pointer to the event's notification
- function.
- NotifyContext - Supplies an optional context pointer that will be passed
- to the notify function when the event is signaled.
- EventGroup - Supplies an optional pointer to the unique identifier of the
- group to which this event belongs. If this is NULL, the function
- behaves as if the parameters were passed to the original create event
- function.
- Event - Supplies a pointer where the new event will be returned on success.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if one or more parameters are not valid.
- EFI_OUT_OF_RESOURCES if memory could not be allocated.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreCloseEvent (
- EFI_EVENT Event
- );
- /*++
- Routine Description:
- This routine closes an event.
- Arguments:
- Event - Supplies the event to close.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the given event is invalid.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreSignalEvent (
- EFI_EVENT Event
- );
- /*++
- Routine Description:
- This routine signals an event.
- Arguments:
- Event - Supplies the event to signal.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the given event is not valid.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreCheckEvent (
- EFI_EVENT Event
- );
- /*++
- Routine Description:
- This routine checks whether or not an event is in the signaled state.
- Arguments:
- Event - Supplies the event to check.
- Return Value:
- EFI_SUCCESS on success.
- EFI_NOT_READY if the event is not signaled.
- EFI_INVALID_PARAMETER if the event is of type EVT_NOTIFY_SIGNAL.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreWaitForEvent (
- UINTN NumberOfEvents,
- EFI_EVENT *Event,
- UINTN *Index
- );
- /*++
- Routine Description:
- This routine stops execution until an event is signaled.
- Arguments:
- NumberOfEvents - Supplies the number of events in the event array.
- Event - Supplies the array of EFI_EVENTs.
- Index - Supplies a pointer where the index of the event which satisfied the
- wait will be returned.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the number of events is zero, or the event
- indicated by the index return parameter is of type EVT_NOTIFY_SIGNAL.
- EFI_UNSUPPORTED if the current TPL is not TPL_APPLICATION.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreSetTimer (
- EFI_EVENT Event,
- EFI_TIMER_DELAY Type,
- UINT64 TriggerTime
- );
- /*++
- Routine Description:
- This routine sets the type of timer and trigger time for a timer event.
- Arguments:
- Event - Supplies the timer to set.
- Type - Supplies the type of trigger to set.
- TriggerTime - Supplies the number of 100ns units until the timer expires.
- Zero is legal, and means the timer will be signaled on the next timer
- tick.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the event or type is not valid.
- --*/
- EFI_STATUS
- EfiCoreInitializeEventServices (
- UINTN Phase
- );
- /*++
- Routine Description:
- This routine initializes event support.
- Arguments:
- Phase - Supplies the initialization phase. Valid values are 0 and 1.
- Return Value:
- EFI Status code.
- --*/
- VOID
- EfiCoreDispatchEventNotifies (
- EFI_TPL Priority
- );
- /*++
- Routine Description:
- This routine dispatches all pending events.
- Arguments:
- Priority - Supplies the task priority level of the event notifications to
- dispatch.
- Return Value:
- None.
- --*/
- VOID
- EfipCoreTimerTick (
- UINT64 CurrentTime
- );
- /*++
- Routine Description:
- This routine is called when a clock interrupt comes in.
- Arguments:
- CurrentTime - Supplies the new current time.
- Return Value:
- None.
- --*/
- VOID
- EfipCoreNotifySignalList (
- EFI_GUID *EventGroup
- );
- /*++
- Routine Description:
- This routine signals all events in the given event group.
- Arguments:
- EventGroup - Supplies a pointer to the GUID identifying the event group
- to signal.
- Return Value:
- None.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreConnectController (
- EFI_HANDLE ControllerHandle,
- EFI_HANDLE *DriverImageHandle,
- EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
- BOOLEAN Recursive
- );
- /*++
- Routine Description:
- This routine connects one or more drivers to a controller.
- Arguments:
- ControllerHandle - Supplies the handle of the controller which driver(s)
- are connecting to.
- DriverImageHandle - Supplies a pointer to an ordered list of handles that
- support the EFI_DRIVER_BINDING_PROTOCOL.
- RemainingDevicePath - Supplies an optional pointer to the device path that
- specifies a child of the controller specified by the controller handle.
- Recursive - Supplies a boolean indicating if this routine should be called
- recursively until the entire tree of controllers below the specified
- controller has been connected. If FALSE, then the tree of controllers
- is only expanded one level.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the controller handle is NULL.
- EFI_NOT_FOUND if either there are no EFI_DRIVER_BINDING_PROTOCOL instances
- present in the system, or no drivers were connected to the controller
- handle.
- EFI_SECURITY_VIOLATION if the user has no permission to start UEFI device
- drivers on the device associated with the controller handle or specified
- by the remaining device path.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreDisconnectController (
- EFI_HANDLE ControllerHandle,
- EFI_HANDLE DriverImageHandle,
- EFI_HANDLE ChildHandle
- );
- /*++
- Routine Description:
- This routine disconnects one or more drivers to a controller.
- Arguments:
- ControllerHandle - Supplies the handle of the controller which driver(s)
- are disconnecting from.
- DriverImageHandle - Supplies an optional pointer to the driver to
- disconnect from the controller. If NULL, all drivers are disconnected.
- ChildHandle - Supplies an optional pointer to the handle of the child to
- destroy.
- Return Value:
- EFI_SUCCESS if one or more drivers were disconnected, no drivers are
- managing the handle, or a driver image handle was supplied and it is not
- controlling the given handle.
- EFI_INVALID_PARAMETER if the controller handle or driver handle is not a
- valid EFI handle, or the driver image handle doesn't support the
- EFI_DRIVER_BINDING_PROTOCOL.
- EFI_OUT_OF_RESOURCES if there are not enough resources are available to
- disconnect the controller(s).
- EFI_DEVICE_ERROR if the controller could not be disconnected because of a
- device error.
- --*/
- EFI_STATUS
- EfiCoreInitializeImageServices (
- VOID *FirmwareBaseAddress,
- VOID *FirmwareLowestAddress,
- UINTN FirmwareSize
- );
- /*++
- Routine Description:
- This routine initializes image service support for the UEFI core.
- Arguments:
- FirmwareBaseAddress - Supplies the base address where the firmware was
- loaded into memory. Supply -1 to indicate that the image is loaded at
- its preferred base address and was not relocated.
- FirmwareLowestAddress - Supplies the lowest address where the firmware was
- loaded into memory.
- FirmwareSize - Supplies the size of the firmware image in memory, in bytes.
- Return Value:
- EFI Status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreCalculateCrc32 (
- VOID *Data,
- UINTN DataSize,
- UINT32 *Crc32
- );
- /*++
- Routine Description:
- This routine computes the 32-bit CRC for a data buffer.
- Arguments:
- Data - Supplies a pointer to the buffer to compute the CRC on.
- DataSize - Supplies the size of the data buffer in bytes.
- Crc32 - Supplies a pointer where the 32-bit CRC will be returned.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if any parameter is NULL, or the data size is zero.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreInstallConfigurationTable (
- EFI_GUID *Guid,
- VOID *Table
- );
- /*++
- Routine Description:
- This routine adds, updates, or removes a configuration table entry from the
- EFI System Table.
- Arguments:
- Guid - Supplies a pointer to the GUID for the entry to add, update, or
- remove.
- Table - Supplies a pointer to the configuration table for the entry to add,
- update, or remove. This may be NULL.
- Return Value:
- EFI_SUCCESS on success.
- EFI_NOT_FOUND if an attempt was made to delete a nonexistant entry.
- EFI_INVALID_PARAMETER if the GUID is NULL.
- EFI_OUT_OF_RESOURCES if an allocation failed.
- --*/
- EFIAPI
- EFI_STATUS
- EfiFvInitializeSectionExtraction (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine initializes the section extraction support for firmware
- volumes.
- Arguments:
- ImageHandle - Supplies a pointer to the image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiFvInitializeBlockSupport (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine initializes the Firmware Volume Block I/O support module.
- Arguments:
- ImageHandle - Supplies a pointer to the image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiFvDriverInit (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine initializes support for UEFI firmware volumes.
- Arguments:
- ImageHandle - Supplies the image handle for this driver. This is probably
- the firmware core image handle.
- SystemTable - Supplies a pointer to the system table.
- Return Value:
- EFI status code.
- --*/
- VOID
- EfiCoreInitializeDispatcher (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes the driver dispatcher.
- Arguments:
- None.
- Return Value:
- None.
- --*/
- EFIAPI
- EFI_STATUS
- EfiCoreDispatcher (
- VOID
- );
- /*++
- Routine Description:
- This routine runs the driver dispatcher. It drains the scheduled queue
- loading and starting drivers until there are no more drivers to run.
- Arguments:
- None.
- Return Value:
- EFI_SUCCESS if one or more drivers were loaded.
- EFI_NOT_FOUND if no drivers were loaded.
- EFI_ALREADY_STARTED if the dispatcher is already running.
- --*/
- EFIAPI
- UINTN
- EfipArchSetJump (
- PEFI_JUMP_BUFFER JumpBuffer
- );
- /*++
- Routine Description:
- This routine sets the context in the given jump buffer such that when
- long jump is called, execution continues at the return value from this
- routine with a non-zero return value.
- Arguments:
- JumpBuffer - Supplies a pointer where the architecture-specific context
- will be saved.
- Return Value:
- 0 upon the initial return from this routine.
- Non-zero when returning as the target of a long jump.
- --*/
- EFIAPI
- VOID
- EfipArchLongJump (
- PEFI_JUMP_BUFFER JumpBuffer,
- UINTN Value
- );
- /*++
- Routine Description:
- This routine restores machine context to the state it was in when the
- set jump that saved into the given jump buffer was called. The return
- value will be set to the given value.
- Arguments:
- JumpBuffer - Supplies a pointer to the context to restore.
- Value - Supplies the new return value to set from set jump. This should not
- be zero, otherwise the caller of set jump will not be able to
- differentiate it from its initial return.
- Return Value:
- This routine does not return.
- --*/
- VOID
- EfiCoreLoadVariablesFromFileSystem (
- VOID
- );
- /*++
- Routine Description:
- This routine loads variable data from the EFI system partition(s).
- Arguments:
- None.
- Return Value:
- None. Failure here is not fatal.
- --*/
- VOID
- EfiCoreSaveVariablesToFileSystem (
- VOID
- );
- /*++
- Routine Description:
- This routine saves variable data to the EFI system partition(s).
- Arguments:
- None.
- Return Value:
- None. Failure here is not fatal.
- --*/
- EFIAPI
- VOID
- EfiBdsEntry (
- VOID
- );
- /*++
- Routine Description:
- This routine is the entry point into the boot device selection phase of
- the firmware. It attempts to find an OS loader and launch it.
- Arguments:
- None.
- Return Value:
- None. This routine does not return.
- --*/
- //
- // Built-in drivers
- //
- EFIAPI
- EFI_STATUS
- EfiDiskIoDriverEntry (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine is the entry point into the disk I/O driver.
- Arguments:
- ImageHandle - Supplies the driver image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiPartitionDriverEntry (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine is the entry point into the partition driver.
- Arguments:
- ImageHandle - Supplies the driver image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiFatDriverEntry (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine is the entry point into the disk I/O driver.
- Arguments:
- ImageHandle - Supplies the driver image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiGraphicsTextDriverEntry (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine initializes support for UEFI video consoles.
- Arguments:
- ImageHandle - Supplies the image handle for this driver. This is probably
- the firmware core image handle.
- SystemTable - Supplies a pointer to the system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiAcpiDriverEntry (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine is the entry point into the ACPI driver.
- Arguments:
- ImageHandle - Supplies the driver image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfiSmbiosDriverEntry (
- EFI_HANDLE ImageHandle,
- EFI_SYSTEM_TABLE *SystemTable
- );
- /*++
- Routine Description:
- This routine is the entry point into the SMBIOS driver.
- Arguments:
- ImageHandle - Supplies the driver image handle.
- SystemTable - Supplies a pointer to the EFI system table.
- Return Value:
- EFI status code.
- --*/
|