]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/ValleyView2Soc/NorthCluster/Include/Protocol/MemInfo.h
Vlv2DeviceRefCodePkg: Replace BSD License with BSD+Patent License
[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
7ede8060 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
3cbfba02
DW
7\r
8\r
9Module Name:\r
10\r
11 MemInfo.h\r
12\r
13Abstract:\r
14\r
15 This protocol provides the memory information data, such as\r
16 total physical memory size, memory frequency, memory size\r
17 of each dimm and rank.\r
18\r
19 This protocol is EFI compatible.\r
20\r
21--*/\r
22\r
23#ifndef _MEM_INFO_PROTOCOL_H_\r
24#define _MEM_INFO_PROTOCOL_H_\r
25\r
26//\r
27// Define the protocol GUID\r
28//\r
29#define MEM_INFO_PROTOCOL_GUID \\r
30 { \\r
31 0x6f20f7c8, 0xe5ef, 0x4f21, 0x8d, 0x19, 0xed, 0xc5, 0xf0, 0xc4, 0x96, 0xae \\r
32 }\r
33\r
34//\r
35// Extern the GUID for protocol users.\r
36//\r
37extern EFI_GUID gMemInfoProtocolGuid;\r
38\r
39//\r
40// Forward reference for ANSI C compatibility\r
41//\r
42typedef struct _MEM_INFO_PROTOCOL MEM_INFO_PROTOCOL;\r
43\r
44//\r
45// Protocol definitions\r
46//\r
47\r
48#define CH_NUM 2\r
49#define DIMM_NUM 1\r
50#define RANK_NUM 2\r
51\r
52#pragma pack(1)\r
53typedef struct {\r
54 UINT32 memSize;\r
55 UINT8 ddrFreq;\r
56 UINT8 ddrType;\r
57 BOOLEAN EccSupport;\r
58 UINT16 dimmSize[CH_NUM * DIMM_NUM];\r
59 UINT8 reserved;\r
60 UINT16 reserved2;\r
61} MEMORY_INFO_DATA;\r
62#pragma pack()\r
63\r
64/*++\r
65Data definition:\r
66\r
67 memSize Total physical memory size\r
68 ddrFreq DDR Frequency\r
69 EccSupport ECC Support\r
70 dimmSize Dimm Size\r
71 DimmExist Dimm Present or not\r
72 RankInDimm No. of ranks in a dimm\r
73\r
74--*/\r
75\r
76//\r
77// Protocol definition\r
78//\r
79struct _MEM_INFO_PROTOCOL {\r
80 MEMORY_INFO_DATA MemInfoData;\r
81};\r
82\r
83#endif\r