/* Converts a text device path node to Hardware memory map device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMemoryMapped(CHAR16 *TextDeviceNode)
/* Converts a text device path node to Hardware memory map device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMemoryMapped(CHAR16 *TextDeviceNode)
{
  CHAR16              *MemoryTypeStr;
  CHAR16              *StartingAddressStr;
  CHAR16              *EndingAddressStr;
  MEMMAP_DEVICE_PATH  *MemMap;
  MemoryTypeStr      = GetNextParamStr (&TextDeviceNode);
  StartingAddressStr = GetNextParamStr (&TextDeviceNode);
  EndingAddressStr   = GetNextParamStr (&TextDeviceNode);
  MemMap             = (MEMMAP_DEVICE_PATH *) CreateDeviceNode (
                                               HARDWARE_DEVICE_PATH,
                                               HW_MEMMAP_DP,
                                               (UINT16) sizeof (MEMMAP_DEVICE_PATH)
                                               );
  MemMap->MemoryType = (UINT32) Strtoi (MemoryTypeStr);
  Strtoi64 (StartingAddressStr, &MemMap->StartingAddress);
  Strtoi64 (EndingAddressStr, &MemMap->EndingAddress);
  return (EFI_DEVICE_PATH_PROTOCOL *) MemMap;
}