-/**\r
- Erase and Write to platform flash.\r
-\r
- Routine accesses one flash block at a time, each access consists\r
- of an erase followed by a write of FLASH_BLOCK_SIZE. One or both\r
- of DoErase & DoWrite params must be TRUE.\r
-\r
- Limitations:-\r
- CpuWriteAddress must be aligned to FLASH_BLOCK_SIZE.\r
- DataSize must be a multiple of FLASH_BLOCK_SIZE.\r
-\r
- @param Smst If != NULL then InSmm and use to locate\r
- SpiProtocol.\r
- @param CpuWriteAddress Address in CPU memory map of flash region.\r
- @param Data The buffer containing the data to be written.\r
- @param DataSize Amount of data to write.\r
- @param DoErase Earse each block.\r
- @param DoWrite Write to each block.\r
-\r
- @retval EFI_SUCCESS Operation successful.\r
- @retval EFI_NOT_READY Required resources not setup.\r
- @retval EFI_INVALID_PARAMETER Invalid parameter.\r
- @retval Others Unexpected error happened.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PlatformFlashEraseWrite (\r
- IN VOID *Smst,\r
- IN UINTN CpuWriteAddress,\r
- IN UINT8 *Data,\r
- IN UINTN DataSize,\r
- IN BOOLEAN DoErase,\r
- IN BOOLEAN DoWrite\r
- );\r
-\r