]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Include/Guid/MemoryStatusCodeRecord.h
Add PciBus Module
[mirror_edk2.git] / IntelFrameworkModulePkg / Include / Guid / MemoryStatusCodeRecord.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 MemoryStatusCodeRecord.h
15
16 Abstract:
17
18 GUID used to identify status code records HOB that originate from the PEI status code
19
20 --*/
21
22 #ifndef __MEMORY_STATUS_CODE_RECORD_H__
23 #define __MEMORY_STATUS_CODE_RECORD_H__
24
25 #define MEMORY_STATUS_CODE_RECORD_GUID \
26 { \
27 0x60cc026, 0x4c0d, 0x4dda, {0x8f, 0x41, 0x59, 0x5f, 0xef, 0x0, 0xa5, 0x2} \
28 }
29
30 /**
31 Memory status code records packet structure :
32 +---------------+----------+----------+-----+----------+-----+----------+
33 | Packet Header | Record 1 | Record 2 | ... + Record n | ... | Record m |
34 +---------------+----------+----------+-----+----------+-----+----------+
35 ^ ^ ^
36 +--------- RecordIndex -----------+ |
37 +---------------- MaxRecordsNumber----------------------+
38 **/
39 typedef struct {
40 UINT16 PacketIndex; // Index of the Packet.
41 UINT16 RecordIndex; // Index of record in the packet.
42 UINT32 MaxRecordsNumber; // Max number of records in the packet.
43 } MEMORY_STATUSCODE_PACKET_HEADER;
44
45 typedef struct {
46 EFI_STATUS_CODE_TYPE CodeType;
47 EFI_STATUS_CODE_VALUE Value;
48 UINT32 Instance;
49 } MEMORY_STATUSCODE_RECORD;
50
51
52 extern EFI_GUID gMemoryStatusCodeRecordGuid;
53
54 #endif