TianoCore EDK2 master
Loading...
Searching...
No Matches
PldmSmbiosTransfer.h
Go to the documentation of this file.
1
16#ifndef PLDM_SMBIOS_TRANSFER_H_
17#define PLDM_SMBIOS_TRANSFER_H_
18
20
21#pragma pack(1)
22
27#define PLDM_GET_SMBIOS_STRUCTURE_TABLE_METADATA_COMMAND_CODE 0x01
28#define PLDM_SET_SMBIOS_STRUCTURE_TABLE_METADATA_COMMAND_CODE 0x02
29#define PLDM_GET_SMBIOS_STRUCTURE_TABLE_COMMAND_CODE 0x03
30#define PLDM_SET_SMBIOS_STRUCTURE_TABLE_COMMAND_CODE 0x04
31#define PLDM_GET_SMBIOS_STRUCTURE_BY_TYPE_COMMAND_CODE 0x05
32#define PLDM_GET_SMBIOS_STRUCTURE_BY_HANDLE_COMMAND_CODE 0x06
33
37#define PLDM_COMPLETION_CODE_INVALID_DATA_TRANSFER_HANDLE 0x80
38#define PLDM_COMPLETION_CODE_INVALID_TRANSFER_OPERATION_FLAG 0x81
39#define PLDM_COMPLETION_CODE_INVALID_TRANSFER_FLAG 0x82
40#define PLDM_COMPLETION_CODE_NO_SMBIOS_STRUCTURE_TABLE_METADATA 0x83
41#define PLDM_COMPLETION_CODE_INVALID_DATA_INTEGRITY_CHECK 0x84
42#define PLDM_COMPLETION_CODE_SMBIOS_STRUCTURE_TABLE_UNAVAILABLE 0x85
43
47typedef struct {
48 UINT8 SmbiosMajorVersion;
49 UINT8 SmbiosMinorVersion;
50 UINT16 MaximumStructureSize;
51 UINT16 SmbiosStructureTableLength;
52 UINT16 NumberOfSmbiosStructures;
53 UINT32 SmbiosStructureTableIntegrityChecksum;
55
56typedef struct {
57 PLDM_RESPONSE_HEADER ResponseHeader;
58 PLDM_SMBIOS_STRUCTURE_TABLE_METADATA SmbiosStructureTableMetadata;
60
64typedef struct {
65 PLDM_REQUEST_HEADER RequestHeader;
66 PLDM_SMBIOS_STRUCTURE_TABLE_METADATA SmbiosStructureTableMetadata;
68
72typedef struct {
73 PLDM_RESPONSE_HEADER ResponseHeader;
75
79typedef struct {
80 UINT32 DataTransferHandle;
81 UINT8 TransferOperationFlag;
83
84typedef struct {
85 PLDM_REQUEST_HEADER RequestHeader;
86 PLDM_GET_SMBIOS_STRUCTURE_TABLE_REQUEST GetSmbiosStructureTableRequest;
88
92typedef struct {
93 UINT32 NextDataTransferHandle;
94 UINT8 TransferFlag;
95 UINT8 Table[0];
97
98typedef struct {
99 PLDM_RESPONSE_HEADER ResponseHeader;
100 PLDM_GET_SMBIOS_STRUCTURE_TABLE_RESPONSE GetSmbiosStructureTableResponse;
102
106typedef struct {
107 UINT32 DataTransferHandle;
108 UINT8 TransferFlag;
109 UINT8 Table[0];
111
112typedef struct {
113 PLDM_REQUEST_HEADER RequestHeader;
114 PLDM_SET_SMBIOS_STRUCTURE_TABLE_REQUEST SetSmbiosStructureTableRequest;
116
120typedef struct {
121 PLDM_RESPONSE_HEADER ResponseHeader;
122 UINT32 NextDataTransferHandle;
124
128typedef struct {
129 UINT32 DataTransferHandle;
130 UINT8 TransferOperationFlag;
131 UINT8 Type;
132 UINT16 StructureInstanceId;
134
135typedef struct {
136 PLDM_REQUEST_HEADER RequestHeader;
137 PLDM_GET_SMBIOS_STRUCTURE_BY_TYPE_REQUEST GetSmbiosStructureByTypeRequest;
139
143typedef struct {
144 UINT32 NextDataTransferHandle;
145 UINT8 TransferFlag;
146 UINT8 Table[0];
148
149typedef struct {
150 PLDM_RESPONSE_HEADER ResponseHeader;
151 PLDM_GET_SMBIOS_STRUCTURE_BY_TYPE_RESPONSE GetSmbiosStructureByTypeResponse;
153
157typedef struct {
158 UINT32 DataTransferHandle;
159 UINT8 TransferOperationFlag;
160 UINT16 Handle;
162
163typedef struct {
164 PLDM_REQUEST_HEADER RequestHeader;
165 PLDM_GET_SMBIOS_STRUCTURE_BY_HANDLE_REQUEST GetSmbiosStructureByHandleRequest;
167
171typedef struct {
172 UINT32 NextDataTransferHandle;
173 UINT8 TransferFlag;
174 UINT8 Table[0];
176
177typedef struct {
178 PLDM_RESPONSE_HEADER ResponseHeader;
179 PLDM_GET_SMBIOS_STRUCTURE_BY_HANDLE_RESPONSE GetSmbiosStructureByTypeResponse;
181#pragma pack()
182
183#endif // PLDM_SMBIOS_TRANSFER_H_