TianoCore EDK2 master
Loading...
Searching...
No Matches
Pldm.h
Go to the documentation of this file.
1
16#ifndef PLDM_H_
17#define PLDM_H_
18
19#pragma pack(1)
20
21#define PLDM_MESSAGE_HEADER_VERSION 0
22
27typedef struct {
28 UINT8 InstanceId : 5;
29 UINT8 Reserved : 1;
30 UINT8 DatagramBit : 1;
34 UINT8 RequestBit : 1;
35 UINT8 PldmType : 6;
36 UINT8 HeaderVersion : 2;
39
41
42#define PLDM_MESSAGE_HEADER_IS_REQUEST 1
43#define PLDM_MESSAGE_HEADER_IS_RESPONSE 0
44#define PLDM_MESSAGE_HEADER_IS_DATAGRAM 1
45#define PLDM_MESSAGE_HEADER_INSTANCE_ID_MASK 0x1f
46
47typedef struct {
48 PLDM_MESSAGE_HEADER PldmHeader;
51
52#pragma pack()
53
54#define PLDM_HEADER_VERSION 0x00
55
56#define PLDM_COMPLETION_CODE_SUCCESS 0x00
57#define PLDM_COMPLETION_CODE_ERROR 0x01
58#define PLDM_COMPLETION_CODE_ERROR_INVALID_DATA 0x02
59#define PLDM_COMPLETION_CODE_ERROR_INVALID_LENGTH 0x03
60#define PLDM_COMPLETION_CODE_ERROR_NOT_READY 0x04
61#define PLDM_COMPLETION_CODE_ERROR_UNSUPPORTED_PLDM_CMD 0x05
62#define PLDM_COMPLETION_CODE_ERROR_INVALID_PLDM_TYPE 0x20
63#define PLDM_COMPLETION_CODE_SPECIFIC_START 0x80
64#define PLDM_COMPLETION_CODE_SPECIFIC_END 0xff
65
71#define PLDM_TYPE_MESSAGE_CONTROL_AND_DISCOVERY 0x00
72#define PLDM_TYPE_SMBIOS 0x01
73#define PLDM_TYPE_PLATFORM_MONITORING_AND_CONTROL 0x02
74#define PLDM_TYPE_BIOS_CONTROL_AND_CONFIGURATION 0x03
75
76#define PLDM_TRANSFER_FLAG_START 0x01
77#define PLDM_TRANSFER_FLAG_MIDDLE 0x02
78#define PLDM_TRANSFER_FLAG_END 0x04
79#define PLDM_TRANSFER_FLAG_START_AND_END 0x05
80
81#define PLDM_TRANSFER_OPERATION_FLAG_GET_NEXT_PART 0x00
82#define PLDM_TRANSFER_OPERATION_FLAG_GET_FIRST_PART 0x01
83#endif // PLDM_H_
UINT8 RequestBit
Request bit.
Definition: Pldm.h:34
UINT8 HeaderVersion
Header version.
Definition: Pldm.h:36
UINT8 Reserved
Reserved bit.
Definition: Pldm.h:29
UINT8 PldmTypeCommandCode
The command code of PLDM message type.
Definition: Pldm.h:37
UINT8 DatagramBit
Definition: Pldm.h:30
UINT8 InstanceId
Request instance ID.
Definition: Pldm.h:28
UINT8 PldmType
PLDM message type.
Definition: Pldm.h:35
UINT8 PldmCompletionCode
PLDM completion of response message.
Definition: Pldm.h:49