]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/IpmiLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Library / IpmiLib.h
CommitLineData
54b330a4
DB
1/** @file\r
2 This library abstract how to access IPMI device via IPMI command.\r
3\r
4Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved. <BR>\r
9d510e61 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
54b330a4
DB
6\r
7**/\r
8\r
9#ifndef _IPMI_LIB_H_\r
10#define _IPMI_LIB_H_\r
11\r
12#include <Uefi.h>\r
13#include <IndustryStandard/Ipmi.h>\r
14\r
54b330a4
DB
15/**\r
16 This service enables submitting commands via Ipmi.\r
17\r
18 @param[in] NetFunction Net function of the command.\r
19 @param[in] Command IPMI Command.\r
20 @param[in] RequestData Command Request Data.\r
21 @param[in] RequestDataSize Size of Command Request Data.\r
22 @param[out] ResponseData Command Response Data. The completion code is the first byte of response data.\r
23 @param[in, out] ResponseDataSize Size of Command Response Data.\r
24\r
25 @retval EFI_SUCCESS The command byte stream was successfully submit to the device and a response was successfully received.\r
26 @retval EFI_NOT_FOUND The command was not successfully sent to the device or a response was not successfully received from the device.\r
27 @retval EFI_NOT_READY Ipmi Device is not ready for Ipmi command access.\r
28 @retval EFI_DEVICE_ERROR Ipmi Device hardware error.\r
29 @retval EFI_TIMEOUT The command time out.\r
30 @retval EFI_UNSUPPORTED The command was not successfully sent to the device.\r
31 @retval EFI_OUT_OF_RESOURCES The resource allcation is out of resource or data size error.\r
32**/\r
33EFI_STATUS\r
34EFIAPI\r
35IpmiSubmitCommand (\r
1436aea4
MK
36 IN UINT8 NetFunction,\r
37 IN UINT8 Command,\r
38 IN UINT8 *RequestData,\r
39 IN UINT32 RequestDataSize,\r
40 OUT UINT8 *ResponseData,\r
41 IN OUT UINT32 *ResponseDataSize\r
54b330a4
DB
42 );\r
43\r
44#endif\r