/* Converts a text device path node to Media protocol device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMedia(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to Media protocol device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMedia(IN CHAR16 *TextDeviceNode)
{
  CHAR16                      *GuidStr;
  MEDIA_PROTOCOL_DEVICE_PATH  *Media;
  GuidStr = GetNextParamStr (&TextDeviceNode);
  Media   = (MEDIA_PROTOCOL_DEVICE_PATH *)CreateDeviceNode (
                                            MEDIA_DEVICE_PATH,
                                            MEDIA_PROTOCOL_DP,
                                            (UINT16)sizeof (MEDIA_PROTOCOL_DEVICE_PATH)
                                            );
  StrToGuid (GuidStr, &Media->Protocol);
  return (EFI_DEVICE_PATH_PROTOCOL *)Media;
}