]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Dxe/WinNtThunk/Bus/Uga/WinNtUgaDriver.c
1. Perfect libraries MSA files
[mirror_edk2.git] / EdkNt32Pkg / Dxe / WinNtThunk / Bus / Uga / WinNtUgaDriver.c
index 58908d9f073c6753d62f864ccc503a02b503a03b..520856007d9413c26281354be83b2ef0ce746109 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
@@ -19,9 +19,9 @@ Abstract:
 \r
   UGA is short hand for Universal Graphics Abstraction protocol.\r
 \r
-  This file is a verision of UgaIo the uses WinNtThunk system calls as an IO \r
+  This file is a verision of UgaIo the uses WinNtThunk system calls as an IO\r
   abstraction. For a PCI device WinNtIo would be replaced with\r
-  a PCI IO abstraction that abstracted a specific PCI device. \r
+  a PCI IO abstraction that abstracted a specific PCI device.\r
 \r
 --*/\r
 \r
@@ -31,7 +31,7 @@ EFI_DRIVER_BINDING_PROTOCOL gWinNtUgaDriverBinding = {
   WinNtUgaDriverBindingSupported,\r
   WinNtUgaDriverBindingStart,\r
   WinNtUgaDriverBindingStop,\r
-  0x10,\r
+  0xa,\r
   NULL,\r
   NULL\r
 };\r
@@ -137,13 +137,8 @@ Returns:
   //\r
   // Allocate Private context data for SGO inteface.\r
   //\r
-  Private = NULL;\r
-  Status = gBS->AllocatePool (\r
-                  EfiBootServicesData,\r
-                  sizeof (UGA_PRIVATE_DATA),\r
-                  &Private\r
-                  );\r
-  if (EFI_ERROR (Status)) {\r
+  Private = AllocatePool (sizeof (UGA_PRIVATE_DATA));\r
+  if (Private == NULL) {\r
     goto Done;\r
   }\r
   //\r
@@ -198,7 +193,7 @@ Done:
         FreeUnicodeStringTable (Private->ControllerNameTable);\r
       }\r
 \r
-      gBS->FreePool (Private);\r
+      FreePool (Private);\r
     }\r
   }\r
 \r
@@ -287,7 +282,7 @@ Returns:
     //\r
     FreeUnicodeStringTable (Private->ControllerNameTable);\r
 \r
-    gBS->FreePool (Private);\r
+    FreePool (Private);\r
 \r
   }\r
 \r
@@ -308,9 +303,9 @@ Arguments:
 \r
   String - Unicode string.\r
 \r
-Returns: \r
+Returns:\r
 \r
-  UINTN of the number represented by String.  \r
+  UINTN of the number represented by String.\r
 \r
 --*/\r
 {\r