]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove extra #Include
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 10 Jul 2009 23:55:52 +0000 (23:55 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 10 Jul 2009 23:55:52 +0000 (23:55 +0000)
Remove platform specific capsule action from generic BdsDxe

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8891 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Include/Library/PlatformBdsLib.h
IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c

index dee88a222bdbe4353cfce5b998103df0b8f13f9c..9a5f6941b7ed998893bbd283bac5822b75547ef9 100644 (file)
@@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __PLATFORM_BDS_LIB_H_\r
 #define __PLATFORM_BDS_LIB_H_\r
 \r
-#include <Protocol/Bds.h>\r
 #include <Protocol/GenericMemoryTest.h>\r
 #include <Library/GenericBdsLib.h>\r
 \r
@@ -77,7 +76,7 @@ PlatformBdsBootFail (
 VOID\r
 EFIAPI\r
 PlatformBdsBootSuccess (\r
-  IN  BDS_COMMON_OPTION *Option\r
+  IN  BDS_COMMON_OPTION  *Option\r
   );\r
 \r
 \r
index 904a775493a7b61ad8e4fe21498ec858885ade0e..3a998c6df6b947f9911305cc8bab267ec21d3e1c 100644 (file)
@@ -13,55 +13,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 #include "Bds.h"\r
 \r
-/**\r
-  This function locks the block \r
-\r
-  @param CpuIo           A instance of EFI_CPU_IO_PROTOCOL. \r
-  @param Base            The base address flash region to be locked.\r
-\r
-**/\r
-VOID\r
-BdsLockFv (\r
-  IN EFI_CPU_IO_PROTOCOL          *CpuIo,\r
-  IN EFI_PHYSICAL_ADDRESS         Base\r
-  )\r
-{\r
-  EFI_FV_BLOCK_MAP_ENTRY      *BlockMap;\r
-  EFI_FIRMWARE_VOLUME_HEADER  *FvHeader;\r
-  EFI_PHYSICAL_ADDRESS        BaseAddress;\r
-  UINT8                       Data;\r
-  UINT32                      BlockLength;\r
-  UINTN                       Index;\r
-\r
-  BaseAddress = Base - 0x400000 + 2;\r
-  FvHeader    = (EFI_FIRMWARE_VOLUME_HEADER *) ((UINTN) (Base));\r
-  BlockMap    = &(FvHeader->BlockMap[0]);\r
-\r
-  while ((BlockMap->NumBlocks != 0) && (BlockMap->Length != 0)) {\r
-    BlockLength = BlockMap->Length;\r
-    for (Index = 0; Index < BlockMap->NumBlocks; Index++) {\r
-      CpuIo->Mem.Read (\r
-                  CpuIo,\r
-                  EfiCpuIoWidthUint8,\r
-                  BaseAddress,\r
-                  1,\r
-                  &Data\r
-                  );\r
-      Data = (UINT8) (Data | 0x3);\r
-      CpuIo->Mem.Write (\r
-                  CpuIo,\r
-                  EfiCpuIoWidthUint8,\r
-                  BaseAddress,\r
-                  1,\r
-                  &Data\r
-                  );\r
-      BaseAddress += BlockLength;\r
-    }\r
-\r
-    BlockMap++;\r
-  }\r
-}\r
-\r
 /**\r
 \r
   This routine is called to see if there are any capsules we need to process.\r