X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FInclude%2FGuid%2FMemoryProfile.h;h=9c70b9df3924b81c3cc8a78415d14de9000cdf69;hp=a2f03256c317715e144bc2f414cc3083f728810b;hb=73e0de62826dffe8f9e32d6d0d18b54a8a5d3f38;hpb=6e4e6ffda448b77a3b2f3549137aca5c1b62cb4a diff --git a/MdeModulePkg/Include/Guid/MemoryProfile.h b/MdeModulePkg/Include/Guid/MemoryProfile.h index a2f03256c3..9c70b9df39 100644 --- a/MdeModulePkg/Include/Guid/MemoryProfile.h +++ b/MdeModulePkg/Include/Guid/MemoryProfile.h @@ -1,7 +1,7 @@ /** @file Memory profile data structure. - Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -237,13 +237,15 @@ struct _EDKII_MEMORY_PROFILE_PROTOCOL { // // SMRAM profile command // -#define SMRAM_PROFILE_COMMAND_GET_PROFILE_INFO 0x1 -#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA 0x2 +#define SMRAM_PROFILE_COMMAND_GET_PROFILE_INFO 0x1 +#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA 0x2 // // Below 2 commands are now used by ECP only and only valid before SmmReadyToLock // -#define SMRAM_PROFILE_COMMAND_REGISTER_IMAGE 0x3 -#define SMRAM_PROFILE_COMMAND_UNREGISTER_IMAGE 0x4 +#define SMRAM_PROFILE_COMMAND_REGISTER_IMAGE 0x3 +#define SMRAM_PROFILE_COMMAND_UNREGISTER_IMAGE 0x4 + +#define SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET 0x5 typedef struct { UINT32 Command; @@ -262,6 +264,21 @@ typedef struct { PHYSICAL_ADDRESS ProfileBuffer; } SMRAM_PROFILE_PARAMETER_GET_PROFILE_DATA; +typedef struct { + SMRAM_PROFILE_PARAMETER_HEADER Header; + // + // On input, profile buffer size. + // On output, actual profile data size copied. + // + UINT64 ProfileSize; + PHYSICAL_ADDRESS ProfileBuffer; + // + // On input, profile buffer offset to copy. + // On output, next time profile buffer offset to copy. + // + UINT64 ProfileOffset; +} SMRAM_PROFILE_PARAMETER_GET_PROFILE_DATA_BY_OFFSET; + typedef struct { SMRAM_PROFILE_PARAMETER_HEADER Header; EFI_GUID FileName;