call back this email.
Sorry

Thanks,
  Amos


-----Original Message-----
From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Daocheng 
Bu
Sent: Friday, December 18, 2015 12:40 PM
To: edk2-devel@lists.01.org
Cc: Yao, Jiewen <jiewen....@intel.com>
Subject: [edk2] [Patch] MdeModulePkg: Add BaseIpmiLibNull Library Class.

Add BaseIpmiLibNull Library Class for BMC-Less platform.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daocheng Bu <daocheng...@intel.com>
CC: Jiewen Yao <jiewen....@intel.com>
---
 .../Library/BaseIpmiLibNull/BaseIpmiLibNull.c      | 47 ++++++++++++++++++++++
 .../Library/BaseIpmiLibNull/BaseIpmiLibNull.inf    | 40 ++++++++++++++++++
 2 files changed, 87 insertions(+)
 create mode 100644 MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.c
 create mode 100644 MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.inf

diff --git a/MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.c 
b/MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.c
new file mode 100644
index 0000000..05f5a91
--- /dev/null
+++ b/MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.c
@@ -0,0 +1,47 @@
+/** @file
+  A emptry template implementation of Ipmi Library.
+
+  Copyright (c) 2011 - 2015, Intel Corporation. All rights 
+ reserved.<BR>  This program and the accompanying materials  are 
+ licensed and made available under the terms and conditions of the BSD 
+ License  which accompanies this distribution.  The full text of the 
+ license may be found at  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,  
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <Library/BaseLib.h>
+#include <Library/UefiBootServicesTableLib.h>
+#include <Library/DxeServicesLib.h>
+#include <Library/DebugLib.h>
+#include <Library/IpmiLib.h>
+
+
+/**
+  This service enables submitting commands via Ipmi.
+
+  @param[in]         NetFunction       Net function of the command.
+  @param[in]         Command           IPMI Command.
+  @param[in]         CommandData       Command Data.
+  @param[in]         CommandDataSize   Size of Command Data.
+  @param[out]        ResponseData      Command Response Data.
+  @param[in out]     ResponseDataSize  Size of Command Response Data.
+
+  @retval EFI_SUCCESS         The command byte stream was successfully sent to 
the device and a response was successfully received.
+  @retval EFI_NOT_FOUND       The command was not successfully sent to the 
device or a response was not successfully received from the device.
+**/
+EFI_STATUS
+EFIAPI
+IpmiSubmitCommand (
+  IN     UINT8     NetFunction,
+  IN     UINT8     Command,
+  IN     UINT8     *CommandData,
+  IN     UINT8     CommandDataSize,
+     OUT UINT8     *ResponseData,
+  IN OUT UINT8     *ResponseDataSize
+  )
+{
+  return 0;
+}
\ No newline at end of file
diff --git a/MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.inf 
b/MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.inf
new file mode 100644
index 0000000..b74be3c
--- /dev/null
+++ b/MdeModulePkg/Library/BaseIpmiLibNull/BaseIpmiLibNull.inf
@@ -0,0 +1,40 @@
+## @file
+#  Null Instance of IPMI Library.
+#
+#  Copyright (c) 2009 - 2015, Intel Corporation. All rights 
+reserved.<BR> # #  This program and the accompanying materials #  are 
+licensed and made available under the terms and conditions of the BSD 
+License #  which accompanies this distribution. The full text of the 
+license may be found at #  http://opensource.org/licenses/bsd-license.php.
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" 
+BASIS, #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR 
IMPLIED.
+#
+#
+##
+
+[Defines]
+  INF_VERSION                   = 0x00010005
+  BASE_NAME                     = BaseIpmiLibNull
+  FILE_GUID                     = 46805D61-0BB8-4680-A9BE-C96C751AB5A4
+  MODULE_TYPE                   = BASE
+  VERSION_STRING                = 1.0
+  LIBRARY_CLASS                 = IpmiLib
+
+#
+#  VALID_ARCHITECTURES          = IA32 X64
+#
+
+[Sources]
+  BaseIpmiLibNull.c
+
+
+[Packages]
+  MdePkg/MdePkg.dec
+  MdeModulePkg/MdeModulePkg.dec
+
+[LibraryClasses]
+  BaseLib
+  UefiBootServicesTableLib
+  DxeServicesLib
+  DebugLib
\ No newline at end of file
--
2.5.1.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to