From b19cfa69e7c2da5bb1a976ef0ca5c9d21a287695 Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 30 May 2007 07:22:41 +0000 Subject: Add emulated serialIo device driver for EdkUnixPkg git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2605 6f19259b-4bc3-4df7-8a09-765794883524 --- .../UnixThunk/Bus/UnixBusDriver/UnixBusDriver.c | 10 ++--- .../UnixThunk/Bus/UnixBusDriver/UnixBusDriver.msa | 52 ++++++++++++---------- 2 files changed, 34 insertions(+), 28 deletions(-) (limited to 'EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver') diff --git a/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.c b/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.c index efa66abeeb..b8611f66d2 100644 --- a/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.c +++ b/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.c @@ -122,6 +122,7 @@ static UNIX_PCD_ENTRY mPcdEnvironment[] = { {PcdToken(PcdUnixConsole), &gEfiUnixConsoleGuid}, {PcdToken(PcdUnixUga), &gEfiUnixUgaGuid}, {PcdToken(PcdUnixFileSystem), &gEfiUnixFileSystemGuid}, + {PcdToken(PcdUnixSerialPort), &gEfiUnixSerialPortGuid}, {PcdToken(PcdUnixVirtualDisk), &gEfiUnixVirtualDisksGuid}, {PcdToken(PcdUnixPhysicalDisk), &gEfiUnixPhysicalDisksGuid}, {PcdToken(PcdUnixCpuModel), &gEfiUnixCPUModelGuid}, @@ -293,10 +294,10 @@ Returns: { EFI_STATUS Status; EFI_STATUS InstallStatus; - EFI_UNIX_THUNK_PROTOCOL *UnixThunk; + EFI_UNIX_THUNK_PROTOCOL *UnixThunk; EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath; - UNIX_BUS_DEVICE *UnixBusDevice; - UNIX_IO_DEVICE *UnixDevice; + UNIX_BUS_DEVICE *UnixBusDevice; + UNIX_IO_DEVICE *UnixDevice; UINTN Index; CHAR16 *StartString; CHAR16 *SubString; @@ -428,7 +429,6 @@ Returns: } if (CreateDevice) { - // // Allocate instance structure, and fill in parent information. // @@ -441,7 +441,7 @@ Returns: UnixDevice->ControllerHandle = ControllerHandle; UnixDevice->ParentDevicePath = ParentDevicePath; - UnixDevice->UnixIo.UnixThunk = UnixThunk; + UnixDevice->UnixIo.UnixThunk = UnixThunk; // // Plus 2 to account for the NULL at the end of the Unicode string diff --git a/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.msa b/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.msa index b64a8216de..6422c062f5 100644 --- a/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.msa +++ b/EdkUnixPkg/Dxe/UnixThunk/Bus/UnixBusDriver/UnixBusDriver.msa @@ -1,22 +1,20 @@ - + UnixBusDriver UEFI_DRIVER f320d656-8985-11db-90e0-0040d02b1835 1.0 Unix Bus driver - - This following section documents the envirnoment variables for the Win NT - build. These variables are used to define the (virtual) hardware - configuration of the NT environment - + This following section documents the envirnoment variables for the Win NT + build. These variables are used to define the (virtual) hardware + configuration of the NT environment Copyright (c) 2006, Intel Corporation - 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, + 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. FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 @@ -106,6 +104,9 @@ gEfiUnixCPUSpeedGuid + + gEfiUnixSerialPortGuid + EFI_SPECIFICATION_VERSION 0x00020000 @@ -119,41 +120,41 @@ PcdUnixConsole gEfiEdkUnixPkgTokenSpaceGuid - This PCD declares the title string of the text console window. - such as "My EFI Console". + This PCD declares the title string of the text console window. + such as "My EFI Console". The item type of this PCD can only be "DYNAMIC". PcdUnixUga gEfiEdkUnixPkgTokenSpaceGuid - This PCD declares the resolutions for the UGA windows. + This PCD declares the resolutions for the UGA windows. The item type of this PCD can only be "DYNAMIC". PcdUnixFileSystem gEfiEdkUnixPkgTokenSpaceGuid - This PCD defines the unix directory who will be mounted as - harddisk in simulator. + This PCD defines the unix directory who will be mounted as + harddisk in simulator. The item type of this PCD can only be "DYNAMIC". PcdUnixVirtualDisk gEfiEdkUnixPkgTokenSpaceGuid - This PCD defines the devices which use a file to emulate a hard disk or - removable media device + This PCD defines the devices which use a file to emulate a hard disk or + removable media device The item type if this PCD can only be "DYNAMIC". PcdUnixPhysicalDisk gEfiEdkUnixPkgTokenSpaceGuid - This PCD defines physical disk which will be simualted as a - harddisk in simulator. + This PCD defines physical disk which will be simualted as a + harddisk in simulator. The item type of this PCD can only be "DYNAMIC". PcdUnixCpuModel gEfiEdkUnixPkgTokenSpaceGuid - This PCD defines simulated CPU model string. + This PCD defines simulated CPU model string. The item type of this PCD can only be "DYNAMIC". @@ -164,8 +165,13 @@ PcdUnixMemorySize gEfiEdkUnixPkgTokenSpaceGuid - This PCD defines the size of simulated memory size. + This PCD defines the size of simulated memory size. The item type of this PCD can only be "DYNAMIC". + + PcdUnixSerialPort + gEfiEdkUnixPkgTokenSpaceGuid + Simulation serial IO port + - + \ No newline at end of file -- cgit v1.2.3