forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdeModulePkg: Upstream SerialDxe from EmbeddedPkg
This Serial driver layers on top of a Serial Port Library instance to produce serial IO protocol. There is also another SerialDxe implementation in CorebootPayloadPkg, but SerialDxe from EmbeddedPkg should be better that also consumes the extended interfaces GetControl/SetControl/SetAttributes in EmbeddedPkg/Include/Library/SerialPortExtLib.h for serial IO protocol. And the extended interfaces GetControl/SetControl/SetAttributes in EmbeddedPkg/Include/Library/SerialPortExtLib.h has been upstream to MdePkg/Include/Library/SerialPortLib.h. Cc: Michael D Kinney <[email protected]> Cc: Liming Gao <[email protected]> Cc: Feng Tian <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <[email protected]> Reviewed-by: Liming Gao <[email protected]> Reviewed-by: Michael Kinney <[email protected]> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18966 6f19259b-4bc3-4df7-8a09-765794883524
- Loading branch information
Showing
5 changed files
with
577 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
## @file | ||
# Serial driver that layers on top of a Serial Port Library instance. | ||
# | ||
# Copyright (c) 2008 - 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 = SerialDxe | ||
FILE_GUID = D3987D4B-971A-435F-8CAF-4967EB627241 | ||
MODULE_TYPE = DXE_DRIVER | ||
VERSION_STRING = 1.0 | ||
|
||
ENTRY_POINT = SerialDxeInitialize | ||
|
||
[Sources.common] | ||
SerialIo.c | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec | ||
|
||
[LibraryClasses] | ||
UefiDriverEntryPoint | ||
UefiBootServicesTableLib | ||
DebugLib | ||
PcdLib | ||
SerialPortLib | ||
|
||
[Protocols] | ||
gEfiSerialIoProtocolGuid ## PRODUCES | ||
gEfiDevicePathProtocolGuid ## PRODUCES | ||
|
||
[Pcd] | ||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate ## CONSUMES | ||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits ## CONSUMES | ||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity ## CONSUMES | ||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits ## CONSUMES | ||
|
||
[Depex] | ||
TRUE |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.