diff options
author | Ronald Cron <ronald.cron@arm.com> | 2014-10-27 10:44:30 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2014-10-27 10:44:30 +0000 |
commit | 9db0a779461043b6d81a6e7d24deba2cfe3e31e2 (patch) | |
tree | c5c0f6cd318eb0aeb6a777fe55cc94b153ada087 /EmbeddedPkg/Library | |
parent | daefd574f9d6c62df9149197af48219dc7cabf59 (diff) | |
download | edk2-platforms-9db0a779461043b6d81a6e7d24deba2cfe3e31e2.tar.xz |
EmbeddedPkg: Remove unused TemplateSerialPortLib
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
Diffstat (limited to 'EmbeddedPkg/Library')
-rw-r--r-- | EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c | 100 | ||||
-rw-r--r-- | EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf | 36 |
2 files changed, 0 insertions, 136 deletions
diff --git a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c b/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c deleted file mode 100644 index c3f8bd1298..0000000000 --- a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c +++ /dev/null @@ -1,100 +0,0 @@ -/** @file
- Serial I/O Port library functions with no library constructor/destructor
-
- Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
- Copyright (c) 2012, ARM Ltd. All rights reserved.
-
- 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 <Base.h>
-
-
-#include <Library/SerialPortLib.h>
-
-/**
-
- Programmed hardware of Serial port.
-
- @return Always return EFI_UNSUPPORTED.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortInitialize (
- VOID
- )
-{
- return RETURN_UNSUPPORTED;
-}
-
-/**
- Write data to serial device.
-
- @param Buffer Point of data buffer which need to be written.
- @param NumberOfBytes Number of output bytes which are cached in Buffer.
-
- @retval 0 Write data failed.
- @retval !0 Actual number of bytes written to serial device.
-
-**/
-UINTN
-EFIAPI
-SerialPortWrite (
- IN UINT8 *Buffer,
- IN UINTN NumberOfBytes
- )
-{
- return 0;
-}
-
-
-/**
- Read data from serial device and save the data in buffer.
-
- @param Buffer Point of data buffer which need to be written.
- @param NumberOfBytes Number of output bytes which are cached in Buffer.
-
- @retval 0 Read data failed.
- @retval !0 Actual number of bytes read from serial device.
-
-**/
-UINTN
-EFIAPI
-SerialPortRead (
- OUT UINT8 *Buffer,
- IN UINTN NumberOfBytes
- )
-{
- return 0;
-}
-
-
-
-/**
- Poll the serial device to see if there is any data waiting.
-
- If there is data waiting to be read from the serial port, then return
- TRUE. If there is no data waiting to be read from the serial port, then
- return FALSE.
-
- @retval TRUE Data is waiting to be read.
- @retval FALSE There is no data waiting to be read.
-
-**/
-BOOLEAN
-EFIAPI
-SerialPortPoll (
- VOID
- )
-{
- return 0;
-}
-
diff --git a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf b/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf deleted file mode 100644 index f1ece19624..0000000000 --- a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf +++ /dev/null @@ -1,36 +0,0 @@ -#/** @file
-# Template for Serial Port Library for UEFI drivers
-#
-# Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
-# Copyright (c) 2012, ARM Ltd. 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 = TemplateSerialPortLib
- FILE_GUID = A9133571-AD4B-4457-94A8-A9CC2CE7574F
- MODULE_TYPE = BASE
- VERSION_STRING = 1.0
- LIBRARY_CLASS = SerialPortLib
-
-
-#
-# VALID_ARCHITECTURES = ARM IA32 X64 IPF EBC
-#
-
-[Sources.common]
- TemplateSerialPortLib.c
-
-
-[Packages]
- MdePkg/MdePkg.dec
-
|