]>
Commit | Line | Data |
---|---|---|
92cd1682 DB |
1 | /** @file\r |
2 | A emptry template implementation of Ipmi Library.\r | |
3 | \r | |
4 | Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #include <Library/BaseLib.h>\r | |
16 | #include <Library/DebugLib.h>\r | |
17 | #include <Library/IpmiLib.h>\r | |
18 | \r | |
19 | \r | |
20 | /**\r | |
21 | This service enables submitting commands via Ipmi.\r | |
22 | \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 | |
38 | EFI_STATUS\r | |
39 | EFIAPI\r | |
40 | IpmiSubmitCommand (\r | |
41 | IN UINT8 NetFunction,\r | |
42 | IN UINT8 Command,\r | |
43 | IN UINT8 *RequestData,\r | |
44 | IN UINT32 RequestDataSize,\r | |
45 | OUT UINT8 *ResponseData,\r | |
46 | IN OUT UINT32 *ResponseDataSize\r | |
47 | )\r | |
48 | {\r | |
49 | //\r | |
50 | // Do nothing, just return EFI_UNSUPPORTED.\r | |
51 | //\r | |
52 | return EFI_UNSUPPORTED;\r | |
53 | }\r |