
Block I/O Protocol
Version 1.02 12/12/00 175
Related Definitions
//*******************************************************
// EFI_BLOCK_IO_MEDIA
//*******************************************************
typedef struct {
    UINT32              MediaId;
    BOOLEAN             RemovableMedia;
    BOOLEAN             MediaPresent;
    BOOLEAN             LogicalPartition;
    BOOLEAN             ReadOnly;
    BOOLEAN             WriteCaching;
    UINT32              BlockSize;
    UINT32              IoAlign;
    EFI_LBA             LastBlock;
} EFI_BLOCK_IO_MEDIA;
//*******************************************************
// EFI_LBA
//*******************************************************
typedef UINT64          EFI_LBA;
Description
The LogicalPartition is TRUE if the device handle is for a partition.  For media that have
only one partition, the value will always be TRUE.  For media that have multiple partitions, this
value is FALSE for the handle that accesses the entire device.  The firmware is responsible for
adding device handles for each partition on such media.
The firmware is responsible for adding an EFI_DISK_IO interface to every EFI_BLOCK_IO
interface in the system.  The EFI_DISK_IO interface allows byte-level access to devices.