-
Notifications
You must be signed in to change notification settings - Fork 31
/
IpmiInterface.h
73 lines (58 loc) · 1.67 KB
/
IpmiInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/** @file
Generic definitions for the common IPMI interfaces.
Copyright 2014 - 2021 Intel Corporation. <BR>
Copyright (c) Microsoft Corporation
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _IPMI_INTERFACE_H_
#define _IPMI_INTERFACE_H_
#include <ServerManagement.h>
typedef struct _IPMI_TRANSPORT IPMI_TRANSPORT;
//
// BMC status bit definitions.
//
typedef UINT32 BMC_STATUS;
#define BMC_OK 0
#define BMC_SOFTFAIL 1
#define BMC_HARDFAIL 2
#define BMC_UPDATE_IN_PROGRESS 3
#define BMC_NOTREADY 4
//
// Structure to communicate BMC state from PEI to DXE.
//
#pragma pack(1)
typedef struct _IPMI_BMC_HOB {
BMC_STATUS BmcStatus;
} IPMI_BMC_HOB;
#pragma pack()
//
// IPMI Function Prototypes
//
typedef
EFI_STATUS
(EFIAPI *IPMI_SEND_COMMAND)(
IN IPMI_TRANSPORT *This,
IN UINT8 NetFunction,
IN UINT8 Lun,
IN UINT8 Command,
IN UINT8 *CommandData,
IN UINT32 CommandDataSize,
OUT UINT8 *ResponseData,
OUT UINT32 *ResponseDataSize
);
typedef
EFI_STATUS
(EFIAPI *IPMI_GET_CHANNEL_STATUS)(
IN IPMI_TRANSPORT *This,
OUT BMC_STATUS *BmcStatus,
OUT SM_COM_ADDRESS *ComAddress
);
//
// IPMI TRANSPORT
//
struct _IPMI_TRANSPORT {
UINT64 Revision;
IPMI_SEND_COMMAND IpmiSubmitCommand;
IPMI_GET_CHANNEL_STATUS GetBmcStatus;
};
#endif