]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Library.h
Add doxygen style comments for functions in DxeMain.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Library.h
index 7c15c938e2dc65bd3b70a3c54faadd24f3db74ea..067f0dab5e63cb905675416470726fb4df6e4f69 100644 (file)
@@ -11,356 +11,286 @@ http://opensource.org/licenses/bsd-license.php
 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
---*/\r
+\r
+**/\r
 \r
 #ifndef _DXE_LIBRARY_H_\r
 #define _DXE_LIBRARY_H_\r
 \r
 \r
+\r
+/**\r
+  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiCallerIdGuid.\r
+\r
+  @param  Value              Describes the class/subclass/operation of the \r
+                             hardware or software entity that the Status Code \r
+                             relates to.\r
+\r
+**/\r
 VOID\r
 CoreReportProgressCode (\r
   IN  EFI_STATUS_CODE_VALUE   Value\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiCallerIdGuid.\r
-    \r
-Arguments:\r
+;\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
+/**\r
+  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiCallerIdGuid,\r
+  with a handle as additional information.\r
 \r
---*/\r
-;\r
+  @param  Value              Describes the class/subclass/operation of the \r
+                             hardware or software entity that the Status Code \r
+                             relates to. \r
+  @param  Handle             Additional information.\r
 \r
+**/\r
 VOID\r
 CoreReportProgressCodeSpecific (\r
   IN  EFI_STATUS_CODE_VALUE   Value,\r
   IN  EFI_HANDLE              Handle\r
   )\r
-/*++\r
-\r
-Routine Description:\r
+;\r
 \r
-  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiCallerIdGuid, \r
-  with a handle as additional information.\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
-  Handle   - Additional information.\r
-   \r
-Returns:\r
+/**\r
+  Raising to the task priority level of the mutual exclusion\r
+  lock, and then acquires ownership of the lock.\r
 \r
-  None\r
+  @param  Lock               The lock to acquire \r
 \r
---*/\r
-;\r
+  @return Lock owned\r
 \r
+**/\r
 VOID\r
 CoreAcquireLock (\r
   IN EFI_LOCK *Lock\r
   )\r
-/*++\r
-\r
-Routine Description:\r
+;\r
 \r
-  Raising to the task priority level of the mutual exclusion\r
-  lock, and then acquires ownership of the lock.\r
-    \r
-Arguments:\r
 \r
-  Lock - The lock to acquire\r
-    \r
-Returns:\r
+/**\r
+  Initialize a basic mutual exclusion lock.   Each lock\r
+  provides mutual exclusion access at it's task priority\r
+  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
-  Lock owned\r
+  @param  Lock               The EFI_LOCK structure to initialize \r
 \r
---*/\r
-;\r
+  @retval EFI_SUCCESS        Lock Owned. \r
+  @retval EFI_ACCESS_DENIED  Reentrant Lock Acquisition, Lock not Owned.\r
 \r
+**/\r
 EFI_STATUS\r
 CoreAcquireLockOrFail (\r
   IN EFI_LOCK  *Lock\r
   )\r
-/*++\r
-\r
-Routine Description:\r
+;\r
 \r
-  Initialize a basic mutual exclusion lock.   Each lock\r
-  provides mutual exclusion access at it's task priority\r
-  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
-Arguments:\r
 \r
-  Lock        - The EFI_LOCK structure to initialize\r
-   \r
-Returns:\r
+/**\r
+  Releases ownership of the mutual exclusion lock, and\r
+  restores the previous task priority level.\r
 \r
-  EFI_SUCCESS       - Lock Owned.\r
-  EFI_ACCESS_DENIED - Reentrant Lock Acquisition, Lock not Owned.\r
+  @param  Lock               The lock to release \r
 \r
---*/\r
-;\r
+  @return Lock unowned\r
 \r
+**/\r
 VOID\r
 CoreReleaseLock (\r
   IN EFI_LOCK *Lock\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-    Releases ownership of the mutual exclusion lock, and\r
-    restores the previous task priority level.\r
-    \r
-Arguments:\r
-\r
-    Lock - The lock to release\r
-    \r
-Returns:\r
-\r
-    Lock unowned\r
-\r
---*/\r
 ;\r
 \r
 //\r
 // Device Path functions\r
 //\r
 \r
+\r
+/**\r
+  Calculate the size of a whole device path.\r
+\r
+  @param  DevicePath         The pointer to the device path data. \r
+\r
+  @return Size of device path data structure..\r
+\r
+**/\r
 UINTN\r
 CoreDevicePathSize (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath\r
   )\r
-/*++\r
-\r
-Routine Description:\r
+;\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
-Returns:\r
+/**\r
+  Return TRUE is this is a multi instance device path.\r
 \r
-  Size of device path data structure..\r
+  @param  DevicePath         A pointer to a device path data structure. \r
 \r
---*/\r
-;\r
+  @retval TRUE               If DevicePath is multi instance. FALSE - If \r
+                             DevicePath is not multi instance.\r
 \r
+**/\r
 BOOLEAN\r
 CoreIsDevicePathMultiInstance (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-  Return TRUE is this is a multi instance device path.\r
+;\r
 \r
-Arguments:\r
-  DevicePath  - A pointer to a device path data structure.\r
 \r
 \r
-Returns:\r
-  TRUE - If DevicePath is multi instance. FALSE - If DevicePath is not multi\r
-  instance.\r
+/**\r
+  Duplicate a new device path data structure from the old one.\r
 \r
---*/\r
-;\r
+  @param  DevicePath         A pointer to a device path data structure. \r
 \r
+  @return A pointer to the new allocated device path data.\r
+  @return Caller must free the memory used by DevicePath if it is no longer needed.\r
 \r
+**/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 CoreDuplicateDevicePath (\r
   IN EFI_DEVICE_PATH_PROTOCOL   *DevicePath\r
   )\r
-/*++\r
+;\r
 \r
-Routine Description:\r
-  Duplicate a new device path data structure from the old one.\r
 \r
-Arguments:\r
-  DevicePath  - A pointer to a device path data structure.\r
+/**\r
+  Function is used to append a Src1 and Src2 together.\r
 \r
-Returns:\r
-  A pointer to the new allocated device path data.\r
-  Caller must free the memory used by DevicePath if it is no longer needed.\r
+  @param  Src1               A pointer to a device path data structure. \r
+  @param  Src2               A pointer to a device path data structure. \r
 \r
---*/\r
-;\r
+  @return A pointer to the new device path is returned.\r
+  @return NULL is returned if space for the new device path could not be allocated from pool.\r
+  @return It is up to the caller to free the memory used by Src1 and Src2 if they are no longer needed.\r
 \r
+**/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 CoreAppendDevicePath (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *Src1,\r
-  IN EFI_DEVICE_PATH_PROTOCOL  *Node\r
+  IN EFI_DEVICE_PATH_PROTOCOL  *Src2\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-  Function is used to append a Src1 and Src2 together.\r
-\r
-Arguments:\r
-  Src1  - A pointer to a device path data structure.\r
+;\r
 \r
-  Node  - A pointer to a device path data structure.\r
 \r
-Returns:\r
+/**\r
+  Allocate pool of type EfiBootServicesData, the size is specified with AllocationSize.\r
 \r
-  A pointer to the new device path is returned.\r
-  NULL is returned if space for the new device path could not be allocated from pool.\r
-  It is up to the caller to free the memory used by Src1 and Src2 if they are no longer needed.\r
+  @param  AllocationSize     Size to allocate. \r
 \r
---*/\r
-;\r
+  @return Pointer of the allocated pool.\r
 \r
+**/\r
 VOID *\r
 CoreAllocateBootServicesPool (\r
   IN  UINTN   AllocationSize\r
   )\r
-/*++\r
+;\r
 \r
-Routine Description:\r
 \r
-  Allocate pool of type EfiBootServicesData, the size is specified with AllocationSize.\r
-    \r
-Arguments:\r
-\r
-  AllocationSize    - Size to allocate.\r
-   \r
-Returns:\r
+/**\r
+  Allocate pool of type EfiBootServicesData and zero it, the size is specified with AllocationSize.\r
 \r
-  Pointer of the allocated pool.\r
+  @param  AllocationSize     Size to allocate. \r
 \r
---*/\r
-;\r
+  @return Pointer of the allocated pool.\r
 \r
+**/\r
 VOID *\r
 CoreAllocateZeroBootServicesPool (\r
   IN  UINTN   AllocationSize\r
   )\r
-/*++\r
+;\r
 \r
-Routine Description:\r
 \r
-  Allocate pool of type EfiBootServicesData and zero it, the size is specified with AllocationSize.\r
-    \r
-Arguments:\r
+/**\r
+  Find a config table by name in system table's ConfigurationTable.\r
 \r
-  AllocationSize    - Size to allocate.\r
-   \r
-Returns:\r
+  @param  Guid           The table name to look for \r
+  @param  Table          Pointer of the config table \r
 \r
-  Pointer of the allocated pool.\r
-\r
---*/\r
-;\r
+  @retval EFI_NOT_FOUND  Could not find the table in system table's \r
+                         ConfigurationTable. \r
+  @retval EFI_SUCCESS    Table successfully found.\r
 \r
+**/\r
 EFI_STATUS\r
 CoreGetConfigTable (\r
   IN EFI_GUID *Guid,\r
   IN OUT VOID **Table\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Find a config table by name in system table's ConfigurationTable.\r
-\r
-Arguments:\r
+;\r
 \r
-  Guid        - The table name to look for\r
-  \r
-  Table       - Pointer of the config table\r
 \r
-Returns: \r
+/**\r
+  Allocate pool of specified size with EfiRuntimeServicesData type, and copy specified buffer to this pool.\r
 \r
-  EFI_NOT_FOUND       - Could not find the table in system table's ConfigurationTable.\r
-  \r
-  EFI_SUCCESS         - Table successfully found.\r
+  @param  AllocationSize     Size to allocate. \r
+  @param  Buffer             Specified buffer that will be copy to the allocated \r
+                             pool \r
 \r
---*/\r
-;\r
+  @return Pointer of the allocated pool.\r
 \r
+**/\r
 VOID *\r
 CoreAllocateRuntimeCopyPool (\r
   IN  UINTN   AllocationSize,\r
   IN  VOID    *Buffer\r
   )\r
-/*++\r
-\r
-Routine Description:\r
+;\r
 \r
-  Allocate pool of specified size with EfiRuntimeServicesData type, and copy specified buffer to this pool.\r
-    \r
-Arguments:\r
 \r
-  AllocationSize    - Size to allocate.\r
-  \r
-  Buffer            - Specified buffer that will be copy to the allocated pool\r
-   \r
-Returns:\r
+/**\r
+  Allocate pool of type EfiRuntimeServicesData, the size is specified with AllocationSize.\r
 \r
-  Pointer of the allocated pool.\r
+  @param  AllocationSize     Size to allocate. \r
 \r
---*/\r
-;\r
+  @return Pointer of the allocated pool.\r
 \r
+**/\r
 VOID *\r
 CoreAllocateRuntimePool (\r
   IN  UINTN   AllocationSize\r
   )\r
-/*++\r
-\r
-Routine Description:\r
+;\r
 \r
-  Allocate pool of type EfiRuntimeServicesData, the size is specified with AllocationSize.\r
-    \r
-Arguments:\r
 \r
-  AllocationSize    - Size to allocate.\r
-   \r
-Returns:\r
+/**\r
+  Allocate pool of specified size with EfiBootServicesData type, and copy specified buffer to this pool.\r
 \r
-  Pointer of the allocated pool.\r
+  @param  AllocationSize     Size to allocate. \r
+  @param  Buffer             Specified buffer that will be copy to the allocated \r
+                             pool \r
 \r
---*/\r
-;\r
+  @return Pointer of the allocated pool.\r
 \r
+**/\r
 VOID *\r
 CoreAllocateCopyPool (\r
   IN  UINTN   AllocationSize,\r
   IN  VOID    *Buffer\r
   )\r
-/*++\r
+;\r
 \r
-Routine Description:\r
 \r
-  Allocate pool of specified size with EfiBootServicesData type, and copy specified buffer to this pool.\r
-    \r
-Arguments:\r
-\r
-  AllocationSize    - Size to allocate.\r
-  \r
-  Buffer            - Specified buffer that will be copy to the allocated pool\r
-   \r
-Returns:\r
+/**\r
+  Create a protocol notification event and return it.\r
 \r
-  Pointer of the allocated pool.\r
+  @param  ProtocolGuid       Protocol to register notification event on. \r
+  @param  NotifyTpl          Maximum TPL to signal the NotifyFunction. \r
+  @param  NotifyFunction     EFI notification routine. \r
+  @param  NotifyContext      Context passed into Event when it is created. \r
+  @param  Registration       Registration key returned from \r
+                             RegisterProtocolNotify(). \r
+  @param  SignalFlag         Boolean value to decide whether kick the event after \r
+                             register or not. \r
 \r
---*/\r
-;\r
+  @return The EFI_EVENT that has been registered to be signaled when a ProtocolGuid\r
+          is added to the system.\r
 \r
+**/\r
 EFI_EVENT\r
 CoreCreateProtocolNotifyEvent (\r
   IN EFI_GUID             *ProtocolGuid,\r
@@ -370,32 +300,6 @@ CoreCreateProtocolNotifyEvent (
   OUT VOID                **Registration,\r
   IN  BOOLEAN             SignalFlag\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Create a protocol notification event and return it.\r
-\r
-Arguments:\r
-\r
-  ProtocolGuid    - Protocol to register notification event on.\r
-\r
-  NotifyTpl       - Maximum TPL to signal the NotifyFunction.\r
-\r
-  NotifyFuncition - EFI notification routine.\r
-\r
-  NotifyContext   - Context passed into Event when it is created.\r
-\r
-  Registration    - Registration key returned from RegisterProtocolNotify().\r
-\r
-  SignalFlag      -  Boolean value to decide whether kick the event after register or not. \r
-\r
-Returns:\r
-\r
-  The EFI_EVENT that has been registered to be signaled when a ProtocolGuid\r
-  is added to the system.\r
-\r
---*/\r
 ;\r
 \r
 #endif\r