X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=QuarkPlatformPkg%2FInclude%2FLibrary%2FPlatformHelperLib.h;h=cf884e1c852f2078cbadb500b6ab0073641d5d45;hp=a6cc8633cb03558d63a1a0d5c5cedd962f7bdb92;hb=8ac6966704fe2d7bfa62a826da3927f860e0b241;hpb=b303605e1b7e113b4311daf161c6c3289350447b diff --git a/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h b/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h index a6cc8633cb..cf884e1c85 100644 --- a/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h +++ b/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h @@ -1,7 +1,7 @@ /** @file PlatformHelperLib function prototype definitions. -Copyright (c) 2013 Intel Corporation. +Copyright (c) 2013 - 2016 Intel Corporation. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -45,20 +45,6 @@ PlatformFindFvFileRawDataSection ( OUT UINTN *SectionDataSize ); -/** - Read 8bit character from debug stream. - - Block until character is read. - - @return 8bit character read from debug stream. - -**/ -CHAR8 -EFIAPI -PlatformDebugPortGetChar8 ( - VOID - ); - /** Find free spi protect register and write to it to protect a flash region. @@ -106,42 +92,6 @@ PlatformFlashLockPolicy ( IN CONST BOOLEAN PreBootPolicy ); -/** - Erase and Write to platform flash. - - Routine accesses one flash block at a time, each access consists - of an erase followed by a write of FLASH_BLOCK_SIZE. One or both - of DoErase & DoWrite params must be TRUE. - - Limitations:- - CpuWriteAddress must be aligned to FLASH_BLOCK_SIZE. - DataSize must be a multiple of FLASH_BLOCK_SIZE. - - @param Smst If != NULL then InSmm and use to locate - SpiProtocol. - @param CpuWriteAddress Address in CPU memory map of flash region. - @param Data The buffer containing the data to be written. - @param DataSize Amount of data to write. - @param DoErase Earse each block. - @param DoWrite Write to each block. - - @retval EFI_SUCCESS Operation successful. - @retval EFI_NOT_READY Required resources not setup. - @retval EFI_INVALID_PARAMETER Invalid parameter. - @retval Others Unexpected error happened. - -**/ -EFI_STATUS -EFIAPI -PlatformFlashEraseWrite ( - IN VOID *Smst, - IN UINTN CpuWriteAddress, - IN UINT8 *Data, - IN UINTN DataSize, - IN BOOLEAN DoErase, - IN BOOLEAN DoWrite - ); - /** Check if System booted with recovery Boot Stage1 image. @retval TRUE If system booted with recovery Boot Stage1 image.