XenevaOS
Loading...
Searching...
No Matches
EraseBlock.h
Go to the documentation of this file.
1
18#ifndef __EFI_ERASE_BLOCK_PROTOCOL_H__
19#define __EFI_ERASE_BLOCK_PROTOCOL_H__
20
21#define EFI_ERASE_BLOCK_PROTOCOL_GUID \
22 { \
23 0x95a9a93e, 0xa86e, 0x4926, { 0xaa, 0xef, 0x99, 0x18, 0xe7, 0x72, 0xd9, 0x87 } \
24 }
25
27
28#define EFI_ERASE_BLOCK_PROTOCOL_REVISION ((2<<16) | (60))
29
33typedef struct {
34 //
35 // If Event is NULL, then blocking I/O is performed. If Event is not NULL and
36 // non-blocking I/O is supported, then non-blocking I/O is performed, and
37 // Event will be signaled when the erase request is completed.
38 //
40 //
41 // Defines whether the signaled event encountered an error.
42 //
45
73typedef
77 IN UINT32 MediaId,
78 IN EFI_LBA LBA,
81 );
82
89 //
90 // The revision to which the EFI_ERASE_BLOCK_PROTOCOL adheres. All future
91 // revisions must be backwards compatible. If a future version is not
92 // backwards compatible, it is not the same GUID.
93 //
95 //
96 // Returns the erase length granularity as a number of logical blocks. A
97 // value of 1 means the erase granularity is one logical block.
98 //
101};
102
104
105#endif
UINT64 UINTN
Definition ProcessorBind.h:118
#define EFIAPI
Definition ProcessorBind.h:172
unsigned int UINT32
Definition ProcessorBind.h:102
#define IN
Definition Base.h:347
#define OUT
Definition Base.h:352
EFI_GUID gEfiEraseBlockProtocolGuid
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)
Definition EraseBlock.h:75
uint32_t Size
Definition pe.h:1
UINT64 EFI_LBA
Definition UefiBaseType.h:49
RETURN_STATUS EFI_STATUS
Definition UefiBaseType.h:33
VOID * EFI_EVENT
Definition UefiBaseType.h:41
COMPILER_DEPENDENT_UINT64 UINT64
Definition actypes.h:239
Definition EraseBlock.h:33
EFI_STATUS TransactionStatus
Definition EraseBlock.h:43
EFI_EVENT Event
Definition EraseBlock.h:39
Definition Base.h:281
Definition EraseBlock.h:88
EFI_BLOCK_ERASE EraseBlocks
Definition EraseBlock.h:100
UINT64 Revision
Definition EraseBlock.h:94
UINT32 EraseLengthGranularity
Definition EraseBlock.h:99