]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiLib/UefiNotTiano.c
Update copyright for files modified in this year
[mirror_edk2.git] / MdePkg / Library / UefiLib / UefiNotTiano.c
index b2e01997f8daf52562b007e4de2cad70d6c0c9cb..16ae959a71b6bbe3c962f278f2ffe43ac8f615f8 100644 (file)
@@ -6,7 +6,7 @@
   (EDK/EFI 1.10) and new (EDK II/UEFI 2.0) way. This module is a DXE driver as\r
   it contains DXE enum extensions for EFI event services.\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
+Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -43,16 +43,16 @@ InternalEmptyFuntion (
 }\r
 \r
 /**\r
-  Creates an EFI event in the Legacy Boot Event Group.  Prior to UEFI 2.0 this \r
-  was done via a non blessed UEFI extensions and this library abstracts the \r
-  implementation mechanism of this event from the caller.\r
-  \r
-  This function abstracts the creation of the Legacy Boot Event.  The Framework \r
-  moved from a proprietary to UEFI 2.0 based mechanism.  This library abstracts \r
-  the caller from how this event is created to prevent to code form having to \r
-  change with the version of the specification supported.\r
+  Creates an EFI event in the Legacy Boot Event Group.\r
+\r
+  Prior to UEFI 2.0 this was done via a non blessed UEFI extensions and this library\r
+  abstracts the implementation mechanism of this event from the caller. This function\r
+  abstracts the creation of the Legacy Boot Event. The Framework moved from a proprietary\r
+  to UEFI 2.0 based mechanism.  This library abstracts the caller from how this event\r
+  is created to prevent to code form having to change with the version of the\r
+  specification supported.\r
   If LegacyBootEvent is NULL, then ASSERT().\r
-  \r
+\r
   @param  LegacyBootEvent   Returns the EFI event returned from gBS->CreateEvent(Ex).\r
 \r
   @retval EFI_SUCCESS       Event was created.\r
@@ -75,8 +75,8 @@ EfiCreateEventLegacyBoot (
 \r
 /**\r
   Create an EFI event in the Legacy Boot Event Group and allows\r
-  the caller to specify a notification function.\r
-\r
+  the caller to specify a notification function.  \r
+  \r
   This function abstracts the creation of the Legacy Boot Event.\r
   The Framework moved from a proprietary to UEFI 2.0 based mechanism.\r
   This library abstracts the caller from how this event is created to prevent\r
@@ -128,17 +128,17 @@ EfiCreateEventLegacyBootEx (
 }\r
 \r
 /**\r
-  Create an EFI event in the Ready To Boot Event Group.  Prior to UEFI 2.0 this \r
-  was done via a non-standard UEFI extension, and this library abstracts the \r
-  implementation mechanism of this event from the caller.\r
-  \r
+  Create an EFI event in the Ready To Boot Event Group.\r
+\r
+  Prior to UEFI 2.0 this was done via a non-standard UEFI extension, and this library\r
+  abstracts the implementation mechanism of this event from the caller.   \r
   This function abstracts the creation of the Ready to Boot Event.  The Framework \r
   moved from a proprietary to UEFI 2.0-based mechanism.  This library abstracts \r
   the caller from how this event is created to prevent the code form having to \r
   change with the version of the specification supported.\r
   If ReadyToBootEvent is NULL, then ASSERT().\r
 \r
-  @param  ReadyToBootEvent  Returns the EFI event returned from gBS->CreateEvent(Ex).\r
+  @param  ReadyToBootEvent   Returns the EFI event returned from gBS->CreateEvent(Ex).\r
 \r
   @retval EFI_SUCCESS       Event was created.\r
   @retval Other             Event was not created.\r
@@ -160,8 +160,8 @@ EfiCreateEventReadyToBoot (
 \r
 /**\r
   Create an EFI event in the Ready To Boot Event Group and allows\r
-  the caller to specify a notification function.\r
-\r
+  the caller to specify a notification function.  \r
+  \r
   This function abstracts the creation of the Ready to Boot Event.\r
   The Framework moved from a proprietary to UEFI 2.0 based mechanism.\r
   This library abstracts the caller from how this event is created to prevent\r
@@ -214,10 +214,12 @@ EfiCreateEventReadyToBootEx (
 \r
 \r
 /**\r
-  Signal a Ready to Boot Event.\r
-\r
-  Create a Ready to Boot Event. Signal it and close it. This causes other\r
-  events of the same event group to be signaled in other modules.\r
+  Create, Signal, and Close the Ready to Boot event using EfiSignalEventReadyToBoot().\r
+  \r
+  This function abstracts the signaling of the Ready to Boot Event. The Framework moved\r
+  from a proprietary to UEFI 2.0 based mechanism. This library abstracts the caller\r
+  from how this event is created to prevent to code form having to change with the\r
+  version of the specification supported.\r
 \r
 **/\r
 VOID\r
@@ -237,10 +239,12 @@ EfiSignalEventReadyToBoot (
 }\r
 \r
 /**\r
-  Signal a Legacy Boot Event.\r
+  Create, Signal, and Close the Ready to Boot event using EfiSignalEventLegacyBoot().\r
 \r
-  Create a legacy Boot Event. Signal it and close it. This causes other\r
-  events of the same event group to be signaled in other modules.\r
+  This function abstracts the signaling of the Legacy Boot Event. The Framework moved from\r
+  a proprietary to UEFI 2.0 based mechanism.  This library abstracts the caller from how\r
+  this event is created to prevent to code form having to change with the version of the\r
+  specification supported.\r
 \r
 **/\r
 VOID\r
