TianoCore EDK2 master
Loading...
Searching...
No Matches
BlockIo2.h
Go to the documentation of this file.
1
13#ifndef __BLOCK_IO2_H__
14#define __BLOCK_IO2_H__
15
16#include <Protocol/BlockIo.h>
17
18#define EFI_BLOCK_IO2_PROTOCOL_GUID \
19 { \
20 0xa77b2472, 0xe282, 0x4e9f, {0xa2, 0x45, 0xc2, 0xc0, 0xe2, 0x7b, 0xbc, 0xc1} \
21 }
22
24
28typedef struct {
35
41
55typedef
57(EFIAPI *EFI_BLOCK_RESET_EX)(
59 IN BOOLEAN ExtendedVerification
60 );
61
95typedef
97(EFIAPI *EFI_BLOCK_READ_EX)(
99 IN UINT32 MediaId,
100 IN EFI_LBA LBA,
102 IN UINTN BufferSize,
103 OUT VOID *Buffer
104 );
105
137typedef
139(EFIAPI *EFI_BLOCK_WRITE_EX)(
141 IN UINT32 MediaId,
142 IN EFI_LBA LBA,
144 IN UINTN BufferSize,
145 IN VOID *Buffer
146 );
147
170typedef
172(EFIAPI *EFI_BLOCK_FLUSH_EX)(
175 );
176
180// manner.
188
189 EFI_BLOCK_RESET_EX Reset;
190 EFI_BLOCK_READ_EX ReadBlocksEx;
191 EFI_BLOCK_WRITE_EX WriteBlocksEx;
192 EFI_BLOCK_FLUSH_EX FlushBlocksEx;
193};
194
195extern EFI_GUID gEfiBlockIo2ProtocolGuid;
196
197#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_BLOCK_RESET_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Definition: BlockIo2.h:57
EFI_STATUS(EFIAPI * EFI_BLOCK_READ_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA LBA, IN OUT EFI_BLOCK_IO2_TOKEN *Token, IN UINTN BufferSize, OUT VOID *Buffer)
Definition: BlockIo2.h:97
EFI_STATUS(EFIAPI * EFI_BLOCK_FLUSH_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN OUT EFI_BLOCK_IO2_TOKEN *Token)
Definition: BlockIo2.h:172
EFI_STATUS(EFIAPI * EFI_BLOCK_WRITE_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA LBA, IN OUT EFI_BLOCK_IO2_TOKEN *Token, IN UINTN BufferSize, IN VOID *Buffer)
Definition: BlockIo2.h:139
UINT64 EFI_LBA
Definition: UefiBaseType.h:45
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
EFI_BLOCK_IO_MEDIA * Media
Definition: BlockIo2.h:187
EFI_EVENT Event
Definition: BlockIo2.h:34
EFI_STATUS TransactionStatus
Definition: BlockIo2.h:39
Definition: Base.h:213