]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Dxe/Library/Library.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkModulePkg / Core / Dxe / Library / Library.c
index 74d873e3f864ca6bb2c7a3ffd41b8f4095b607c7..3d8a312cc22ffcec6538395e53e704b9ba697d79 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006, Intel Corporation\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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 Module Name:\r
 \r
@@ -41,16 +41,16 @@ CoreReportProgressCodeSpecific (
 \r
 Routine Description:\r
 \r
-  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiDxeServicesTableGuid, \r
+  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiDxeServicesTableGuid,\r
   with a handle as additional information.\r
-    \r
+\r
 Arguments:\r
 \r
-  Value    - Describes the class/subclass/operation of the hardware or software entity \r
-             that the Status Code relates to. \r
-             \r
+  Value    - Describes the class/subclass/operation of the hardware or software entity\r
+             that the Status Code relates to.\r
+\r
   Handle   - Additional information.\r
-   \r
+\r
 Returns:\r
 \r
   None\r
@@ -80,12 +80,12 @@ CoreReportProgressCode (
 Routine Description:\r
 \r
   Report status code of type EFI_PROGRESS_CODE by caller ID gEfiDxeServicesTableGuid.\r
-    \r
+\r
 Arguments:\r
 \r
-  Value    - Describes the class/subclass/operation of the hardware or software entity \r
-             that the Status Code relates to. \r
-   \r
+  Value    - Describes the class/subclass/operation of the hardware or software entity\r
+             that the Status Code relates to.\r
+\r
 Returns:\r
 \r
   None\r
@@ -113,11 +113,11 @@ CoreAllocateBootServicesPool (
 Routine Description:\r
 \r
   Allocate pool of type EfiBootServicesData, the size is specified with AllocationSize.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -140,11 +140,11 @@ CoreAllocateZeroBootServicesPool (
 Routine Description:\r
 \r
   Allocate pool of type EfiBootServicesData and zero it, the size is specified with AllocationSize.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -169,13 +169,13 @@ CoreAllocateCopyPool (
 Routine Description:\r
 \r
   Allocate pool of specified size with EfiBootServicesData type, and copy specified buffer to this pool.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-  \r
+\r
   Buffer            - Specified buffer that will be copy to the allocated pool\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -186,11 +186,11 @@ Returns:
 \r
   Memory = CoreAllocateBootServicesPool (AllocationSize);\r
   CopyMem (Memory, Buffer, (Memory == NULL) ? 0 : AllocationSize);\r
-  \r
+\r
   return Memory;\r
 }\r
 \r
\r
+\r
 \r
 VOID *\r
 CoreAllocateRuntimePool (\r
@@ -201,11 +201,11 @@ CoreAllocateRuntimePool (
 Routine Description:\r
 \r
   Allocate pool of type EfiRuntimeServicesData, the size is specified with AllocationSize.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -228,13 +228,13 @@ CoreAllocateRuntimeCopyPool (
 Routine Description:\r
 \r
   Allocate pool of specified size with EfiRuntimeServicesData type, and copy specified buffer to this pool.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-  \r
+\r
   Buffer            - Specified buffer that will be copy to the allocated pool\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -246,7 +246,7 @@ Returns:
 \r
   Memory = CoreAllocateRuntimePool (AllocationSize);\r
   CopyMem (Memory, Buffer, (Memory == NULL) ? 0 : AllocationSize);\r
-  \r
+\r
   return Memory;\r
 }\r
 \r
@@ -271,11 +271,11 @@ Routine Description:
   level.  Since there is no-premption (at any TPL) or\r
   multiprocessor support, acquiring the lock only consists\r
   of raising to the locks TPL.\r
-    \r
+\r
 Arguments:\r
 \r
   Lock        - The EFI_LOCK structure to initialize\r
-   \r
+\r
 Returns:\r
 \r
   EFI_SUCCESS       - Lock Owned.\r
@@ -310,11 +310,11 @@ Routine Description:
 \r
   Raising to the task priority level of the mutual exclusion\r
   lock, and then acquires ownership of the lock.\r
-    \r
+\r
 Arguments:\r
 \r
   Lock - The lock to acquire\r
-    \r
+\r
 Returns:\r
 \r
   Lock owned\r
@@ -339,11 +339,11 @@ Routine Description:
 \r
     Releases ownership of the mutual exclusion lock, and\r
     restores the previous task priority level.\r
-    \r
+\r
 Arguments:\r
 \r
     Lock - The lock to release\r
-    \r
+\r
 Returns:\r
 \r
     Lock unowned\r
@@ -356,7 +356,7 @@ Returns:
   ASSERT (Lock->Lock == EfiLockAcquired);\r
 \r
   Tpl = Lock->OwnerTpl;\r
-  \r
+\r
   Lock->Lock = EfiLockReleased;\r
 \r
   CoreRestoreTpl (Tpl);\r
@@ -371,12 +371,12 @@ CoreDevicePathSize (
 \r
 Routine Description:\r
 \r
-  Calculate the size of a whole device path.    \r
-    \r
+  Calculate the size of a whole device path.\r
+\r
 Arguments:\r
 \r
   DevicePath - The pointer to the device path data.\r
-    \r
+\r
 Returns:\r
 \r
   Size of device path data structure..\r
@@ -513,7 +513,7 @@ Returns:
   if (Src1 == NULL && Src2 == NULL) {\r
     return NULL;\r
   }\r
-  \r
+\r
   //\r
   // Allocate space for the combined device path. It only has one end node of\r
   // length EFI_DEVICE_PATH_PROTOCOL\r
@@ -564,7 +564,7 @@ Arguments:
 \r
   Registration    - Registration key returned from RegisterProtocolNotify().\r
 \r
-  SignalFlag      -  Boolean value to decide whether kick the event after register or not. \r
+  SignalFlag      -  Boolean value to decide whether kick the event after register or not.\r
 \r
 Returns:\r
 \r
@@ -581,11 +581,11 @@ Returns:
   //\r
 \r
   Status = CoreCreateEvent (\r
-            EFI_EVENT_NOTIFY_SIGNAL,\r
+            EVT_NOTIFY_SIGNAL,\r
             NotifyTpl,\r
             NotifyFunction,\r
             NotifyContext,\r
-            &Event\r
+           &Event\r
             );\r
   ASSERT_EFI_ERROR (Status);\r
 \r