]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/IpmiFruInformationStorage.h
1aef4b14f2a92c8677382fe03fb9b225c50ef3fa
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / IpmiFruInformationStorage.h
1 /** @file
2 IPMI Platform Management FRU Information Storage Definitions
3
4 This file contains the definitions for:
5 Common Header Format (Chapter 8)
6 MultiRecord Header (Section 16.1)
7
8 Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
9 This program and the accompanying materials
10 are licensed and made available under the terms and conditions of the BSD License
11 which accompanies this distribution. The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php
13
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16
17 @par Revision Reference:
18 - IPMI Platform Management FRU Information Storage Definition v1.0 Revision
19 1.3, Dated March 24, 2015.
20 https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/ipmi-platform-mgt-fru-info-storage-def-v1-0-rev-1-3-spec-update.pdf
21 **/
22
23 #ifndef _IPMI_FRU_INFORMATION_STORAGE_H_
24 #define _IPMI_FRU_INFORMATION_STORAGE_H_
25
26 #pragma pack(1)
27
28 //
29 // Structure definitions for FRU Common Header
30 //
31 typedef union {
32 ///
33 /// Individual bit fields
34 ///
35 struct {
36 UINT8 FormatVersionNumber:4;
37 UINT8 Reserved:4;
38 } Bits;
39 ///
40 /// All bit fields as a 8-bit value
41 ///
42 UINT8 Uint8;
43 } IPMI_FRU_COMMON_HEADER_FORMAT_VERSION;
44
45 typedef struct {
46 IPMI_FRU_COMMON_HEADER_FORMAT_VERSION FormatVersion;
47 UINT8 InternalUseStartingOffset;
48 UINT8 ChassisInfoStartingOffset;
49 UINT8 BoardAreaStartingOffset;
50 UINT8 ProductInfoStartingOffset;
51 UINT8 MultiRecInfoStartingOffset;
52 UINT8 Pad;
53 UINT8 Checksum;
54 } IPMI_FRU_COMMON_HEADER;
55
56 //
57 // Structure definition for FRU MultiRecord Header
58 //
59 typedef union {
60 ///
61 /// Individual bit fields
62 ///
63 struct {
64 UINT8 RecordFormatVersion:4;
65 UINT8 Reserved:3;
66 UINT8 EndofList:1;
67 } Bits;
68 ///
69 /// All bit fields as a 8-bit value
70 ///
71 UINT8 Uint8;
72 } IPMI_FRU_MULTI_RECORD_HEADER_FORMAT_VERSION;
73
74 typedef struct {
75 UINT8 RecordTypeId;
76 IPMI_FRU_MULTI_RECORD_HEADER_FORMAT_VERSION FormatVersion;
77 UINT8 RecordLength;
78 UINT8 RecordChecksum;
79 UINT8 HeaderChecksum;
80 } IPMI_FRU_MULTI_RECORD_HEADER;
81
82 //
83 // Structure definition for System UUID Subrecord with checksum.
84 //
85 typedef struct {
86 UINT8 RecordCheckSum;
87 UINT8 SubRecordId;
88 EFI_GUID Uuid;
89 } IPMI_SYSTEM_UUID_SUB_RECORD_WITH_CHECKSUM;
90
91 #pragma pack()
92 #endif