]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Library / BaseIpmiLibNull / BaseIpmiLibNull.c
1 /** @file
2 A emptry template implementation of Ipmi Library.
3
4 Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Library/BaseLib.h>
10 #include <Library/DebugLib.h>
11 #include <Library/IpmiLib.h>
12
13 /**
14 This service enables submitting commands via Ipmi.
15
16 @param[in] NetFunction Net function of the command.
17 @param[in] Command IPMI Command.
18 @param[in] RequestData Command Request Data.
19 @param[in] RequestDataSize Size of Command Request Data.
20 @param[out] ResponseData Command Response Data. The completion code is the first byte of response data.
21 @param[in, out] ResponseDataSize Size of Command Response Data.
22
23 @retval EFI_SUCCESS The command byte stream was successfully submit to the device and a response was successfully received.
24 @retval EFI_NOT_FOUND The command was not successfully sent to the device or a response was not successfully received from the device.
25 @retval EFI_NOT_READY Ipmi Device is not ready for Ipmi command access.
26 @retval EFI_DEVICE_ERROR Ipmi Device hardware error.
27 @retval EFI_TIMEOUT The command time out.
28 @retval EFI_UNSUPPORTED The command was not successfully sent to the device.
29 @retval EFI_OUT_OF_RESOURCES The resource allcation is out of resource or data size error.
30 **/
31 EFI_STATUS
32 EFIAPI
33 IpmiSubmitCommand (
34 IN UINT8 NetFunction,
35 IN UINT8 Command,
36 IN UINT8 *RequestData,
37 IN UINT32 RequestDataSize,
38 OUT UINT8 *ResponseData,
39 IN OUT UINT32 *ResponseDataSize
40 )
41 {
42 //
43 // Do nothing, just return EFI_UNSUPPORTED.
44 //
45 return EFI_UNSUPPORTED;
46 }