TianoCore EDK2 master
Loading...
Searching...
No Matches
IpmiSsif.h
Go to the documentation of this file.
1
14#ifndef IPMI_SSIF_H_
15#define IPMI_SSIF_H_
16
21
23#define IPMI_SSIF_SMBUS_CMD_SINGLE_PART_WRITE 0x02
24#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_WRITE_START 0x06
25#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_WRITE_MIDDLE 0x07
26#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_WRITE_END 0x08
27
29#define IPMI_SSIF_SMBUS_CMD_SINGLE_PART_READ 0x03
30#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_READ_START 0x03
31#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_READ_MIDDLE 0x09
32#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_READ_END 0x09
33#define IPMI_SSIF_SMBUS_CMD_MULTI_PART_READ_RETRY 0x0A
34
39#define IPMI_SSIF_MULTI_PART_READ_START_SIZE 0x1E
40#define IPMI_SSIF_MULTI_PART_READ_START_PATTERN1 0x00
41#define IPMI_SSIF_MULTI_PART_READ_START_PATTERN2 0x01
42#define IPMI_SSIF_MULTI_PART_READ_END_PATTERN 0xFF
43
47#define IPMI_SSIF_INPUT_MESSAGE_SIZE_MAX 0xFF
48#define IPMI_SSIF_OUTPUT_MESSAGE_SIZE_MAX 0xFF
49
53#define IPMI_SSIF_MAXIMUM_PACKET_SIZE_IN_BYTES 0x20
54
55typedef enum {
56 IpmiSsifPacketStart = 0,
57 IpmiSsifPacketMiddle,
58 IpmiSsifPacketEnd,
59 IpmiSsifPacketSingle,
60 IpmiSsifPacketMax
61} IPMI_SSIF_PACKET_ATTRIBUTE;
62
63#pragma pack (1)
68typedef struct {
69 UINT8 NetFunc;
70 UINT8 Command;
72
77typedef struct {
78 UINT8 StartPattern[2];
79 UINT8 NetFunc;
80 UINT8 Command;
82
83typedef struct {
84 UINT8 BlockNumber;
86
87typedef struct {
88 UINT8 EndPattern;
90
91typedef struct {
92 UINT8 NetFunc;
93 UINT8 Command;
95
96#pragma pack ()
97
98#endif /* IPMI_SSIF_H_ */