X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FUefiLib.h;h=dd270783968dd7b2797f0e711a88c4fa8fce27e8;hb=e47b06c3397ccc13bf6fa5a471ed20f1ccc758a9;hp=fd3bdac53e5af7b01fd3ef923272b4b9d9e04557;hpb=abea19dbe10720a4ef4f9e688996d71a493cebe9;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/UefiLib.h index fd3bdac53e..dd27078396 100644 --- a/MdePkg/Include/Library/UefiLib.h +++ b/MdePkg/Include/Library/UefiLib.h @@ -400,7 +400,7 @@ EfiSignalEventLegacyBoot ( This was bad as Tiano did not own the enum. In UEFI 2.0 CreateEventEx was added and now it's possible to not voilate the UEFI specification by declaring a GUID for the legacy boot event class. This library supports - the R8.5/EFI 1.10 form and R9/UEFI 2.0 form and allows common code to + the EDK/EFI 1.10 form and EDK II/UEFI 2.0 form and allows common code to work both ways. @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). @@ -415,6 +415,34 @@ EfiCreateEventLegacyBoot ( OUT EFI_EVENT *LegacyBootEvent ); +/** + Create an EFI event in the Legacy Boot Event Group and allows + the caller to specify a notification function. + + This function abstracts the creation of the Legacy Boot Event. + The Framework moved from a proprietary to UEFI 2.0 based mechanism. + This library abstracts the caller from how this event is created to prevent + to code form having to change with the version of the specification supported. + If LegacyBootEvent is NULL, then ASSERT(). + + @param NotifyTpl The task priority level of the event. + @param NotifyFunction The notification function to call when the event is signaled. + @param NotifyContext The content to pass to NotifyFunction when the event is signaled. + @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). + + @retval EFI_SUCCESS Event was created. + @retval Other Event was not created. + +**/ +EFI_STATUS +EFIAPI +EfiCreateEventLegacyBootEx ( + IN EFI_TPL NotifyTpl, + IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL + IN VOID *NotifyContext, OPTIONAL + OUT EFI_EVENT *LegacyBootEvent + ); + /** Create a Read to Boot Event. @@ -422,7 +450,7 @@ EfiCreateEventLegacyBoot ( This was bad as Tiano did not own the enum. In UEFI 2.0 CreateEventEx was added and now it's possible to not voilate the UEFI specification and use the ready to boot event class defined in UEFI 2.0. This library supports - the R8.5/EFI 1.10 form and R9/UEFI 2.0 form and allows common code to + the EDK/EFI 1.10 form and EDKII/UEFI 2.0 form and allows common code to work both ways. @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). @@ -437,13 +465,41 @@ EfiCreateEventReadyToBoot ( OUT EFI_EVENT *ReadyToBootEvent ); +/** + Create an EFI event in the Ready To Boot Event Group and allows + the caller to specify a notification function. + + This function abstracts the creation of the Ready to Boot Event. + The Framework moved from a proprietary to UEFI 2.0 based mechanism. + This library abstracts the caller from how this event is created to prevent + to code form having to change with the version of the specification supported. + If ReadyToBootEvent is NULL, then ASSERT(). + + @param NotifyTpl The task priority level of the event. + @param NotifyFunction The notification function to call when the event is signaled. + @param NotifyContext The content to pass to NotifyFunction when the event is signaled. + @param LegacyBootEvent Returns the EFI event returned from gBS->CreateEvent(Ex). + + @retval EFI_SUCCESS Event was created. + @retval Other Event was not created. + +**/ +EFI_STATUS +EFIAPI +EfiCreateEventReadyToBootEx ( + IN EFI_TPL NotifyTpl, + IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL + IN VOID *NotifyContext, OPTIONAL + OUT EFI_EVENT *ReadyToBootEvent + ); + /** Initialize a Firmware Volume (FV) Media Device Path node. Tiano extended the EFI 1.10 device path nodes. Tiano does not own this enum so as we move to UEFI 2.0 support we must use a mechanism that conforms with the UEFI 2.0 specification to define the FV device path. An UEFI GUIDed - device path is defined for PIWG extensions of device path. If the code + device path is defined for Tiano extensions of device path. If the code is compiled to conform with the UEFI 2.0 specification use the new device path else use the old form for backwards compatability. @@ -464,7 +520,7 @@ EfiInitializeFwVolDevicepathNode ( Tiano extended the EFI 1.10 device path nodes. Tiano does not own this enum so as we move to UEFI 2.0 support we must use a mechanism that conforms with the UEFI 2.0 specification to define the FV device path. An UEFI GUIDed - device path is defined for PIWG extensions of device path. If the code + device path is defined for Tiano extensions of device path. If the code is compiled to conform with the UEFI 2.0 specification use the new device path else use the old form for backwards compatability. The return value to this function points to a location in FvDevicePathNode and it does not allocate