]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommandLibNetFnTransport.c
MdeModulePkg/IpmiCommandLib: Add NULL instance library
[mirror_edk2.git] / MdeModulePkg / Library / BaseIpmiCommandLibNull / IpmiCommandLibNetFnTransport.c
diff --git a/MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommandLibNetFnTransport.c b/MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommandLibNetFnTransport.c
new file mode 100644 (file)
index 0000000..b45329f
--- /dev/null
@@ -0,0 +1,100 @@
+/** @file\r
+  IPMI Command - NetFnTransport NULL instance library.\r
+\r
+  Copyright (c) 2018 - 2021, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>\r
+\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+**/\r
+#include <Uefi.h>\r
+#include <IndustryStandard/Ipmi.h>\r
+\r
+/**\r
+  This function activates SOL\r
+\r
+  @param[in]      SolActivatingRequest    SOL activating request.\r
+  @param[out]     CompletionCode          The command completion code.\r
+\r
+  @retval EFI_UNSUPPORTED  Unsupported in the NULL lib.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+IpmiSolActivating (\r
+  IN  IPMI_SOL_ACTIVATING_REQUEST  *SolActivatingRequest,\r
+  OUT UINT8                        *CompletionCode\r
+  )\r
+{\r
+  return RETURN_UNSUPPORTED;\r
+}\r
+\r
+/**\r
+  This function sets SOL configuration parameters.\r
+\r
+  @param[in]      SetConfigurationParametersRequest      Set SOL configuration parameters\r
+                                                         command request.\r
+  @param[in]      SetConfigurationParametersRequestSize  Size of set SOL configuration\r
+                                                         parameters command request.\r
+  @param[out]     CompletionCode                         The command completion code.\r
+\r
+  @retval EFI_UNSUPPORTED  Unsupported in the NULL lib.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+IpmiSetSolConfigurationParameters (\r
+  IN  IPMI_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST  *SetConfigurationParametersRequest,\r
+  IN  UINT32                                         SetConfigurationParametersRequestSize,\r
+  OUT UINT8                                          *CompletionCode\r
+  )\r
+{\r
+  return RETURN_UNSUPPORTED;\r
+}\r
+\r
+/**\r
+  This function gets SOL configuration parameters.\r
+\r
+  @param[in]      GetConfigurationParametersRequest        Get SOL configuration parameters\r
+                                                           command request.\r
+  @param[out]     GetConfigurationParametersResponse       Get SOL configuration parameters\r
+                                                           response.\r
+  @param[in,out]  GetConfigurationParametersResponseSize   When input, the size of expect response.\r
+                                                           When output, the exact size of\r
+                                                           expect response.\r
+\r
+  @retval EFI_UNSUPPORTED  Unsupported in the NULL lib.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+IpmiGetSolConfigurationParameters (\r
+  IN  IPMI_GET_SOL_CONFIGURATION_PARAMETERS_REQUEST   *GetConfigurationParametersRequest,\r
+  OUT IPMI_GET_SOL_CONFIGURATION_PARAMETERS_RESPONSE  *GetConfigurationParametersResponse,\r
+  IN OUT UINT32                                       *GetConfigurationParametersResponseSize\r
+  )\r
+{\r
+  return RETURN_UNSUPPORTED;\r
+}\r
+\r
+/**\r
+  This function gets the LAN configuration parameter.\r
+\r
+  @param[in]     GetLanConfigurationParametersRequest   Request data\r
+  @param[out]    GetLanConfigurationParametersResponse  Response data\r
+  @param[in,out] GetLanConfigurationParametersSize      When input, the expected size of response data.\r
+                                                        When out, the exact size of response data.\r
+\r
+  @retval EFI_SUCCESS          Lan configuration parameter is returned in the response.\r
+  @retval Others               Other errors.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+IpmiGetLanConfigurationParameters (\r
+  IN   IPMI_GET_LAN_CONFIGURATION_PARAMETERS_REQUEST   *GetLanConfigurationParametersRequest,\r
+  OUT  IPMI_GET_LAN_CONFIGURATION_PARAMETERS_RESPONSE  *GetLanConfigurationParametersResponse,\r
+  IN OUT UINT32                                        *GetLanConfigurationParametersSize\r
+  )\r
+{\r
+  return RETURN_UNSUPPORTED;\r
+}\r