/*++\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, 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
Abstract:\r
\r
- Custom Decompress Library from HOBs \r
+ Custom Decompress Library from HOBs\r
\r
--*/\r
\r
static DECOMPRESS_LIBRARY mCustomDecompress;\r
\r
EFI_STATUS\r
+EFIAPI\r
DxeCoreCustomDecompressLibConstructor (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
\r
GuidHob = GetFirstGuidHob (&gEfiCustomizedDecompressProtocolGuid);\r
ASSERT (GuidHob != NULL);\r
- CopyMem (&mCustomDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mCustomDecompress)); \r
+ CopyMem (&mCustomDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mCustomDecompress));\r
return EFI_SUCCESS;\r
}\r
\r
/*++\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
+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
+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
Abstract:\r
\r
- Tiano Decompress Library from HOBs \r
+ Tiano Decompress Library from HOBs\r
\r
--*/\r
\r
static DECOMPRESS_LIBRARY mTianoDecompress;\r
\r
EFI_STATUS\r
+EFIAPI\r
DxeCoreTianoDecompressLibConstructor (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
EFI_HOB_GUID_TYPE *GuidHob;\r
\r
GuidHob = GetFirstGuidHob (&gEfiTianoDecompressProtocolGuid);\r
- ASSERT (GuidHob != NULL); \r
- CopyMem (&mTianoDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mTianoDecompress)); \r
+ ASSERT (GuidHob != NULL);\r
+ CopyMem (&mTianoDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mTianoDecompress));\r
return EFI_SUCCESS;\r
}\r
\r
/*++\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, 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
Abstract:\r
\r
- UEFI Decompress Library from HOBs \r
+ UEFI Decompress Library from HOBs\r
\r
--*/\r
\r
static DECOMPRESS_LIBRARY mEfiDecompress;\r
\r
EFI_STATUS\r
+EFIAPI\r
DxeCoreUefiDecompressLibConstructor (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
\r
GuidHob = GetFirstGuidHob (&gEfiDecompressProtocolGuid);\r
ASSERT (GuidHob != NULL);\r
- CopyMem (&mEfiDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mEfiDecompress)); \r
+ CopyMem (&mEfiDecompress, GET_GUID_HOB_DATA (GuidHob), sizeof (mEfiDecompress));\r
return EFI_SUCCESS;\r
}\r
\r
/*++\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, 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
EFI_STATUS\r
+EFIAPI\r
FvbLibInitialize (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
Arguments:\r
None\r
\r
-Returns: \r
+Returns:\r
EFI_SUCCESS\r
\r
--*/\r
resulting attributes in output parameter\r
\r
Arguments:\r
- Instance - The FV instance whose attributes is going to be \r
+ Instance - The FV instance whose attributes is going to be\r
returned\r
Attributes - Output buffer which contains attributes\r
\r
/*++\r
\r
Routine Description:\r
- Modifies the current settings of the firmware volume according to the \r
+ Modifies the current settings of the firmware volume according to the\r
input parameter, and returns the new setting of the volume\r
\r
Arguments:\r
- Instance - The FV instance whose attributes is going to be \r
+ Instance - The FV instance whose attributes is going to be\r
modified\r
- Attributes - On input, it is a pointer to EFI_FVB_ATTRIBUTES \r
+ Attributes - On input, it is a pointer to EFI_FVB_ATTRIBUTES\r
containing the desired firmware volume settings.\r
On successful return, it contains the new settings\r
of the firmware volume\r
Arguments:\r
Instance - The FV instance whose base address is going to be\r
returned\r
- BaseAddress - Pointer to a caller allocated EFI_PHYSICAL_ADDRESS \r
+ BaseAddress - Pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
that on successful return, contains the base address\r
- of the firmware volume. \r
+ of the firmware volume.\r
\r
Returns:\r
Status code\r
BlockSize\r
\r
Returns:\r
- EFI_SUCCESS - The firmware volume was read successfully and \r
+ EFI_SUCCESS - The firmware volume was read successfully and\r
contents are in Buffer\r
\r
--*/\r
Arguments:\r
Instance - The FV instance to be erased\r
StartLba - The starting logical block index to be erased\r
- OffsetStartLba - Offset into the starting block at which to \r
+ OffsetStartLba - Offset into the starting block at which to\r
begin erasing\r
LastLba - The last logical block index to be erased\r
OffsetLastLba - Offset into the last block at which to end erasing\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
+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
+ \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
IfrCommon.c\r
--*/\r
\r
EFI_STATUS\r
+EFIAPI\r
IfrLibConstruct (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
Routine Description:\r
\r
Determine what is the current language setting\r
- \r
+\r
Arguments:\r
- \r
+\r
Lang - Pointer of system language\r
- \r
-Returns: \r
+\r
+Returns:\r
\r
Status code\r
\r
Routine Description:\r
\r
Add a string to the incoming buffer and return the token and offset data\r
- \r
+\r
Arguments:\r
- \r
+\r
StringBuffer - The incoming buffer\r
- \r
+\r
Language - Currrent language\r
- \r
+\r
String - The string to be added\r
- \r
+\r
StringToken - The index where the string placed\r
- \r
-Returns: \r
+\r
+Returns:\r
\r
EFI_OUT_OF_RESOURCES - No enough buffer to allocate\r
- \r
+\r
EFI_SUCCESS - String successfully added to the incoming buffer\r
\r
--*/\r
//\r
PackDestination[Index] = (UINT16) (PackDestination[Index] + sizeof (RELOFST));\r
}\r
- \r
+\r
//\r
// Add a new stringpointer in the new buffer since we are adding a string. Null terminate it\r
//\r
- PackDestination[Index] = (UINT16)(PackDestination[Index-1] + \r
+ PackDestination[Index] = (UINT16)(PackDestination[Index-1] +\r
StrSize((CHAR16 *)((CHAR8 *)(StringPack) + PackSource[Index-1])));\r
PackDestination[Index + 1] = (UINT16) 0;\r
\r
Destination = Destination + StrSize ((CHAR16 *) Source);\r
Source = Source + StrSize ((CHAR16 *) Source);\r
}\r
- \r
+\r
//\r
// This copies the new string to the destination buffer\r
//\r
StringPackBuffer = (EFI_HII_STRING_PACK *) ((CHAR8 *) (StringPackBuffer) + StringPack->Header.Length);\r
StringPack = (EFI_HII_STRING_PACK *) ((CHAR8 *) (StringPack) + StringPack->Header.Length);\r
}\r
- \r
+\r
//\r
// If we didn't copy the new data to a stringpack yet\r
//\r
Routine Description:\r
\r
Add op-code data to the FormBuffer\r
- \r
+\r
Arguments:\r
- \r
+\r
FormBuffer - Form buffer to be inserted to\r
- \r
+\r
OpCodeData - Op-code data to be inserted\r
- \r
-Returns: \r
+\r
+Returns:\r
\r
EFI_OUT_OF_RESOURCES - No enough buffer to allocate\r
- \r
+\r
EFI_SUCCESS - Op-code data successfully inserted\r
\r
--*/\r
Routine Description:\r
\r
Get the HII protocol interface\r
- \r
+\r
Arguments:\r
- \r
+\r
Hii - HII protocol interface\r
- \r
-Returns: \r
+\r
+Returns:\r
\r
Status code\r
\r
Routine Description:\r
\r
Extract information pertaining to the HiiHandle\r
- \r
+\r
Arguments:\r
- \r
+\r
HiiHandle - Hii handle\r
- \r
+\r
ImageLength - For input, length of DefaultImage;\r
For output, length of actually required\r
- \r
+\r
DefaultImage - Image buffer prepared by caller\r
- \r
+\r
Guid - Guid information about the form\r
- \r
-Returns: \r
+\r
+Returns:\r
\r
EFI_OUT_OF_RESOURCES - No enough buffer to allocate\r
- \r
+\r
EFI_BUFFER_TOO_SMALL - DefualtImage has no enough ImageLength\r
- \r
+\r
EFI_SUCCESS - Successfully extract data from Hii database.\r
- \r
- \r
+\r
+\r
--*/\r
{\r
EFI_STATUS Status;\r
\r
Index = RawData[Index + 1] + Index;\r
}\r
- \r
+\r
//\r
// Return an error if buffer is too small\r
//\r
Finds HII handle for given pack GUID previously registered with the HII.\r
\r
Arguments:\r
- HiiProtocol - pointer to pointer to HII protocol interface. \r
+ HiiProtocol - pointer to pointer to HII protocol interface.\r
If NULL, the interface will be found but not returned.\r
- If it points to NULL, the interface will be found and \r
+ If it points to NULL, the interface will be found and\r
written back to the pointer that is pointed to.\r
Guid - The GUID of the pack that registered with the HII.\r
\r
Validate that the data associated with the HiiHandle in NVRAM is within\r
the reasonable parameters for that FormSet. Values for strings and passwords\r
are not verified due to their not having the equivalent of valid range settings.\r
- \r
+\r
Arguments:\r
\r
HiiHandle - Handle of the HII database entry to query\r
Results - If return Status is EFI_SUCCESS, Results provides valid data\r
TRUE = NVRAM Data is within parameters\r
FALSE = NVRAM Data is NOT within parameters\r
- \r
-Returns: \r
+\r
+Returns:\r
\r
EFI_OUT_OF_RESOURCES - No enough buffer to allocate\r
- \r
+\r
EFI_SUCCESS - Data successfully validated\r
--*/\r
{\r
\r
Index = RawData[Index + 1] + Index;\r
}\r
- \r
+\r
//\r
// Allocate memory for our File Form Tags\r
//\r
/*++\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, 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
EFI_PEI_PE_COFF_LOADER_PROTOCOL *mPeiEfiPeiPeCoffLoader;\r
\r
EFI_STATUS\r
+EFIAPI\r
PeCoffLoaderConstructor (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
+ IN EFI_FFS_FILE_HEADER *FfsHeader,\r
IN EFI_PEI_SERVICES **PeiServices\r
)\r
{\r