13 #ifndef __BLOCK_IO2_H__ 14 #define __BLOCK_IO2_H__ 20 #define EFI_BLOCK_IO2_PROTOCOL_GUID \ 22 0xa77b2472, 0xe282, 0x4e9f, {0xa2, 0x45, 0xc2, 0xc0, 0xe2, 0x7b, 0xbc, 0xc1} \ EFI_BLOCK_IO_MEDIA * Media
A pointer to the EFI_BLOCK_IO_MEDIA data for this device.
EFI_STATUS(EFIAPI * EFI_BLOCK_RESET_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Reset the block device hardware.
The Block I/O2 protocol defines an extension to the Block I/O protocol which enables the ability to r...
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)
Read BufferSize bytes from Lba into Buffer.
FILE_LICENCE(BSD2_PATENT)
128 bit buffer containing a unique identifier value.
VOID * EFI_EVENT
Handle to an event structure.
UINT16_t BufferSize
Buffer size.
EFI_EVENT Event
If Event is NULL, then blocking I/O is performed.If Event is not NULL and non-blocking I/O is support...
EFI_STATUS TransactionStatus
Defines whether or not the signaled event encountered an error.
UINT64 EFI_LBA
Logical block address.
EFI_GUID gEfiBlockIo2ProtocolGuid
SEGOFF16_t Buffer
Buffer address.
UINT64 UINTN
Unsigned value of native width.
EFI_BLOCK_WRITE_EX WriteBlocksEx
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)
Write BufferSize bytes from Lba into Buffer.
#define VOID
Undeclared type.
EFI_BLOCK_READ_EX ReadBlocksEx
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
Block IO protocol as defined in the UEFI 2.0 specification.
EFI_BLOCK_FLUSH_EX FlushBlocksEx
The struct of Block IO2 Token.
EFI_STATUS(EFIAPI * EFI_BLOCK_FLUSH_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN OUT EFI_BLOCK_IO2_TOKEN *Token)
Flush the Block Device.