STATIC EFI_STATUS InternalEraseBlock ( IN EFI_PHYSICAL_ADDRESS BaseAddress ) /*++ Routine Description: Erase the whole block. Arguments: BaseAddress - Base address of the block to be erased. Returns: EFI_SUCCESS - The command completed successfully. Other - Device error or wirte-locked, operation failed. --*/ { EFI_STATUS Status; UINTN NumBytes; NumBytes = BLOCK_SIZE; Status = SpiFlashBlockErase ((UINTN) BaseAddress, &NumBytes); return Status; }
/** Routine Description: Erase the whole block. Arguments: BaseAddress - Base address of the block to be erased. Returns: EFI_SUCCESS - The command completed successfully. Other - Device error or wirte-locked, operation failed. **/ EFI_STATUS InternalEraseBlock ( IN EFI_PHYSICAL_ADDRESS BaseAddress ) { EFI_STATUS Status; UINTN NumBytes; NumBytes = BLOCK_SIZE; Status = SpiFlashBlockErase ((UINTN) BaseAddress, &NumBytes); return Status; }