|
TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
| struct | EFI_ERASE_BLOCK_TOKEN |
| struct | _EFI_ERASE_BLOCK_PROTOCOL |
Macros | |
| #define | EFI_ERASE_BLOCK_PROTOCOL_GUID |
| #define | EFI_ERASE_BLOCK_PROTOCOL_REVISION ((2<<16) | (60)) |
Typedefs | |
| typedef struct _EFI_ERASE_BLOCK_PROTOCOL | EFI_ERASE_BLOCK_PROTOCOL |
| typedef EFI_STATUS(EFIAPI * | EFI_BLOCK_ERASE) (IN EFI_ERASE_BLOCK_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA LBA, IN OUT EFI_ERASE_BLOCK_TOKEN *Token, IN UINTN Size) |
Variables | |
| EFI_GUID | gEfiEraseBlockProtocolGuid |
This file defines the EFI Erase Block Protocol.
Copyright (c) 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EraseBlock.h.
| #define EFI_ERASE_BLOCK_PROTOCOL_GUID |
Definition at line 15 of file EraseBlock.h.
| #define EFI_ERASE_BLOCK_PROTOCOL_REVISION ((2<<16) | (60)) |
Definition at line 22 of file EraseBlock.h.
| typedef EFI_STATUS(EFIAPI * EFI_BLOCK_ERASE) (IN EFI_ERASE_BLOCK_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA LBA, IN OUT EFI_ERASE_BLOCK_TOKEN *Token, IN UINTN Size) |
Erase a specified number of device blocks.
| [in] | This | Indicates a pointer to the calling context. |
| [in] | MediaId | The media ID that the erase request is for. |
| [in] | LBA | The starting logical block address to be erased. The caller is responsible for erasing only legitimate locations. |
| [in,out] | Token | A pointer to the token associated with the transaction. |
| [in] | Size | The size in bytes to be erased. This must be a multiple of the physical block size of the device. |
| EFI_SUCCESS | The erase request was queued if Event is not NULL. The data was erased correctly to the device if the Event is NULL.to the device. |
| EFI_WRITE_PROTECTED | The device cannot be erased due to write protection. |
| EFI_DEVICE_ERROR | The device reported an error while attempting to perform the erase operation. |
| EFI_INVALID_PARAMETER | The erase request contains LBAs that are not valid. |
| EFI_NO_MEDIA | There is no media in the device. |
| EFI_MEDIA_CHANGED | The MediaId is not for the current media. |
Definition at line 68 of file EraseBlock.h.
| typedef struct _EFI_ERASE_BLOCK_PROTOCOL EFI_ERASE_BLOCK_PROTOCOL |
Definition at line 20 of file EraseBlock.h.