]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConnect.c
1. Perfect libraries MSA files
[mirror_edk2.git] / EdkNt32Pkg / Library / EdkGenericBdsLib / BdsConnect.c
index 9c649f1f82e410052fbdfbfee24d635e6f7f056d..772b339f9b1dacfc3de7ccc3d3f0621bbd4d67ec 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 - 2007, 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
@@ -26,12 +26,12 @@ BdsLibConnectAll (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This function will connect all the system driver to controller\r
   first, and then special connect the default console, this make\r
   sure all the system controller avialbe and the platform default\r
   console connected.\r
-  \r
+\r
 Arguments:\r
 \r
   None\r
@@ -66,12 +66,12 @@ BdsLibGenericConnectAll (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This function will connect all the system drivers to all controllers\r
-  first, and then connect all the console devices the system current \r
+  first, and then connect all the console devices the system current\r
   have. After this we should get all the device work and console avariable\r
   if the system have console device.\r
-  \r
+\r
 Arguments:\r
 \r
   None\r
@@ -100,7 +100,7 @@ Routine Description:
   path node. If the handle associate with one device path node can not\r
   be created success, then still give one chance to do the dispatch,\r
   which load the missing drivers if possible.\r
-  \r
+\r
 Arguments:\r
 \r
   DevicePathToConnect  - The device path which will be connected, it can\r
@@ -108,12 +108,12 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS          - All handles associate with every device path \r
+  EFI_SUCCESS          - All handles associate with every device path\r
                          node have been created\r
-  \r
+\r
   EFI_OUT_OF_RESOURCES - There is no resource to create new handles\r
-  \r
-  EFI_NOT_FOUND        - Create the handle associate with one device \r
+\r
+  EFI_NOT_FOUND        - Create the handle associate with one device\r
                          path node failed\r
 \r
 --*/\r
@@ -206,7 +206,7 @@ Returns:
   } while (DevicePath != NULL);\r
 \r
   if (CopyOfDevicePath != NULL) {\r
-    gBS->FreePool (CopyOfDevicePath);\r
+    FreePool (CopyOfDevicePath);\r
   }\r
   //\r
   // All handle with DevicePath exists in the handle database\r
@@ -224,7 +224,7 @@ Routine Description:
 \r
   This function will connect all current system handles recursively. The\r
   connection will finish until every handle's child handle created if it have.\r
-  \r
+\r
 Arguments:\r
 \r
   None\r
@@ -232,8 +232,8 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCCESS          - All handles and it's child handle have been connected\r
-  \r
-  EFI_STATUS           - Return the status of gBS->LocateHandleBuffer(). \r
+\r
+  EFI_STATUS           - Return the status of gBS->LocateHandleBuffer().\r
 \r
 --*/\r
 {\r
@@ -257,7 +257,7 @@ Returns:
     Status = gBS->ConnectController (HandleBuffer[Index], NULL, NULL, TRUE);\r
   }\r
 \r
-  gBS->FreePool (HandleBuffer);\r
+  FreePool (HandleBuffer);\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -272,7 +272,7 @@ Routine Description:
 \r
   This function will disconnect all current system handles. The disconnection\r
   will finish until every handle have been disconnected.\r
-  \r
+\r
 Arguments:\r
 \r
   None\r
@@ -280,8 +280,8 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCCESS          - All handles have been disconnected\r
-  \r
-  EFI_STATUS           - Return the status of gBS->LocateHandleBuffer(). \r
+\r
+  EFI_STATUS           - Return the status of gBS->LocateHandleBuffer().\r
 \r
 --*/\r
 {\r
@@ -308,7 +308,7 @@ Returns:
     Status = gBS->DisconnectController (HandleBuffer[Index], NULL, NULL);\r
   }\r
 \r
-  gBS->FreePool (HandleBuffer);\r
+  FreePool (HandleBuffer);\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -321,19 +321,19 @@ BdsLibConnectAllDriversToAllControllers (
 \r
 Routine Description:\r
 \r
-  Connects all drivers to all controllers. \r
+  Connects all drivers to all controllers.\r
   This function make sure all the current system driver will manage\r
   the correspoinding controllers if have. And at the same time, make\r
-  sure all the system controllers have driver to manage it if have. \r
-  \r
+  sure all the system controllers have driver to manage it if have.\r
+\r
 Arguments:\r
-  \r
+\r
   None\r
-  \r
+\r
 Returns:\r
-  \r
+\r
   None\r
-  \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r