From 5d71a30480bdf7081f72485d6bf48361c244c4d7 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 29 Jul 2013 21:09:55 +0000 Subject: UnixPkg: Remove UnixPkg files (It is replaced by EmulatorPkg) For now the UnixPkg/Deprecated.txt file is retained to indicate that EmulatorPkg should be used instead. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14518 6f19259b-4bc3-4df7-8a09-765794883524 --- UnixPkg/UnixThunkDxe/UnixThunk.c | 103 ------------------------------------- UnixPkg/UnixThunkDxe/UnixThunk.h | 30 ----------- UnixPkg/UnixThunkDxe/UnixThunk.inf | 60 --------------------- 3 files changed, 193 deletions(-) delete mode 100644 UnixPkg/UnixThunkDxe/UnixThunk.c delete mode 100644 UnixPkg/UnixThunkDxe/UnixThunk.h delete mode 100644 UnixPkg/UnixThunkDxe/UnixThunk.inf (limited to 'UnixPkg/UnixThunkDxe') diff --git a/UnixPkg/UnixThunkDxe/UnixThunk.c b/UnixPkg/UnixThunkDxe/UnixThunk.c deleted file mode 100644 index d9a857d..0000000 --- a/UnixPkg/UnixThunkDxe/UnixThunk.c +++ /dev/null @@ -1,103 +0,0 @@ -/*++ - -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, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - - UnixThunk.c - -Abstract: - - Produce UnixThunk protocol and it's associated device path and controller - state protocols. UnixThunk is to the emulation environment as - PCI_ROOT_BRIGE is to real hardware. The UnixBusDriver is the child of this - driver. - - Since we are a root hardware abstraction we do not install a Driver Binding - protocol on this handle. This driver can only support one one UnixThunk protocol - in the system, since the device path is hard coded. - ---*/ -#include "PiDxe.h" -#include "UnixDxe.h" -#include "UnixThunk.h" -#include - -#include -#include -#include -#include -#include -#include -#include - -// -// WinNtThunk Device Path Protocol Instance -// -UNIX_THUNK_DEVICE_PATH mUnixThunkDevicePath = { - { - { - HARDWARE_DEVICE_PATH, - HW_VENDOR_DP, - { - (UINT8) (sizeof (VENDOR_DEVICE_PATH)), - (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) - } - }, - EFI_UNIX_THUNK_PROTOCOL_GUID, - }, - { - END_DEVICE_PATH_TYPE, - END_ENTIRE_DEVICE_PATH_SUBTYPE, - { - END_DEVICE_PATH_LENGTH, - 0 - } - } -}; - - -EFI_STATUS -EFIAPI -InitializeUnixThunk ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ) -/*++ - -Routine Description: - Install UnixThunk Protocol and it's associated Device Path protocol - -Arguments: - (Standard EFI Image entry - EFI_IMAGE_ENTRY_POINT) - -Returns: - EFI_SUCEESS - UnixThunk protocol is added or error status from - gBS->InstallMultiProtocolInterfaces(). - ---*/ -// TODO: ImageHandle - add argument and description to function comment -// TODO: SystemTable - add argument and description to function comment -{ - EFI_STATUS Status; - EFI_HANDLE ControllerHandle; - - ControllerHandle = NULL; - Status = gBS->InstallMultipleProtocolInterfaces ( - &ControllerHandle, - &gEfiUnixThunkProtocolGuid, - gUnix, - &gEfiDevicePathProtocolGuid, - &mUnixThunkDevicePath, - NULL - ); - - return Status; -} diff --git a/UnixPkg/UnixThunkDxe/UnixThunk.h b/UnixPkg/UnixThunkDxe/UnixThunk.h deleted file mode 100644 index c41f868..0000000 --- a/UnixPkg/UnixThunkDxe/UnixThunk.h +++ /dev/null @@ -1,30 +0,0 @@ -/*++ - -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, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - - UnixThunk.h - -Abstract: - ---*/ - -// TODO: add protective #ifndef - - -// -// WinNtThunk Device Path Protocol Instance Type -// -typedef struct { - VENDOR_DEVICE_PATH Vendor; - EFI_DEVICE_PATH_PROTOCOL EndDevicePath; -} UNIX_THUNK_DEVICE_PATH; - diff --git a/UnixPkg/UnixThunkDxe/UnixThunk.inf b/UnixPkg/UnixThunkDxe/UnixThunk.inf deleted file mode 100644 index 67decf5..0000000 --- a/UnixPkg/UnixThunkDxe/UnixThunk.inf +++ /dev/null @@ -1,60 +0,0 @@ -## @file -# A DXE driver to produce EFI_UNIX_THUNK_PROTOCOL -# -# EFI_UNIX_THUNK_PROTOCOL is a table of pointers to various Unix APIs used by various drivers to accomplish certain task in a Unix emulator. -# Copyright (c) 2006 - 2010, 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, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# -# -## - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = UnixThunk - FILE_GUID = f38610fc-8985-11db-82d4-0040d02b1835 - MODULE_TYPE = DXE_DRIVER - VERSION_STRING = 1.0 - - ENTRY_POINT = InitializeUnixThunk - -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC -# - -[Sources] - UnixThunk.c - UnixThunk.h - - -[Packages] - MdePkg/MdePkg.dec - UnixPkg/UnixPkg.dec - - -[LibraryClasses] - UefiBootServicesTableLib - MemoryAllocationLib - UnixLib - UefiDriverEntryPoint - UefiLib - DebugLib - DevicePathLib - - - -[Protocols] - gEfiDevicePathProtocolGuid # PROTOCOL ALWAYS_PRODUCED - gEfiUnixThunkProtocolGuid # PROTOCOL ALWAYS_PRODUCED - - -[Depex] - TRUE - -- cgit v1.1