]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[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 /**
15 This service enables submitting commands via Ipmi.
16
17 @param[in] NetFunction Net function of the command.
18 @param[in] Command IPMI Command.
19 @param[in] RequestData Command Request Data.
20 @param[in] RequestDataSize Size of Command Request Data.
21 @param[out] ResponseData Command Response Data. The completion code is the first byte of response data.
22 @param[in, out] ResponseDataSize Size of Command Response Data.
23
24 @retval EFI_SUCCESS The command byte stream was successfully submit to the device and a response was successfully received.
25 @retval EFI_NOT_FOUND The command was not successfully sent to the device or a response was not successfully received from the device.
26 @retval EFI_NOT_READY Ipmi Device is not ready for Ipmi command access.
27 @retval EFI_DEVICE_ERROR Ipmi Device hardware error.
28 @retval EFI_TIMEOUT The command time out.
29 @retval EFI_UNSUPPORTED The command was not successfully sent to the device.
30 @retval EFI_OUT_OF_RESOURCES The resource allcation is out of resource or data size error.
31 **/
32 EFI_STATUS
33 EFIAPI
34 IpmiSubmitCommand (
35 IN UINT8 NetFunction,
36 IN UINT8 Command,
37 IN UINT8 *RequestData,
38 IN UINT32 RequestDataSize,
39 OUT UINT8 *ResponseData,
40 IN OUT UINT32 *ResponseDataSize
41 )
42 {
43 //
44 // Do nothing, just return EFI_UNSUPPORTED.
45 //
46 return EFI_UNSUPPORTED;
47 }