TianoCore EDK2 master
Loading...
Searching...
No Matches
IpmiKcs.h
Go to the documentation of this file.
1
13#ifndef IPMI_KCS_H_
14#define IPMI_KCS_H_
15
16#define IPMI_KCS_STATUS_REGISTER_OFFSET 1
17#define IPMI_KCS_COMMAND_REGISTER_OFFSET 1
18#define IPMI_KCS_DATA_OUT_REGISTER_OFFSET 0
19#define IPMI_KCS_DATA_IN_REGISTER_OFFSET 0
20
24#define IPMI_KCS_OBF BIT0
25#define IPMI_KCS_IBF BIT1
26#define IPMI_KCS_SMS_ATN BIT2
27#define IPMI_KCS_COMMAND_DATA BIT3
28#define IPMI_KCS_OEM1 BIT4
29#define IPMI_KCS_OEM2 BIT5
30#define IPMI_KCS_S0 BIT6
31#define IPMI_KCS_S1 BIT7
32
36#define IPMI_KCS_CONTROL_CODE_GET_STATUS_ABORT 0x60
37#define IPMI_KCS_CONTROL_CODE_WRITE_START 0x61
38#define IPMI_KCS_CONTROL_CODE_WRITE_END 0x62
39#define IPMI_KCS_CONTROL_CODE_READ 0x68
40
44#define IPMI_KCS_STATUS_NO_ERROR 0x00
45#define IPMI_KCS_STATUS_ABORT 0x01
46#define IPMI_KCS_STATUS_ILLEGAL 0x02
47#define IPMI_KCS_STATUS_LENGTH_ERROR 0x06
48#define IPMI_KCS_STATUS_UNSPECIFIED 0xFF
49
53typedef enum {
54 IpmiKcsIdleState = 0,
55 IpmiKcsReadState,
56 IpmiKcsWriteState,
57 IpmiKcsErrorState
59
63typedef struct {
64 UINT8 NetFunc;
65 UINT8 Command;
66 UINT8 Data[];
68
72typedef struct {
73 UINT8 NetFunc;
74 UINT8 Command;
76#endif
IPMI_KCS_STATE
Definition: IpmiKcs.h:53