/*++\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
BmLib.c\r
- \r
+\r
AgBStract:\r
\r
Boot Maintainence Helper functions\r
\r
Routine Description:\r
\r
- Find the first instance of this Protocol \r
+ Find the first instance of this Protocol\r
in the system and return it's interface\r
\r
Arguments:\r
\r
ProtocolGuid - Provides the protocol to search for\r
- Interface - On return, a pointer to the first interface \r
+ Interface - On return, a pointer to the first interface\r
that matches ProtocolGuid\r
\r
Returns:\r
DeviceHandle - A handle for a device\r
\r
Returns:\r
- \r
+\r
A valid file handle or NULL is returned\r
\r
--*/\r
Routine Description:\r
\r
Helper function called as part of the code needed\r
- to allocate the proper sized buffer for various \r
+ to allocate the proper sized buffer for various\r
EFI interfaces.\r
\r
Arguments:\r
Buffer - Current allocated buffer, or NULL\r
\r
BufferSize - Current buffer size needed\r
- \r
+\r
Returns:\r
- \r
- TRUE - if the buffer was reallocated and the caller \r
+\r
+ TRUE - if the buffer was reallocated and the caller\r
should try the API again.\r
\r
--*/\r
Function returns the value of the specified variable.\r
\r
Arguments:\r
- Name - A Null-terminated Unicode string that is \r
+ Name - A Null-terminated Unicode string that is\r
the name of the vendor's variable.\r
\r
VendorGuid - A unique identifier for the vendor.\r
Function deletes the variable specified by VarName and VarGuid.\r
\r
Arguments:\r
- VarName - A Null-terminated Unicode string that is \r
+ VarName - A Null-terminated Unicode string that is\r
the name of the vendor's variable.\r
\r
VendorGuid - A unique identifier for the vendor.\r
\r
Routine Description:\r
\r
- Function gets the file system information from an open file descriptor, \r
+ Function gets the file system information from an open file descriptor,\r
and stores it in a buffer allocated from pool.\r
\r
Arguments:\r
Fhand - A file handle\r
\r
Returns:\r
- \r
+\r
A pointer to a buffer with file information or NULL is returned\r
\r
--*/\r
\r
Routine Description:\r
\r
- Function gets the file information from an open file descriptor, and stores it \r
+ Function gets the file information from an open file descriptor, and stores it\r
in a buffer allocated from pool.\r
\r
Arguments:\r
Fhand - A file handle\r
\r
Returns:\r
- \r
+\r
A pointer to a buffer with file information or NULL is returned\r
\r
--*/\r
/*++\r
\r
Routine Description:\r
- Function is used to determine the number of device path instances \r
+ Function is used to determine the number of device path instances\r
that exist in a device path.\r
\r
Arguments:\r
\r
Returns:\r
\r
- This function counts and returns the number of device path instances \r
+ This function counts and returns the number of device path instances\r
in DevicePath.\r
\r
--*/\r
/*++\r
\r
Routine Description:\r
- \r
+\r
Acquire the string associated with the ProducerGuid and return it.\r
\r
Arguments:\r
- \r
+\r
ProducerGuid - The Guid to search the HII database for\r
Token - The token value of the string to extract\r
String - The string that is extracted\r
- \r
+\r
Returns:\r
\r
EFI_SUCCESS - Buffer filled with the requested forms. BufferLength\r
//\r
HandleBufferLength = 0;\r
HiiHandleBuffer = NULL;\r
- \r
+\r
Status = gBS->LocateProtocol (\r
&gEfiHiiProtocolGuid,\r
NULL,\r
//\r
Status = BdsLibGetHiiHandles (Hii, &HandleBufferLength, &HiiHandleBuffer);\r
ASSERT_EFI_ERROR (Status);\r
- \r
+\r
//\r
// Get the Hii Handle that matches the StructureNode->ProducerName\r
//\r
*String\r
);\r
\r
- gBS->FreePool (HiiHandleBuffer);\r
+ FreePool (HiiHandleBuffer);\r
\r
return Status;\r
}\r
Returns:\r
TRUE The FirstTime is not later than the SecondTime.\r
FALSE The FirstTime is later than the SecondTime.\r
- \r
+\r
--*/\r
{\r
if (FirstTime->Year != SecondTime->Year) {\r