4 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
6 SPDX-License-Identifier: BSD-2-Clause-Patent
15 This protocol provides the memory information data, such as
16 total physical memory size, memory frequency, memory size
17 of each dimm and rank.
19 This protocol is EFI compatible.
23 #ifndef _MEM_INFO_PROTOCOL_H_
24 #define _MEM_INFO_PROTOCOL_H_
27 // Define the protocol GUID
29 #define MEM_INFO_PROTOCOL_GUID \
31 0x6f20f7c8, 0xe5ef, 0x4f21, 0x8d, 0x19, 0xed, 0xc5, 0xf0, 0xc4, 0x96, 0xae \
35 // Extern the GUID for protocol users.
37 extern EFI_GUID gMemInfoProtocolGuid
;
40 // Forward reference for ANSI C compatibility
42 typedef struct _MEM_INFO_PROTOCOL MEM_INFO_PROTOCOL
;
45 // Protocol definitions
58 UINT16 dimmSize
[CH_NUM
* DIMM_NUM
];
67 memSize Total physical memory size
69 EccSupport ECC Support
71 DimmExist Dimm Present or not
72 RankInDimm No. of ranks in a dimm
77 // Protocol definition
79 struct _MEM_INFO_PROTOCOL
{
80 MEMORY_INFO_DATA MemInfoData
;