efi_selftest: test EFI_BLOCK_IO_PROTOCOL.Media->LastBlock
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 23 Jan 2021 18:08:04 +0000 (19:08 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 29 Jan 2021 19:22:40 +0000 (20:22 +0100)
commit74a614d70ab3c8fe6bea24ad913c8b6eff609680
tree0aaad7177930b4b0c3345f3ed638818e35956f88
parent472a716b8fdfd88a27cb675e4ea8e12cb4f79fc3
efi_selftest: test EFI_BLOCK_IO_PROTOCOL.Media->LastBlock

The field Media->LastBlock of the EFI_BLOCK_IO_PROTOCOL must be filled
with the index of the last logical block (LBA) for the block device that
our test driver provides.

After calling ConnectController() U-Boot exposes the block IO protocol for
the partition check that the value of Media->LastBlock equals the partition
size minus one.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_block_device.c