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
+++ /dev/null
-/** @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
+++ /dev/null
-#/** @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