71 IN VOID *NotifyContext OPTIONAL,
78 ASSERT (LegacyBootEvent !=
NULL);
81 DEBUG ((DEBUG_ERROR,
"EFI1.1 can't support LegacyBootEvent!"));
84 return EFI_UNSUPPORTED;
99 Status =
gBS->CreateEventEx (
102 WorkerNotifyFunction,
104 &gEfiEventLegacyBootGuid,
167 IN VOID *NotifyContext OPTIONAL,
174 ASSERT (ReadyToBootEvent !=
NULL);
177 DEBUG ((DEBUG_ERROR,
"EFI1.1 can't support ReadyToBootEvent!"));
180 return EFI_UNSUPPORTED;
195 Status =
gBS->CreateEventEx (
198 WorkerNotifyFunction,
200 &gEfiEventReadyToBootGuid,
228 if (!EFI_ERROR (Status)) {
229 gBS->SignalEvent (ReadyToBootEvent);
230 gBS->CloseEvent (ReadyToBootEvent);
233 Status =
gBS->CreateEventEx (
238 &gEfiEventAfterReadyToBootGuid,
239 &AfterReadyToBootEvent
241 if (!EFI_ERROR (Status)) {
242 gBS->SignalEvent (AfterReadyToBootEvent);
243 gBS->CloseEvent (AfterReadyToBootEvent);
266 if (!EFI_ERROR (Status)) {
267 gBS->SignalEvent (LegacyBootEvent);
268 gBS->CloseEvent (LegacyBootEvent);
296 ASSERT (FvDevicePathNode !=
NULL);
298 if ((
DevicePathType (&FvDevicePathNode->Header) == MEDIA_DEVICE_PATH) &&
301 return (
EFI_GUID *)&FvDevicePathNode->FvFileName;
330 ASSERT (FvDevicePathNode !=
NULL);
331 ASSERT (NameGuid !=
NULL);
336 FvDevicePathNode->Header.Type = MEDIA_DEVICE_PATH;
340 CopyGuid (&FvDevicePathNode->FvFileName, NameGuid);
GUID *EFIAPI CopyGuid(OUT GUID *DestinationGuid, IN CONST GUID *SourceGuid)
#define MEDIA_PIWG_FW_FILE_DP
UINT8 EFIAPI DevicePathType(IN CONST VOID *Node)
UINT16 EFIAPI SetDevicePathNodeLength(IN OUT VOID *Node, IN UINTN Length)
UINT8 EFIAPI DevicePathSubType(IN CONST VOID *Node)
#define DEBUG(Expression)
VOID EFIAPI NotifyFunction(IN EFI_EVENT Event, IN VOID *Context)
VOID EFIAPI EfiEventEmptyFunction(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI EfiCreateEventLegacyBootEx(IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN VOID *NotifyContext OPTIONAL, OUT EFI_EVENT *LegacyBootEvent)
EFI_STATUS EFIAPI EfiCreateEventReadyToBoot(OUT EFI_EVENT *ReadyToBootEvent)
EFI_STATUS EFIAPI EfiCreateEventLegacyBoot(OUT EFI_EVENT *LegacyBootEvent)
VOID EFIAPI EfiInitializeFwVolDevicepathNode(IN OUT MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode, IN CONST EFI_GUID *NameGuid)
EFI_STATUS EFIAPI EfiCreateEventReadyToBootEx(IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN VOID *NotifyContext OPTIONAL, OUT EFI_EVENT *ReadyToBootEvent)
VOID EFIAPI EfiSignalEventLegacyBoot(VOID)
VOID EFIAPI EfiSignalEventReadyToBoot(VOID)
EFI_GUID *EFIAPI EfiGetNameGuidFromFwVolDevicePathNode(IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvDevicePathNode)
VOID(EFIAPI * EFI_EVENT_NOTIFY)(IN EFI_EVENT Event, IN VOID *Context)