]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg: Remove unused TemplateSerialPortLib
authorRonald Cron <ronald.cron@arm.com>
Mon, 27 Oct 2014 10:44:30 +0000 (10:44 +0000)
committeroliviermartin <oliviermartin@Edk2>
Mon, 27 Oct 2014 10:44:30 +0000 (10:44 +0000)
MdePkg/Library/BaseSerialPortLibNull can be used instead as a template.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16245 6f19259b-4bc3-4df7-8a09-765794883524

EmbeddedPkg/EmbeddedPkg.dsc
EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c [deleted file]
EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf [deleted file]

index 3f737b834921a0040b9cb7575aecdb0e5c77d2d7..b13693c5e2df9a87a0d6de531cc08106cff9005f 100644 (file)
@@ -69,7 +69,7 @@
   CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
   PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf\r
 \r
-  SerialPortLib|EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf\r
+  SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf\r
   SerialPortExtLib|EmbeddedPkg/Library/TemplateSerialPortExtLib/TemplateSerialPortExtLib.inf\r
   RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf\r
   EfiResetSystemLib|EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf\r
   EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf\r
   EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf\r
   EmbeddedPkg/Library/PrePiLib/PrePiLib.inf\r
-  EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf\r
+  MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf\r
   EmbeddedPkg/Library/SerialPortExtLibNull/SerialPortExtLibNull.inf\r
   EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf\r
   EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf\r
diff --git a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c b/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c
deleted file mode 100644 (file)
index c3f8bd1..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
-  Serial I/O Port library functions with no library constructor/destructor\r
-\r
-  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  Copyright (c) 2012, ARM Ltd. All rights reserved.\r
-\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include <Base.h>\r
-\r
-\r
-#include <Library/SerialPortLib.h>\r
-\r
-/**\r
-\r
-  Programmed hardware of Serial port.\r
-\r
-  @return    Always return EFI_UNSUPPORTED.\r
-\r
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-SerialPortInitialize (\r
-  VOID\r
-  )\r
-{\r
-  return RETURN_UNSUPPORTED;\r
-}\r
-\r
-/**\r
-  Write data to serial device.\r
-\r
-  @param  Buffer           Point of data buffer which need to be written.\r
-  @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
-\r
-  @retval 0                Write data failed.\r
-  @retval !0               Actual number of bytes written to serial device.\r
-\r
-**/\r
-UINTN\r
-EFIAPI\r
-SerialPortWrite (\r
-  IN UINT8     *Buffer,\r
-  IN UINTN     NumberOfBytes\r
-  )\r
-{\r
-  return 0;\r
-}\r
-\r
-\r
-/**\r
-  Read data from serial device and save the data in buffer.\r
-\r
-  @param  Buffer           Point of data buffer which need to be written.\r
-  @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
-\r
-  @retval 0                Read data failed.\r
-  @retval !0               Actual number of bytes read from serial device.\r
-\r
-**/\r
-UINTN\r
-EFIAPI\r
-SerialPortRead (\r
-  OUT UINT8     *Buffer,\r
-  IN  UINTN     NumberOfBytes\r
-  )\r
-{\r
-  return 0;\r
-}\r
-\r
-\r
-\r
-/**\r
-  Poll the serial device to see if there is any data waiting.\r
-\r
-  If there is data waiting to be read from the serial port, then return\r
-  TRUE.  If there is no data waiting to be read from the serial port, then\r
-  return FALSE.\r
-\r
-  @retval TRUE             Data is waiting to be read.\r
-  @retval FALSE            There is no data waiting to be read.\r
-\r
-**/\r
-BOOLEAN\r
-EFIAPI\r
-SerialPortPoll (\r
-  VOID\r
-  )\r
-{\r
-  return 0;\r
-}\r
-\r
diff --git a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf b/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf
deleted file mode 100644 (file)
index f1ece19..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#/** @file\r
-# Template for Serial Port Library for UEFI drivers\r
-#\r
-# Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
-# Copyright (c) 2012, ARM Ltd. All rights reserved.<BR>\r
-#\r
-#  This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution. The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#\r
-#**/\r
-\r
-[Defines]\r
-  INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = TemplateSerialPortLib\r
-  FILE_GUID                      = A9133571-AD4B-4457-94A8-A9CC2CE7574F\r
-  MODULE_TYPE                    = BASE\r
-  VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = SerialPortLib\r
-\r
-\r
-#\r
-#  VALID_ARCHITECTURES           = ARM IA32 X64 IPF EBC\r
-#\r
-\r
-[Sources.common]\r
-  TemplateSerialPortLib.c\r
-\r
-\r
-[Packages]\r
-  MdePkg/MdePkg.dec\r
-\r