TianoCore EDK2 master
Loading...
Searching...
No Matches
BlockIo2.h
Go to the documentation of this file.
1
14#ifndef _PEI_BLOCK_IO2_H_
15#define _PEI_BLOCK_IO2_H_
16
17#include <Ppi/BlockIo.h>
18#include <Protocol/DevicePath.h>
19
23#define EFI_PEI_RECOVERY_BLOCK_IO2_PPI_GUID \
24 { \
25 0x26cc0fad, 0xbeb3, 0x478a, { 0x91, 0xb2, 0xc, 0x18, 0x8f, 0x72, 0x61, 0x98 } \
26 }
27
32
33#define EFI_PEI_RECOVERY_BLOCK_IO2_PPI_REVISION 0x00010000
34
35typedef struct {
52 BOOLEAN MediaPresent;
56 BOOLEAN ReadOnly;
60 UINT32 BlockSize;
66
86typedef
89 IN EFI_PEI_SERVICES **PeiServices,
91 OUT UINTN *NumberBlockDevices
92 );
93
135typedef
138 IN EFI_PEI_SERVICES **PeiServices,
140 IN UINTN DeviceIndex,
142 );
143
178typedef
180(EFIAPI *EFI_PEI_READ_BLOCKS2)(
181 IN EFI_PEI_SERVICES **PeiServices,
183 IN UINTN DeviceIndex,
184 IN EFI_PEI_LBA StartLBA,
185 IN UINTN BufferSize,
186 OUT VOID *Buffer
187 );
188
198 UINT64 Revision;
203
208
213};
214
215extern EFI_GUID gEfiPeiVirtualBlockIo2PpiGuid;
216
217#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFI_PEI_LBA
Definition: BlockIo.h:41
EFI_STATUS(EFIAPI * EFI_PEI_GET_DEVICE_MEDIA_INFORMATION2)(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_RECOVERY_BLOCK_IO2_PPI *This, IN UINTN DeviceIndex, OUT EFI_PEI_BLOCK_IO2_MEDIA *MediaInfo)
Definition: BlockIo2.h:137
EFI_STATUS(EFIAPI * EFI_PEI_READ_BLOCKS2)(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_RECOVERY_BLOCK_IO2_PPI *This, IN UINTN DeviceIndex, IN EFI_PEI_LBA StartLBA, IN UINTN BufferSize, OUT VOID *Buffer)
Definition: BlockIo2.h:180
EFI_STATUS(EFIAPI * EFI_PEI_GET_NUMBER_BLOCK_DEVICES2)(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_RECOVERY_BLOCK_IO2_PPI *This, OUT UINTN *NumberBlockDevices)
Definition: BlockIo2.h:88
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_PEI_READ_BLOCKS2 ReadBlocks
Definition: BlockIo2.h:212
EFI_PEI_GET_DEVICE_MEDIA_INFORMATION2 GetBlockDeviceMediaInfo
Definition: BlockIo2.h:207
EFI_PEI_GET_NUMBER_BLOCK_DEVICES2 GetNumberOfBlockDevices
Definition: BlockIo2.h:202
EFI_PEI_LBA LastBlock
Definition: BlockIo2.h:64
Definition: Base.h:213