-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathIpmiBaseLib.h
59 lines (48 loc) · 1.64 KB
/
IpmiBaseLib.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
/** @file
IPMI Command Library Header File.
@copyright
Copyright 2011 - 2021 Intel Corporation. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _IPMI_BASE_LIB_H_
#define _IPMI_BASE_LIB_H_
#include <IpmiInterface.h>
//
// Prototype definitions for IPMI Library
//
/**
Sends a IPMI command to the BMC and returns the response.
@param[in] NetFunction Net function of the command.
@param[in] Command IPMI command number.
@param[in] CommandData Command data buffer.
@param[in] CommandDataSize Size of command data.
@param[out] ResponseData Response Data buffer.
@param[in,out] ResponseDataSize Response data buffer size on input, size of
read data or required size on return.
@retval EFI_SUCCESS Successfully send IPMI command.
@retval EFI_NOT_FOUND Ipmi interface is not installed yet.
**/
EFI_STATUS
EFIAPI
IpmiSubmitCommand (
IN UINT8 NetFunction,
IN UINT8 Command,
IN UINT8 *CommandData,
IN UINT32 CommandDataSize,
OUT UINT8 *ResponseData,
IN OUT UINT32 *ResponseDataSize
);
/**
Gets the current status of the BMC from the IPMI module.
@param[out] BmcStatus The current status of the BMC.
@param[out] ComAddress The address of the BMC.
@retval EFI_SUCCESS Successfully retrieved BMC status
@retval EFI_NOT_AVAILABLE_YET Ipmi interface is not installed yet.
**/
EFI_STATUS
EFIAPI
GetBmcStatus (
OUT BMC_STATUS *BmcStatus,
OUT SM_COM_ADDRESS *ComAddress
);
#endif