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