4 Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
12 typedef struct _PEI_IPMI_PPI PEI_IPMI_PPI
;
14 #define PEI_IPMI_PPI_GUID \
16 0xa9731431, 0xd968, 0x4277, 0xb7, 0x52, 0xa3, 0xa9, 0xa6, 0xae, 0x18, 0x98 \
20 This service enables submitting commands via Ipmi.
22 @param[in] This This point for PEI_IPMI_PPI structure.
23 @param[in] NetFunction Net function of the command.
24 @param[in] Command IPMI Command.
25 @param[in] RequestData Command Request Data.
26 @param[in] RequestDataSize Size of Command Request Data.
27 @param[out] ResponseData Command Response Data. The completion code is the first byte of response data.
28 @param[in, out] ResponseDataSize Size of Command Response Data.
30 @retval EFI_SUCCESS The command byte stream was successfully submit to the device and a response was successfully received.
31 @retval EFI_NOT_FOUND The command was not successfully sent to the device or a response was not successfully received from the device.
32 @retval EFI_NOT_READY Ipmi Device is not ready for Ipmi command access.
33 @retval EFI_DEVICE_ERROR Ipmi Device hardware error.
34 @retval EFI_TIMEOUT The command time out.
35 @retval EFI_UNSUPPORTED The command was not successfully sent to the device.
36 @retval EFI_OUT_OF_RESOURCES The resource allcation is out of resource or data size error.
40 (EFIAPI
*PEI_IPMI_SUBMIT_COMMAND
) (
41 IN PEI_IPMI_PPI
*This
,
44 IN UINT8
*RequestData
,
45 IN UINT32 RequestDataSize
,
46 OUT UINT8
*ResponseData
,
47 IN OUT UINT32
*ResponseDataSize
53 struct _PEI_IPMI_PPI
{
54 PEI_IPMI_SUBMIT_COMMAND IpmiSubmitCommand
;
57 extern EFI_GUID gPeiIpmiPpiGuid
;