]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDriverModelLib/UefiDriverModelLib.c
Set the comment for JAVA_HOME to point to the minimum release version of SUN JDK...
[mirror_edk2.git] / MdePkg / Library / UefiDriverModelLib / UefiDriverModelLib.c
index 9b96f28fb1ccf019200856ba42494f7c2a71fd32..5795e5ae50d459d2ba85c068c98617d9b6f3a386 100644 (file)
@@ -2,23 +2,31 @@
   EFI Driver Model Library.\r
 \r
   Copyright (c) 2006, 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
-  http://opensource.org/licenses/bsd-license.php                                            \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
+  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:  EfiDriverModelLib.c\r
+  Module Name:  UefiDriverModelLib.c\r
 \r
 **/\r
 \r
 \r
 \r
 /**\r
+  The constructor function installs the standard EFI Driver Model Protocols.\r
+\r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
+  @param[in] SystemTable A pointer to the EFI System Table.\r
+\r
+  @retval EFI_SUCCESS The constructor always return EFI_SUCCESS.\r
+\r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiDriverModelLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -52,7 +60,7 @@ UefiDriverModelLibConstructor (
 \r
     //\r
     // Check for all 8 possible combinations of the ComponentName, DriverConfiguration, and DriverDiagnostics Protocol\r
-    // These are all checks against const pointers, so the optimizing compiler will only select one of the \r
+    // These are all checks against const pointers, so the optimizing compiler will only select one of the\r
     // calls to InstallMultipleProtocolInterfaces()\r
     //\r
     if (_gDriverModelProtocolList[0].DriverDiagnostics == NULL) {\r
@@ -221,8 +229,16 @@ UefiDriverModelLibConstructor (
 }\r
 \r
 /**\r
+  The destructor function uninstalls the standard EFI Driver Model Protocols.\r
+\r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
+  @param[in] SystemTable A pointer to the EFI System Table.\r
+\r
+  @retval EFI_SUCCESS The destructor always return EFI_SUCCESS.\r
+\r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiDriverModelLibDestructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -255,7 +271,7 @@ UefiDriverModelLibDestructor (
 \r
     //\r
     // Check for all 8 possible combinations of the ComponentName, DriverConfiguration, and DriverDiagnostics Protocol\r
-    // These are all checks against const pointers, so the optimizing compiler will only select one of the \r
+    // These are all checks against const pointers, so the optimizing compiler will only select one of the\r
     // calls to InstallMultipleProtocolInterfaces()\r
     //\r
     if (_gDriverModelProtocolList[0].DriverDiagnostics == NULL) {\r