4 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
6 This program and the accompanying materials are licensed and made available under
7 the terms and conditions of the BSD License that accompanies this distribution.
8 The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 This protocol provides the memory information data, such as
22 total physical memory size, memory frequency, memory size
23 of each dimm and rank.
25 This protocol is EFI compatible.
29 #ifndef _MEM_INFO_PROTOCOL_H_
30 #define _MEM_INFO_PROTOCOL_H_
33 // Define the protocol GUID
35 #define MEM_INFO_PROTOCOL_GUID \
37 0x6f20f7c8, 0xe5ef, 0x4f21, 0x8d, 0x19, 0xed, 0xc5, 0xf0, 0xc4, 0x96, 0xae \
41 // Extern the GUID for protocol users.
43 extern EFI_GUID gMemInfoProtocolGuid
;
46 // Forward reference for ANSI C compatibility
48 typedef struct _MEM_INFO_PROTOCOL MEM_INFO_PROTOCOL
;
51 // Protocol definitions
64 UINT16 dimmSize
[CH_NUM
* DIMM_NUM
];
73 memSize Total physical memory size
75 EccSupport ECC Support
77 DimmExist Dimm Present or not
78 RankInDimm No. of ranks in a dimm
83 // Protocol definition
85 struct _MEM_INFO_PROTOCOL
{
86 MEMORY_INFO_DATA MemInfoData
;