iPXE
Data Fields
EFI_BLOCK_IO_MEDIA Struct Reference

Block IO read only mode data and updated only via members of BlockIO. More...

#include <BlockIo.h>

Data Fields

UINT32 MediaId
 The curent media Id.
BOOLEAN RemovableMedia
 TRUE if the media is removable; otherwise, FALSE.
BOOLEAN MediaPresent
 TRUE if there is a media currently present in the device; othersise, FALSE.
BOOLEAN LogicalPartition
 TRUE if LBA 0 is the first block of a partition; otherwise FALSE.
BOOLEAN ReadOnly
 TRUE if the media is marked read-only otherwise, FALSE.
BOOLEAN WriteCaching
 TRUE if the WriteBlock () function caches write data.
UINT32 BlockSize
 The intrinsic block size of the device.
UINT32 IoAlign
 Supplies the alignment requirement for any buffer to read or write block(s).
EFI_LBA LastBlock
 The last logical block address on the device.
EFI_LBA LowestAlignedLba
 Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to EFI_BLOCK_IO_PROTOCOL_REVISION2.
UINT32 LogicalBlocksPerPhysicalBlock
 Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to EFI_BLOCK_IO_PROTOCOL_REVISION2.
UINT32 OptimalTransferLengthGranularity
 Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to EFI_BLOCK_IO_PROTOCOL_REVISION3.

Detailed Description

Block IO read only mode data and updated only via members of BlockIO.

Definition at line 136 of file BlockIo.h.


Field Documentation

The curent media Id.

If the media changes, this value is changed.

Definition at line 140 of file BlockIo.h.

TRUE if the media is removable; otherwise, FALSE.

Definition at line 145 of file BlockIo.h.

TRUE if there is a media currently present in the device; othersise, FALSE.

THis field shows the media present status as of the most recent ReadBlocks() or WriteBlocks() call.

Definition at line 152 of file BlockIo.h.

Referenced by efi_block_hook().

TRUE if LBA 0 is the first block of a partition; otherwise FALSE.

For media with only one partition this would be TRUE.

Definition at line 158 of file BlockIo.h.

TRUE if the media is marked read-only otherwise, FALSE.

This field shows the read-only status as of the most recent WriteBlocks () call.

Definition at line 164 of file BlockIo.h.

TRUE if the WriteBlock () function caches write data.

Definition at line 169 of file BlockIo.h.

The intrinsic block size of the device.

If the media changes, then this field is updated.

Definition at line 175 of file BlockIo.h.

Referenced by efi_block_hook(), and efi_block_rw().

Supplies the alignment requirement for any buffer to read or write block(s).

Definition at line 180 of file BlockIo.h.

The last logical block address on the device.

If the media changes, then this field is updated.

Definition at line 186 of file BlockIo.h.

Referenced by efi_block_hook().

Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to EFI_BLOCK_IO_PROTOCOL_REVISION2.

Returns the first LBA is aligned to a physical block boundary.

Definition at line 193 of file BlockIo.h.

Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to EFI_BLOCK_IO_PROTOCOL_REVISION2.

Returns the number of logical blocks per physical block.

Definition at line 200 of file BlockIo.h.

Referenced by efi_block_hook().

Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to EFI_BLOCK_IO_PROTOCOL_REVISION3.

Returns the optimal transfer length granularity as a number of logical blocks.

Definition at line 207 of file BlockIo.h.


The documentation for this struct was generated from the following file: