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/UnixFlashMapPei/FlashMap.c | 91 -------------------------------------- 1 file changed, 91 deletions(-) delete mode 100644 UnixPkg/UnixFlashMapPei/FlashMap.c (limited to 'UnixPkg/UnixFlashMapPei/FlashMap.c') diff --git a/UnixPkg/UnixFlashMapPei/FlashMap.c b/UnixPkg/UnixFlashMapPei/FlashMap.c deleted file mode 100644 index 786fdd0bdc..0000000000 --- a/UnixPkg/UnixFlashMapPei/FlashMap.c +++ /dev/null @@ -1,91 +0,0 @@ -/*++ - -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. - -Module Name: - - FlashMap.c - -Abstract: - - PEIM to build GUIDed HOBs for platform specific flash map - ---*/ - - -#include "PiPei.h" - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -EFI_STATUS -EFIAPI -PeimInitializeFlashMap ( - IN EFI_PEI_FILE_HANDLE FileHandle, - IN CONST EFI_PEI_SERVICES **PeiServices - ) -/*++ - -Routine Description: - Build GUIDed HOBs for platform specific flash map - -Arguments: - FfsHeader - A pointer to the EFI_FFS_FILE_HEADER structure. - PeiServices - General purpose services available to every PEIM. - -Returns: - EFI_STATUS - ---*/ -// TODO: EFI_SUCCESS - add return value to function comment -{ - EFI_STATUS Status; - UNIX_FWH_PPI *UnixFwhPpi; - EFI_PEI_PPI_DESCRIPTOR *PpiDescriptor; - EFI_PHYSICAL_ADDRESS FdBase; - EFI_PHYSICAL_ADDRESS FdFixUp; - UINT64 FdSize; - - DEBUG ((EFI_D_ERROR, "UnixPkg Flash Map PEIM Loaded\n")); - - // - // Get the Fwh Information PPI - // - Status = PeiServicesLocatePpi ( - &gUnixFwhPpiGuid, // GUID - 0, // INSTANCE - &PpiDescriptor, // EFI_PEI_PPI_DESCRIPTOR - (VOID **)&UnixFwhPpi // PPI - ); - ASSERT_EFI_ERROR (Status); - - // - // Assume that FD0 contains the Flash map. - // - Status = UnixFwhPpi->UnixFwh (0, &FdBase, &FdSize, &FdFixUp); - if (EFI_ERROR (Status)) { - return Status; - } - - PcdSet64 (PcdFlashNvStorageVariableBase64, PcdGet64 (PcdUnixFlashNvStorageVariableBase) + FdFixUp); - PcdSet64 (PcdFlashNvStorageFtwWorkingBase64, PcdGet64 (PcdUnixFlashNvStorageFtwWorkingBase) + FdFixUp); - PcdSet64 (PcdFlashNvStorageFtwSpareBase64, PcdGet64 (PcdUnixFlashNvStorageFtwSpareBase) + FdFixUp); - - return EFI_SUCCESS; -} -- cgit v1.2.3