]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Protocol/IpmiProtocol.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / IpmiProtocol.h
CommitLineData
54b330a4
DB
1/** @file\r
2 Protocol of Ipmi for both SMS and SMM.\r
3\r
4 Copyright (c) 2009 - 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_PROTOCOL_H_\r
10#define _IPMI_PROTOCOL_H_\r
11\r
12typedef struct _IPMI_PROTOCOL IPMI_PROTOCOL;\r
13\r
14#define IPMI_PROTOCOL_GUID \\r
15 { \\r
16 0xdbc6381f, 0x5554, 0x4d14, 0x8f, 0xfd, 0x76, 0xd7, 0x87, 0xb8, 0xac, 0xbf \\r
17 }\r
18\r
19#define SMM_IPMI_PROTOCOL_GUID \\r
20 { \\r
21 0x5169af60, 0x8c5a, 0x4243, 0xb3, 0xe9, 0x56, 0xc5, 0x6d, 0x18, 0xee, 0x26 \\r
22 }\r
23\r
54b330a4
DB
24/**\r
25 This service enables submitting commands via Ipmi.\r
26\r
27 @param[in] This This point for IPMI_PROTOCOL structure.\r
28 @param[in] NetFunction Net function of the command.\r
29 @param[in] Command IPMI Command.\r
30 @param[in] RequestData Command Request Data.\r
31 @param[in] RequestDataSize Size of Command Request Data.\r
32 @param[out] ResponseData Command Response Data. The completion code is the first byte of response data.\r
33 @param[in, out] ResponseDataSize Size of Command Response Data.\r
34\r
35 @retval EFI_SUCCESS The command byte stream was successfully submit to the device and a response was successfully received.\r
36 @retval EFI_NOT_FOUND The command was not successfully sent to the device or a response was not successfully received from the device.\r
37 @retval EFI_NOT_READY Ipmi Device is not ready for Ipmi command access.\r
38 @retval EFI_DEVICE_ERROR Ipmi Device hardware error.\r
39 @retval EFI_TIMEOUT The command time out.\r
40 @retval EFI_UNSUPPORTED The command was not successfully sent to the device.\r
41 @retval EFI_OUT_OF_RESOURCES The resource allcation is out of resource or data size error.\r
42**/\r
43typedef\r
44EFI_STATUS\r
1436aea4 45(EFIAPI *IPMI_SUBMIT_COMMAND)(\r
54b330a4
DB
46 IN IPMI_PROTOCOL *This,\r
47 IN UINT8 NetFunction,\r
48 IN UINT8 Command,\r
49 IN UINT8 *RequestData,\r
50 IN UINT32 RequestDataSize,\r
1436aea4 51 OUT UINT8 *ResponseData,\r
54b330a4
DB
52 IN OUT UINT32 *ResponseDataSize\r
53 );\r
54\r
55//\r
56// IPMI COMMAND PROTOCOL\r
57//\r
1436aea4
MK
58struct _IPMI_PROTOCOL {\r
59 IPMI_SUBMIT_COMMAND IpmiSubmitCommand;\r
54b330a4
DB
60};\r
61\r
1436aea4
MK
62extern EFI_GUID gIpmiProtocolGuid;\r
63extern EFI_GUID gSmmIpmiProtocolGuid;\r
54b330a4
DB
64\r
65#endif\r