13#ifndef __BLOCK_IO2_H__
14#define __BLOCK_IO2_H__
21#define EFI_BLOCK_IO2_PROTOCOL_GUID \
23 0xa77b2472, 0xe282, 0x4e9f, {0xa2, 0x45, 0xc2, 0xc0, 0xe2, 0x7b, 0xbc, 0xc1} \
unsigned char BOOLEAN
Logical Boolean.
UINT64 UINTN
Unsigned value of native width.
unsigned int UINT32
4-byte unsigned value.
#define VOID
Undeclared type.
EFI_GUID gEfiBlockIo2ProtocolGuid
EFI_STATUS(EFIAPI * EFI_BLOCK_RESET_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Reset the block device hardware.
struct _EFI_BLOCK_IO2_PROTOCOL EFI_BLOCK_IO2_PROTOCOL
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.
EFI_STATUS(EFIAPI * EFI_BLOCK_FLUSH_EX)(IN EFI_BLOCK_IO2_PROTOCOL *This, IN OUT EFI_BLOCK_IO2_TOKEN *Token)
Flush the Block Device.
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.
Block IO protocol as defined in the UEFI 2.0 specification.
UINT64 EFI_LBA
Logical block address.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
UINT16_t BufferSize
Buffer size.
SEGOFF16_t Buffer
Buffer address.
The struct of Block IO2 Token.
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.
The Block I/O2 protocol defines an extension to the Block I/O protocol which enables the ability to r...
EFI_BLOCK_WRITE_EX WriteBlocksEx
EFI_BLOCK_READ_EX ReadBlocksEx
EFI_BLOCK_FLUSH_EX FlushBlocksEx
EFI_BLOCK_IO_MEDIA * Media
A pointer to the EFI_BLOCK_IO_MEDIA data for this device.