]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Ppi/IpmiPpi.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / IpmiPpi.h
CommitLineData
54b330a4
DB
1/** @file\r
2 Ppi for Ipmi of SMS.\r
3\r
4 Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
54b330a4
DB
6\r
7**/\r
8\r
9#ifndef _IPMI_PPI_H_\r
10#define _IPMI_PPI_H_\r
11\r
12typedef struct _PEI_IPMI_PPI PEI_IPMI_PPI;\r
13\r
14#define PEI_IPMI_PPI_GUID \\r
15 { \\r
16 0xa9731431, 0xd968, 0x4277, 0xb7, 0x52, 0xa3, 0xa9, 0xa6, 0xae, 0x18, 0x98 \\r
17 }\r
18\r
19/**\r
20 This service enables submitting commands via Ipmi.\r
21\r
22 @param[in] This This point for PEI_IPMI_PPI structure.\r
23 @param[in] NetFunction Net function of the command.\r
24 @param[in] Command IPMI Command.\r
25 @param[in] RequestData Command Request Data.\r
26 @param[in] RequestDataSize Size of Command Request Data.\r
27 @param[out] ResponseData Command Response Data. The completion code is the first byte of response data.\r
28 @param[in, out] ResponseDataSize Size of Command Response Data.\r
29\r
30 @retval EFI_SUCCESS The command byte stream was successfully submit to the device and a response was successfully received.\r
31 @retval EFI_NOT_FOUND The command was not successfully sent to the device or a response was not successfully received from the device.\r
32 @retval EFI_NOT_READY Ipmi Device is not ready for Ipmi command access.\r
33 @retval EFI_DEVICE_ERROR Ipmi Device hardware error.\r
34 @retval EFI_TIMEOUT The command time out.\r
35 @retval EFI_UNSUPPORTED The command was not successfully sent to the device.\r
36 @retval EFI_OUT_OF_RESOURCES The resource allcation is out of resource or data size error.\r
37**/\r
38typedef\r
39EFI_STATUS\r
1436aea4 40(EFIAPI *PEI_IPMI_SUBMIT_COMMAND)(\r
54b330a4
DB
41 IN PEI_IPMI_PPI *This,\r
42 IN UINT8 NetFunction,\r
43 IN UINT8 Command,\r
44 IN UINT8 *RequestData,\r
45 IN UINT32 RequestDataSize,\r
1436aea4 46 OUT UINT8 *ResponseData,\r
54b330a4
DB
47 IN OUT UINT32 *ResponseDataSize\r
48 );\r
49\r
50//\r
51// IPMI PPI\r
52//\r
53struct _PEI_IPMI_PPI {\r
1436aea4 54 PEI_IPMI_SUBMIT_COMMAND IpmiSubmitCommand;\r
54b330a4
DB
55};\r
56\r
1436aea4 57extern EFI_GUID gPeiIpmiPpiGuid;\r
54b330a4
DB
58\r
59#endif\r