CONST UINTN SerialNumberLength = 20;\r
CHAR8 *StrPtr;\r
UINT8 Temp;\r
+ EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
\r
Description = NULL;\r
\r
\r
BmEliminateExtraSpaces (Description);\r
}\r
+ } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoSdMmcInterfaceGuid)) {\r
+ DevicePath = DevicePathFromHandle (Handle);\r
+ if (DevicePath == NULL) {\r
+ return NULL;\r
+ }\r
+\r
+ while (!IsDevicePathEnd (DevicePath) && (DevicePathType (DevicePath) != MESSAGING_DEVICE_PATH)) {\r
+ DevicePath = NextDevicePathNode (DevicePath);\r
+ }\r
+ if (IsDevicePathEnd (DevicePath)) {\r
+ return NULL;\r
+ }\r
+\r
+ if (DevicePathSubType (DevicePath) == MSG_SD_DP) {\r
+ Description = L"SD Device";\r
+ } else if (DevicePathSubType (DevicePath) == MSG_EMMC_DP) {\r
+ Description = L"eMMC Device";\r
+ } else {\r
+ return NULL;\r
+ }\r
+\r
+ Description = AllocateCopyPool (StrSize (Description), Description);\r
}\r
\r
return Description;\r
gEfiDiskInfoAhciInterfaceGuid ## SOMETIMES_CONSUMES ## GUID\r
gEfiDiskInfoIdeInterfaceGuid ## SOMETIMES_CONSUMES ## GUID\r
gEfiDiskInfoScsiInterfaceGuid ## SOMETIMES_CONSUMES ## GUID\r
+ gEfiDiskInfoSdMmcInterfaceGuid ## SOMETIMES_CONSUMES ## GUID\r
\r
[Protocols]\r
gEfiPciRootBridgeIoProtocolGuid ## CONSUMES\r