/** @file\r
This file defines capsule vendor guid for capsule variable and hob.\r
- It also defines capsule varialbe name and capsule guid hob data structure,\r
+ It also defines capsule variable name and capsule guid hob data structure,\r
which can be used to store the capsule image start address and length.\r
They are used by EDKII implementation of capsule update across a system reset.\r
\r
/** @file\r
This file defines the memory type information guid for its variable and guid. \r
- It also defines memory type info varialbe name and data structure for varialbe and hob both,\r
- which can be used to store the information for each memory type in EFI varialbe or HOB.\r
+ It also defines memory type info variable name and data structure for variable and hob both,\r
+ which can be used to store the information for each memory type in EFI variable or HOB.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
IfrLibInitUpdateData (\r
IN OUT EFI_HII_UPDATE_DATA *UpdateData,\r
IN UINT32 BufferSize\r
\r
**/\r
VOID\r
+EFIAPI\r
IfrLibFreeUpdateData (\r
IN EFI_HII_UPDATE_DATA *UpdateData\r
)\r
);\r
\r
/**\r
- Extract formset class for given HII handle.\r
+ Extract EDKII extended formset class for a given HII handle.\r
\r
If Handle is not a valid EFI_HII_HANDLE in the default HII database, then\r
ASSERT.\r
/**\r
Configure the buffer accrording to ConfigBody strings in the format of\r
<Length:4 bytes>, <Offset: 2 bytes>, <Width:2 bytes>, <Data:n bytes>.\r
- This ConfigBody strings is generated by UEFI VfrCompiler for the default\r
+ This ConfigBody strings is generated by EDKII UEFI VfrCompiler for the default\r
values in a Form Set. The name of the ConfigBody strings is VfrMyIfrNVDataDefault0000\r
constructed following this rule: \r
"Vfr" + varstore.name + "Default" + defaultstore.attributes.\r
/**\r
This function will connect all the system driver to controller\r
first, and then special connect the default console, this make\r
- sure all the system controller avialbe and the platform default\r
+ sure all the system controller available and the platform default\r
console connected.\r
\r
**/\r
IN UINTN NumberOfPackages,\r
IN CONST EFI_GUID *GuidId,\r
...\r
- );\r
+ )\r
+;\r
\r
/**\r
This function allocates pool for an EFI_HII_PACKAGE_LIST structure\r
IN EFI_HANDLE DriverHandle, OPTIONAL\r
OUT EFI_HII_HANDLE *HiiHandle,\r
...\r
- );\r
+ )\r
+;\r
\r
/**\r
Removes a package list from the default HII database.\r
EFIAPI\r
HiiLibRemovePackages (\r
IN EFI_HII_HANDLE HiiHandle\r
- );\r
+ )\r
+;\r
\r
/**\r
This function adds the string into String Package of each language\r
IN EFI_HII_HANDLE PackageList,\r
OUT EFI_STRING_ID *StringId,\r
IN CONST EFI_STRING String\r
- );\r
+ )\r
+;\r
\r
/**\r
This function update the specified string in String Package of each language\r
IN EFI_HII_HANDLE PackageList,\r
IN EFI_STRING_ID StringId,\r
IN CONST EFI_STRING String\r
- );\r
+ )\r
+;\r
\r
/**\r
This function try to retrieve string from String package of current language.\r
IN EFI_STRING_ID StringId,\r
OUT EFI_STRING String,\r
IN OUT UINTN *StringSize\r
- );\r
+ )\r
+;\r
\r
/**\r
Get string specified by StringId form the HiiHandle. The caller\r
IN EFI_HII_HANDLE HiiHandle,\r
IN EFI_STRING_ID StringId,\r
OUT EFI_STRING *String\r
- );\r
+ )\r
+;\r
\r
/**\r
Get the string given the StringId and String package Producer's Guid. The caller\r
IN EFI_GUID *ProducerGuid,\r
IN EFI_STRING_ID StringId,\r
OUT EFI_STRING *String\r
- );\r
+ )\r
+;\r
\r
/**\r
Determines the handles that are currently active in the database.\r
HiiLibGetHiiHandles (\r
IN OUT UINTN *HandleBufferLength,\r
OUT EFI_HII_HANDLE **HiiHandleBuffer\r
- );\r
+ )\r
+;\r
\r
/**\r
Extract Hii package list GUID for given HII handle.\r
HiiLibExtractGuidFromHiiHandle (\r
IN EFI_HII_HANDLE Handle,\r
OUT EFI_GUID *Guid\r
- );\r
+ )\r
+;\r
\r
/**\r
Find HII Handle in the default HII database associated with given Device Path.\r
EFIAPI\r
HiiLibDevicePathToHiiHandle (\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- );\r
+ )\r
+;\r
\r
\r
/**\r
HiiLibGetNextLanguage (\r
IN OUT CHAR8 **LangCode,\r
OUT CHAR8 *Lang\r
- );\r
+ )\r
+;\r
\r
/**\r
This function returns the list of supported languages, in the format specified\r
EFIAPI\r
HiiLibGetSupportedLanguages (\r
IN EFI_HII_HANDLE HiiHandle\r
- );\r
+ )\r
+;\r
\r
/**\r
This function returns the list of supported 2nd languages, in the format specified\r
HiiLibGetSupportedSecondaryLanguages (\r
IN EFI_HII_HANDLE HiiHandle,\r
IN CONST CHAR8 *FirstLanguage\r
- );\r
+ )\r
+;\r
\r
\r
/**\r
EFIAPI\r
HiiLibGetSupportedLanguageNumber (\r
IN EFI_HII_HANDLE HiiHandle\r
- );\r
+ )\r
+;\r
\r
/**\r
Exports the contents of one or all package lists in the HII database into a buffer.\r
IN EFI_HII_HANDLE Handle,\r
OUT EFI_HII_PACKAGE_LIST_HEADER **PackageListHeader,\r
OUT UINTN *PackageListSize\r
- );\r
+ )\r
+;\r
\r
/**\r
\r
IN CONST EFI_GUID *PackageGuid,\r
IN OUT UINTN *HandleBufferLength,\r
OUT EFI_HII_HANDLE **Handle\r
- );\r
+ )\r
+;\r
\r
/**\r
Convert language code from RFC3066 to ISO639-2.\r
ConvertRfc3066LanguageToIso639Language (\r
IN CHAR8 *LanguageRfc3066,\r
OUT CHAR8 *LanguageIso639\r
- );\r
+ )\r
+;\r
\r
/**\r
Convert language code from ISO639-2 to RFC3066.\r
ConvertIso639LanguageToRfc3066Language (\r
IN CONST CHAR8 *LanguageIso639,\r
OUT CHAR8 *LanguageRfc3066\r
- );\r
+ )\r
+;\r
\r
/**\r
Convert language code list from RFC3066 to ISO639-2, e.g. "en-US;fr-FR" will\r
EFIAPI\r
Rfc3066ToIso639 (\r
CHAR8 *SupportedLanguages\r
- );\r
+ )\r
+;\r
\r
\r
/**\r
EFIAPI\r
GetCurrentLanguage (\r
OUT CHAR8 *Lang\r
- );\r
+ )\r
+;\r
\r
#endif\r
#ifndef _IFR_SUPPORT_LIBRARY_H_\r
#define _IFR_SUPPORT_LIBRARY_H_\r
\r
-\r
-#include <Protocol/HiiFont.h>\r
-#include <Protocol/HiiImage.h>\r
-#include <Protocol/HiiString.h>\r
-#include <Protocol/HiiDatabase.h>\r
-#include <Protocol/HiiConfigRouting.h>\r
-#include <Protocol/HiiConfigAccess.h>\r
-#include <Protocol/FormBrowser2.h>\r
-#include <Protocol/SimpleTextOut.h>\r
-\r
-#include <Guid/GlobalVariable.h>\r
-\r
-//\r
-// The architectural variable "Lang" and "LangCodes" are deprecated in UEFI\r
-// specification. While, UEFI specification also states that these deprecated\r
-// variables may be provided for backwards compatibility.\r
-\r
-#define EFI_LANGUAGE_VARIABLE L"Lang"\r
-#define EFI_LANGUAGE_CODES_VARIABLE L"LangCodes"\r
-\r
-#define UEFI_LANGUAGE_VARIABLE L"PlatformLang"\r
-#define UEFI_LANGUAGE_CODES_VARIABLE L"PlatformLangCodes"\r
-\r
-#define INVALID_VARSTORE_ID 0\r
-\r
-#define QUESTION_FLAGS (EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_OPTIONS_ONLY)\r
-#define QUESTION_FLAGS_MASK (~QUESTION_FLAGS)\r
-\r
#pragma pack(1)\r
typedef struct {\r
EFI_STRING_ID StringToken;\r
\r
**/\r
BOOLEAN\r
+EFIAPI\r
IsConfigHdrMatch (\r
IN EFI_STRING ConfigString,\r
IN EFI_GUID *StorageGuid, OPTIONAL\r
EFIAPI\r
FreeMappingDatabase (\r
IN OUT LIST_ENTRY *MappingDataBase\r
- );\r
+ )\r
+;
\r
/**\r
Read the NV environment variable(s) that contain the override mappings from Controller Device Path to\r
EFIAPI\r
InitOverridesMapping (\r
OUT LIST_ENTRY *MappingDataBase\r
- );\r
+ )\r
+;
\r
/**\r
Save the memory mapping database into NV environment variable(s).\r
EFIAPI\r
SaveOverridesMapping (\r
IN LIST_ENTRY *MappingDataBase\r
- );\r
+ )\r
+;
\r
/**\r
Retrieves the image handle of the platform override driver for a controller in the system from the memory mapping database.\r
IN OUT EFI_HANDLE *DriverImageHandle,\r
IN LIST_ENTRY *MappingDataBase,\r
IN EFI_HANDLE CallerImageHandle\r
- );\r
+ )\r
+;
\r
/**\r
Check mapping database whether already has the mapping info which\r
IN LIST_ENTRY *MappingDataBase,\r
OUT UINT32 *DriverInfoNum OPTIONAL,\r
OUT UINT32 *DriverImageNO OPTIONAL\r
- );\r
+ )\r
+;
\r
/**\r
Insert a driver image as a controller's override driver into the mapping database.\r
IN EFI_DEVICE_PATH_PROTOCOL *DriverImageDevicePath,\r
IN LIST_ENTRY *MappingDataBase,\r
IN UINT32 DriverImageNO\r
- );\r
+ )\r
+;
\r
/**\r
Delete a controller's override driver from the mapping database.\r
IN EFI_DEVICE_PATH_PROTOCOL *ControllerDevicePath,\r
IN EFI_DEVICE_PATH_PROTOCOL *DriverImageDevicePath,\r
IN LIST_ENTRY *MappingDataBase\r
- );\r
+ )\r
+;
\r
#endif\r
\r
\r
typedef enum {\r
- EfiConsoleControlScreenText, /// Text Mode\r
- EfiConsoleControlScreenGraphics, /// Graphics Mode\r
+ EfiConsoleControlScreenText, ///> Text Mode\r
+ EfiConsoleControlScreenGraphics, ///> Graphics Mode\r
EfiConsoleControlScreenMaxValue\r
} EFI_CONSOLE_CONTROL_SCREEN_MODE;\r
\r
extern EFI_GUID gEfiDiskInfoAhciInterfaceGuid;\r
\r
struct _EFI_DISK_INFO_PROTOCOL {\r
- EFI_GUID Interface; /// The format of the buffers returned by member functions.\r
+ EFI_GUID Interface; ///> The format of the buffers returned by member functions.\r
EFI_DISK_INFO_INQUIRY Inquiry;\r
EFI_DISK_INFO_IDENTIFY Identify;\r
EFI_DISK_INFO_SENSE_DATA SenseData;\r
\r
@param This Protocol instance pointer. \r
\r
- @retval EFI_SUCCESS Successful. \r
+ @retval EFI_SUCCESS Success. Then free all the generic memory test driver\r
+ allocated resource and notify to platform memory\r
+ test driver that memory test finished.\r
\r
**/\r
typedef\r
@param Length The compatible memory range's length. \r
\r
@retval EFI_SUCCESS The compatible memory range pass the memory test. \r
- @retval EFI_INVALID_PARAMETER The compatible memory range must be below 16M.\r
+ @retval EFI_INVALID_PARAMETER The compatible memory range are not below Low 16M.\r
\r
**/\r
typedef\r
/** @file\r
- This guid is used to specify the device is the hot plug device.\r
- If the device is the hot plug device, this guid as the protocol guid\r
+ This protocol guid is used to specify the device is the hot plug device.\r
+ If the device is the hot plug device, this protocol guid\r
will be installed into this device handle.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation\r
/** @file\r
\r
Load Pe32 Image protocol provides capability to load and unload EFI image into memory and execute it.\r
-\r
- This protocol supports the additional new boot devices that do not map well to file system.\r
- UEFI can boot from any device (including Network boot) that produces a LoadFile protocol.\r
+ This protocol bases on File Device Path to get EFI image.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
\r
typedef struct {\r
EFI_PHYSICAL_ADDRESS Handle;\r
- CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; /// Measured token string name \r
- CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; /// Module string name\r
- UINT64 StartTimeStamp; /// Start time point\r
- UINT64 EndTimeStamp; /// End time point\r
+ CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///> Measured token string name \r
+ CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///> Module string name\r
+ UINT64 StartTimeStamp; ///> Start time point\r
+ UINT64 EndTimeStamp; ///> End time point\r
} GAUGE_DATA_ENTRY;\r
\r
//\r
// The header must be aligned at 8 bytes\r
//\r
typedef struct {\r
- UINT32 NumberOfEntries; /// The number of all performance guage entries\r
+ UINT32 NumberOfEntries; ///> The number of all performance guage entries\r
UINT32 Reserved;\r
} GAUGE_DATA_HEADER;\r
\r
#endif\r
\r
//\r
-// Define GET_PAD_SIZE to optimize compiler\r
+// GET_PAD_SIZE to calculate miminal pad bytes to make current size satisfy the alignment requirement\r
//\r
#if ((ALIGNMENT == 0) || (ALIGNMENT == 1))\r
#define GET_PAD_SIZE(a) (0)\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/IfrSupportLib.h>\r
\r
+#define INVALID_VARSTORE_ID 0\r
+\r
+#define QUESTION_FLAGS (EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_OPTIONS_ONLY)\r
+#define QUESTION_FLAGS_MASK (~QUESTION_FLAGS)\r
\r
#endif\r
\r
IN UINT8 Flags\r
)\r
{\r
- return (BOOLEAN) (((Flags & (~QUESTION_FLAGS)) != 0) ? FALSE : TRUE);\r
+ return (BOOLEAN) (((Flags & QUESTION_FLAGS_MASK) != 0) ? FALSE : TRUE);\r
}\r
\r
/**\r
#include <Protocol/HiiDatabase.h>\r
#include <Protocol/HiiString.h>\r
\r
+#include <MdeModuleHii.h>\r
#include <Library/DebugLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
#include <Library/HiiLib.h>\r
#include <Library/ExtendedHiiLib.h>\r
\r
-#include <MdeModuleHii.h>\r
-\r
-\r
#include "NVDataStruc.h"\r
\r
//\r
#include <Protocol/SimpleTextOut.h>\r
\r
#include <Guid/HiiKeyBoardLayout.h>\r
+#include <Guid/GlobalVariable.h>\r
\r
\r
#include <Library/DebugLib.h>\r
#ifndef _ISCSI_CONFIG_H_\r
#define _ISCSI_CONFIG_H_\r
\r
+#include <Protocol/HiiConfigRouting.h>\r
#include <Library/HiiLib.h>\r
#include <Library/ExtendedHiiLib.h>\r
#include <Library/IfrSupportLib.h>\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
-\r
-Module Name: Pcd.c\r
-\r
**/\r
\r
#include "Service.h"\r
# PEI phase, DXE phase and produce the implementation of PCD protocol.\r
# PCD database structure is generated at autogen.h/autogen.c in build time.\r
#\r
-# Copyright (c) 2006 - 2007, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
#\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
PcdLib\r
\r
[Guids]\r
- gPcdDataBaseHobGuid # ALWAYS_CONSUMES Hob: GUID_EXTENSION\r
+ gPcdDataBaseHobGuid ## CONSUMES ## Hob: GUID_EXTENSION\r
\r
[Protocols]\r
- gPcdProtocolGuid # PROTOCOL ALWAYS_PRODUCES\r
+ gPcdProtocolGuid ## PRODUCES\r
\r
[FeaturePcd.common]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDxePcdDatabaseTraverseEnabled\r
space guid: token number} to local token number.\r
\r
@param Guid Token space guid for dynamic-ex PCD entry.\r
- @param ExTokenNumber EDES_TODO: Add parameter description\r
+ @param ExTokenNumber Dynamic-ex PCD token number.\r
\r
@return local token number for dynamic-ex PCD.\r
\r
if ((ExTokenNumber == ExMap[Index].ExTokenNumber) &&\r
(MatchGuidIdx == ExMap[Index].ExGuidIndex)) {\r
return ExMap[Index].LocalTokenNumber;\r
-\r
}\r
}\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
-\r
-Module Name: Service.h\r
-\r
**/\r
\r
#ifndef _PCD_DXE_SERVICE_H_\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
-//\r
-// Please make sure the PCD Service PEIM Version is consistent with\r
-// the version of PCD Database generation tool\r
-//\r
-#define PCD_SERVICE_DXE_DRIVER_VERSION 2\r
-\r
-//\r
-// PCD_DXE_DATABASE_GENTOOL_VERSION is defined in Autogen.h\r
-// and generated by PCD Database generation tool.\r
-//\r
-//#if (PCD_SERVICE_DXE_DRIVER_VERSION != PCD_DXE_SERVICE_DRIVER_AUTOGEN_VERSION)\r
-// #error "Please make sure the version of PCD Service DXE Driver and PCD DXE Database Generation Tool matches"\r
-//#endif\r
-\r
//\r
// Protocol Interface function declaration.\r
//\r
space guid: token number} to local token number.\r
\r
@param Guid Token space guid for dynamic-ex PCD entry.\r
- @param ExTokenNumber EDES_TODO: Add parameter description\r
+ @param ExTokenNumber Dynamic-ex PCD token number.\r
\r
@return local token number for dynamic-ex PCD.\r
\r
\r
[Guids]\r
gPcdPeiCallbackFnTableHobGuid ## RPIVATE ## Hob\r
- gPcdDataBaseHobGuid ## PRODUCED ## Hob\r
- gPcdDataBaseHobGuid ## CONSUMED ## Hob\r
+ gPcdDataBaseHobGuid ## PRODUCES ## Hob\r
+ gPcdDataBaseHobGuid ## CONSUMES ## Hob\r
\r
[Ppis]\r
- gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMED\r
- gPcdPpiGuid ## PRODUCED\r
+ gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMES\r
+ gPcdPpiGuid ## PRODUCES\r
\r
[FeaturePcd.common]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseSetEnabled\r
#include <Protocol/ComponentName2.h>\r
#include <Protocol/ComponentName.h>\r
#include <Protocol/DriverBinding.h>\r
+#include <Guid/GlobalVariable.h>\r
\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r