/*++\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
\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
WinNtUgaDriverBindingSupported,\r
WinNtUgaDriverBindingStart,\r
WinNtUgaDriverBindingStop,\r
- 0x10,\r
+ 0xa,\r
NULL,\r
NULL\r
};\r
//\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
FreeUnicodeStringTable (Private->ControllerNameTable);\r
}\r
\r
- gBS->FreePool (Private);\r
+ FreePool (Private);\r
}\r
}\r
\r
//\r
FreeUnicodeStringTable (Private->ControllerNameTable);\r
\r
- gBS->FreePool (Private);\r
+ FreePool (Private);\r
\r
}\r
\r
\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