12 #ifndef __BLOCK_IO_H__ 13 #define __BLOCK_IO_H__ 17 #define EFI_BLOCK_IO_PROTOCOL_GUID \ 19 0x964e5b21, 0x6459, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \ 27 #define BLOCK_IO_PROTOCOL EFI_BLOCK_IO_PROTOCOL_GUID 204 #define EFI_BLOCK_IO_PROTOCOL_REVISION 0x00010000 205 #define EFI_BLOCK_IO_PROTOCOL_REVISION2 0x00020001 206 #define EFI_BLOCK_IO_PROTOCOL_REVISION3 0x0002001F 211 #define EFI_BLOCK_IO_INTERFACE_REVISION EFI_BLOCK_IO_PROTOCOL_REVISION
128 bit buffer containing a unique identifier value.
EFI_BLOCK_WRITE WriteBlocks
This protocol provides control over block devices.
EFI_BLOCK_FLUSH FlushBlocks
UINT16_t BufferSize
Buffer size.
EFI_BLOCK_READ ReadBlocks
UINT64 EFI_LBA
Logical block address.
SEGOFF16_t Buffer
Buffer address.
UINT64 UINTN
Unsigned value of native width.
EFI_STATUS(EFIAPI * EFI_BLOCK_FLUSH)(IN EFI_BLOCK_IO_PROTOCOL *This)
Flush the Block Device.
#define VOID
Undeclared type.
unsigned long long UINT64
EFI_STATUS(EFIAPI * EFI_BLOCK_RESET)(IN EFI_BLOCK_IO_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Reset the Block Device.
EFI_BLOCK_IO_MEDIA * Media
Pointer to the EFI_BLOCK_IO_MEDIA data for this device.
FILE_LICENCE(BSD2_PATENT)
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
EFI_BLOCK_IO_PROTOCOL EFI_BLOCK_IO
Protocol defined in EFI1.1.
EFI_STATUS(EFIAPI * EFI_BLOCK_WRITE)(IN EFI_BLOCK_IO_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN UINTN BufferSize, IN VOID *Buffer)
Write BufferSize bytes from Lba into Buffer.
EFI_GUID gEfiBlockIoProtocolGuid
UINT64 Revision
The revision to which the block IO interface adheres.
EFI_STATUS(EFIAPI * EFI_BLOCK_READ)(IN EFI_BLOCK_IO_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN UINTN BufferSize, OUT VOID *Buffer)
Read BufferSize bytes from Lba into Buffer.