/*++\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
--*/\r
\r
-\r
-#ifdef TIANO_EXTENSION_FLAG\r
-EFI_GUID UnknownDeviceGuid = UNKNOWN_DEVICE_GUID;\r
-#endif \r
-\r
EFI_GUID mEfiWinNtThunkProtocolGuid = EFI_WIN_NT_THUNK_PROTOCOL_GUID;\r
EFI_GUID mEfiWinNtUgaGuid = EFI_WIN_NT_UGA_GUID;\r
EFI_GUID mEfiWinNtGopGuid = EFI_WIN_NT_GOP_GUID;\r
CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);\r
}\r
\r
- gBS->FreePool (OldPool);\r
+ FreePool (OldPool);\r
}\r
\r
return NewPool;\r
\r
Routine Description:\r
\r
- Concatenates a formatted unicode string to allocated pool. \r
+ Concatenates a formatted unicode string to allocated pool.\r
The caller must free the resulting buffer.\r
\r
Arguments:\r
\r
- Str - Tracks the allocated pool, size in use, and \r
+ Str - Tracks the allocated pool, size in use, and\r
amount of pool allocated.\r
\r
fmt - The format string\r
\r
Returns:\r
\r
- Allocated buffer with the formatted string printed in it. \r
+ Allocated buffer with the formatted string printed in it.\r
The caller must free the allocated buffer. The buffer\r
allocation is not packed.\r
\r
Str->len = strsize - sizeof (UINT16);\r
}\r
\r
- gBS->FreePool (AppendStr);\r
+ FreePool (AppendStr);\r
return Str->str;\r
}\r
\r
\r
Returns:\r
\r
- If the memory for the device path is successfully allocated, then a \r
+ If the memory for the device path is successfully allocated, then a\r
pointer to the new device path is returned. Otherwise, NULL is returned.\r
\r
--*/\r
if (Index > Anchor) {\r
CIDSTRIdx = Anchor;\r
}\r
- \r
+\r
if (HIDSTRIdx == 0 && CIDSTRIdx == 0 && ExtendedAcpi->UID == 0) {\r
CatPrint (Str, L"AcpiExp(");\r
if ((ExtendedAcpi->HID & PNP_EISA_ID_MASK) == PNP_EISA_ID_CONST) {\r
MEDIA_DEVICE_PATH,\r
MEDIA_PROTOCOL_DP,\r
DevPathMediaProtocol,\r
-\r
-#if (EFI_SPECIFICATION_VERSION < 0x00020000)\r
- MEDIA_DEVICE_PATH,\r
- MEDIA_FV_FILEPATH_DP,\r
- DevPathFvFilePath,\r
-#endif\r
-\r
BBS_DEVICE_PATH,\r
BBS_BBS_DP,\r
DevPathBssBss,\r
//\r
// Shrink pool used for string allocation\r
//\r
- gBS->FreePool (DevPath);\r
+ FreePool (DevPath);\r
\r
Done:\r
NewSize = (Str.len + 1) * sizeof (CHAR16);\r
\r
Routine Description:\r
\r
- Function creates a device path data structure that identically matches the \r
+ Function creates a device path data structure that identically matches the\r
device path passed in.\r
\r
Arguments:\r
\r
Returns:\r
\r
- The new copy of DevPath is created to identically match the input. \r
+ The new copy of DevPath is created to identically match the input.\r
Otherwise, NULL is returned.\r
\r
--*/\r