]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/ValleyView2Soc/NorthCluster/Include/Protocol/MemInfo.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / NorthCluster / Include / Protocol / MemInfo.h
CommitLineData
3cbfba02
DW
1\r
2/*++\r
3\r
4Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved\r
5\r
6 This program and the accompanying materials are licensed and made available under\r
7 the terms and conditions of the BSD License that accompanies this distribution.\r
8 The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14\r
15Module Name:\r
16\r
17 MemInfo.h\r
18\r
19Abstract:\r
20\r
21 This protocol provides the memory information data, such as\r
22 total physical memory size, memory frequency, memory size\r
23 of each dimm and rank.\r
24\r
25 This protocol is EFI compatible.\r
26\r
27--*/\r
28\r
29#ifndef _MEM_INFO_PROTOCOL_H_\r
30#define _MEM_INFO_PROTOCOL_H_\r
31\r
32//\r
33// Define the protocol GUID\r
34//\r
35#define MEM_INFO_PROTOCOL_GUID \\r
36 { \\r
37 0x6f20f7c8, 0xe5ef, 0x4f21, 0x8d, 0x19, 0xed, 0xc5, 0xf0, 0xc4, 0x96, 0xae \\r
38 }\r
39\r
40//\r
41// Extern the GUID for protocol users.\r
42//\r
43extern EFI_GUID gMemInfoProtocolGuid;\r
44\r
45//\r
46// Forward reference for ANSI C compatibility\r
47//\r
48typedef struct _MEM_INFO_PROTOCOL MEM_INFO_PROTOCOL;\r
49\r
50//\r
51// Protocol definitions\r
52//\r
53\r
54#define CH_NUM 2\r
55#define DIMM_NUM 1\r
56#define RANK_NUM 2\r
57\r
58#pragma pack(1)\r
59typedef struct {\r
60 UINT32 memSize;\r
61 UINT8 ddrFreq;\r
62 UINT8 ddrType;\r
63 BOOLEAN EccSupport;\r
64 UINT16 dimmSize[CH_NUM * DIMM_NUM];\r
65 UINT8 reserved;\r
66 UINT16 reserved2;\r
67} MEMORY_INFO_DATA;\r
68#pragma pack()\r
69\r
70/*++\r
71Data definition:\r
72\r
73 memSize Total physical memory size\r
74 ddrFreq DDR Frequency\r
75 EccSupport ECC Support\r
76 dimmSize Dimm Size\r
77 DimmExist Dimm Present or not\r
78 RankInDimm No. of ranks in a dimm\r
79\r
80--*/\r
81\r
82//\r
83// Protocol definition\r
84//\r
85struct _MEM_INFO_PROTOCOL {\r
86 MEMORY_INFO_DATA MemInfoData;\r
87};\r
88\r
89#endif\r