diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /Chipset/NB/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h | |
download | zprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz |
Diffstat (limited to 'Chipset/NB/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h')
-rw-r--r-- | Chipset/NB/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/Chipset/NB/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h b/Chipset/NB/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h new file mode 100644 index 0000000..254f132 --- /dev/null +++ b/Chipset/NB/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h @@ -0,0 +1,108 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* + +//************************************************************************* +// $Header: /Alaska/BIN/Chipset/Intel/NorthBridge/Haswell/Intel SystemAgent NB Chipset/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h 1 2/08/12 4:37a Yurenlai $ +// +// $Revision: 1 $ +// +// $Date: 2/08/12 4:37a $ +//************************************************************************* +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Chipset/Intel/NorthBridge/Haswell/Intel SystemAgent NB Chipset/SystemAgentWrap/UpdateMemoryRecord/UpdateMemoryRecord.h $ +// +// 1 2/08/12 4:37a Yurenlai +// Intel Haswell/NB eChipset initially releases. +// +//************************************************************************* +//<AMI_FHDR_START> +// +// Name: UpdateMemoryRecord.h +// +// Description: +// +//<AMI_FHDR_END> +//********************************************************************** +#ifndef __UPDATE_MEMORY_RECORD_H__ +#define __UPDATE_MEMORY_RECORD_H__ + +#include <Tiano.h> +#include <Protocol\SMBios.h> +#include <Protocol\SmbiosGetFlashDataProtocol.h> +#include "EfiDriverLib.h" +#include "Guid\DataHubRecords\DataHubSubClassMemory.h" +#include "SmbiosUpdateDataProtocol.h" + +#if (EFI_SPECIFICATION_VERSION >= 0x0002000A) +#include "UefiIfrLibrary.h" +#include EFI_PROTOCOL_DEPENDENCY (HiiDatabase) +#include EFI_PROTOCOL_DEPENDENCY (HiiString) +#else +#include "Library\Dxe\EfiIfrSupportLib\IfrLibrary.h" +#include EFI_PROTOCOL_DEPENDENCY (Hii) +#endif + +#define SMBIOS_NOT_FOUND 0xFFFF +#define SMBIOS_UNKNOW 0xFFFF +#define SMBIOS_NOT_PROVIDE 0xFFFE +#define MAX_HANDLES 0x10 +#define SMBIOS_FOR_ALL 0xFF + +VOID +SMBIOS_FixHandleLink( + IN SMBIOS_TABLE_ENTRY_POINT *SmbiosBuffer +); + +EFI_STATUS +ExtractDataFromHiiHandle ( + IN EFI_HII_HANDLE HiiHandle, + IN OUT UINT16 *ImageLength, + OUT UINT8 *DefaultImage, + OUT EFI_GUID *Guid +); + + +UINT8 +TransferHiiStringToSmbios ( + IN UINT8 *Structure, + IN STRING_REF Token +); + +UINT16 +SMBIOS_GetStructureTotalSize( + IN UINT8 *BufferStart +); + +UINTN +SMBIOS_DeleteStructureByType ( + SMBIOS_TABLE_ENTRY_POINT *SmbiosBuffer, + UINT8 Type, + UINT8 Index +); + +#endif +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//*************************************************************************
\ No newline at end of file |