From 42d7c987c89c294560fef23f440c9a2bd1df65c6 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Sun, 3 Sep 2017 09:23:17 +0300 Subject: size of sector = 512 (check and info) --- DcsInfo/DcsInfo.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'DcsInfo') diff --git a/DcsInfo/DcsInfo.c b/DcsInfo/DcsInfo.c index 048640a..70f235e 100644 --- a/DcsInfo/DcsInfo.c +++ b/DcsInfo/DcsInfo.c @@ -212,7 +212,22 @@ InfoTcg() { VOID InfoBlockDevices() { - XmlTag(fInfo, "BlockDevices", TRUE, NULL, " count=\"%d\"", gBIOCount, NULL); + UINTN i; + XmlTag(fInfo, "BlockDevices", FALSE, NULL, " count=\"%d\"", gBIOCount, NULL); + FileAsciiPrint(fInfo, "\n"); + gXmlTabs++; + for (i = 0; i < gBIOCount; ++i) { + EFI_BLOCK_IO_PROTOCOL *bio; + bio = EfiGetBlockIO(gBIOHandles[i]); + if (bio != NULL && bio->Media != NULL) { + XmlTag(fInfo, "BlockDevice", TRUE, NULL, + " index=\"%d\" logical=\"%d\" block_size=\"%d\" revision=\"%llx\" read_only=\"%d\" last_block=\"%lld\"", i, + bio->Media->LogicalPartition, bio->Media->BlockSize, bio->Revision, + bio->Media->ReadOnly, + bio->Media->LastBlock, NULL); + } + } + XmlEndTag(fInfo, "BlockDevices"); } VOID -- cgit v1.2.3