@@ -261,33 +265,34 @@ EfiSignalEventLegacyBoot (
 \r
 \r
 /**\r
+  Check to see if the Firmware Volume (FV) Media Device Path is valid \r
+  \r
   The Framework FwVol Device Path changed to conform to the UEFI 2.0 specification.  \r
   This library function abstracts validating a device path node.\r
-\r
   Check the MEDIA_FW_VOL_FILEPATH_DEVICE_PATH data structure to see if it's valid.  \r
-  If it is valid, then return the GUID file name from the device path node.  \r
-  Otherwise, return NULL.  This device path changed in the DXE CIS version 0.92 \r
-  in a non back ward compatible way to not conflict with the UEFI 2.0 specification.  \r
-  This function abstracts the differences from the caller.\r
+  If it is valid, then return the GUID file name from the device path node.  Otherwise, \r
+  return NULL.  This device path changed in the DXE CIS version 0.92 in a non back ward \r
+  compatible way to not conflict with the UEFI 2.0 specification.  This function abstracts \r
+  the differences from the caller.\r
   If FvDevicePathNode is NULL, then ASSERT().\r
-  \r
-  @param  FvFileDevicePathNode  Pointer to FV device path to check.\r
+\r
+  @param  FvDevicePathNode  Pointer to FV device path to check.\r
 \r
   @retval NULL              FvDevicePathNode is not valid.\r
   @retval Other             FvDevicePathNode is valid and pointer to NameGuid was returned.\r
 \r
 **/\r
-EFI_GUID*\r
+EFI_GUID *\r
 EFIAPI\r
 EfiGetNameGuidFromFwVolDevicePathNode (\r
-  IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvFileDevicePathNode\r
+  IN CONST MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvDevicePathNode\r
   )\r
 {\r
-  ASSERT (FvFileDevicePathNode != NULL);\r
+  ASSERT (FvDevicePathNode != NULL);\r
 \r
-  if (DevicePathType (&FvFileDevicePathNode->Header) == MEDIA_DEVICE_PATH &&\r
-      DevicePathSubType (&FvFileDevicePathNode->Header) == MEDIA_PIWG_FW_FILE_DP) {\r
-    return (EFI_GUID *) &FvFileDevicePathNode->FvFileName;\r
+  if (DevicePathType (&FvDevicePathNode->Header) == MEDIA_DEVICE_PATH &&\r
+      DevicePathSubType (&FvDevicePathNode->Header) == MEDIA_PIWG_FW_FILE_DP) {\r
+    return (EFI_GUID *) &FvDevicePathNode->FvFileName;\r
   }\r
 \r
   return NULL;\r
@@ -295,37 +300,38 @@ EfiGetNameGuidFromFwVolDevicePathNode (
 \r
 \r
 /**\r
+  Initialize a Firmware Volume (FV) Media Device Path node.\r
+  \r
   The Framework FwVol Device Path changed to conform to the UEFI 2.0 specification.  \r
-  This library function abstracts initializing a device path node.\r
-\r
+  This library function abstracts initializing a device path node.  \r
   Initialize the MEDIA_FW_VOL_FILEPATH_DEVICE_PATH data structure.  This device \r
   path changed in the DXE CIS version 0.92 in a non back ward compatible way to \r
   not conflict with the UEFI 2.0 specification.  This function abstracts the \r
   differences from the caller.\r
   If FvDevicePathNode is NULL, then ASSERT().\r
   If NameGuid is NULL, then ASSERT().\r
-\r
-  @param  FvFileDevicePathNode  Pointer to a FV device path node to initialize\r
+  \r
+  @param  FvDevicePathNode  Pointer to a FV device path node to initialize\r
   @param  NameGuid          FV file name to use in FvDevicePathNode\r
 \r
 **/\r
 VOID\r
 EFIAPI\r
 EfiInitializeFwVolDevicepathNode (\r
-  IN OUT    MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FvFileDevicePathNode,\r
-  IN CONST  EFI_GUID                          *NameGuid\r
+  IN OUT MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvDevicePathNode,\r
+  IN CONST EFI_GUID                         *NameGuid\r
   )\r
 {\r
-  ASSERT (FvFileDevicePathNode  != NULL);\r
+  ASSERT (FvDevicePathNode != NULL);\r
   ASSERT (NameGuid          != NULL);\r
 \r
   //\r
   // Use the new Device path that does not conflict with the UEFI\r
   //\r
-  FvFileDevicePathNode->Header.Type     = MEDIA_DEVICE_PATH;\r
-  FvFileDevicePathNode->Header.SubType  = MEDIA_PIWG_FW_FILE_DP;\r
-  SetDevicePathNodeLength (&FvFileDevicePathNode->Header, sizeof (MEDIA_FW_VOL_FILEPATH_DEVICE_PATH));\r
+  FvDevicePathNode->Header.Type     = MEDIA_DEVICE_PATH;\r
+  FvDevicePathNode->Header.SubType  = MEDIA_PIWG_FW_FILE_DP;\r
+  SetDevicePathNodeLength (&FvDevicePathNode->Header, sizeof (MEDIA_FW_VOL_FILEPATH_DEVICE_PATH));\r
 \r
-  CopyGuid (&FvFileDevicePathNode->FvFileName, NameGuid);\r
+  CopyGuid (&FvDevicePathNode->FvFileName, NameGuid);\r
 }\r
 \r