libpit: add DeviceType = 8 entry for MMC with blksize 4096

Newer devices have an emmc with 4096 block size instead of 512.  These
seem to have DeviceType=8 instead of DeviceType=2.
This commit is contained in:
Henrik Grimler 2021-12-10 22:38:48 +01:00
parent cedfcd8c80
commit 31745c287a
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 6 additions and 1 deletions

View File

@ -262,6 +262,10 @@ void Interface::PrintPit(const PitData *pitData)
Interface::Print("All (?)");
break;
case PitEntry::kDeviceTypeMMC4096:
Interface::Print("MMC 4096");
break;
default:
Interface::Print("Unknown");
break;

View File

@ -61,7 +61,8 @@ namespace libpit
kDeviceTypeOneNand = 0,
kDeviceTypeFile, // FAT
kDeviceTypeMMC,
kDeviceTypeAll // ?
kDeviceTypeAll, // ?
kDeviceTypeMMC4096 = 8 // block size 4096
};
enum