/* Convert text to the binary representation of a device path. */
EFI_DEVICE_PATH_PROTOCOL* EFIAPI ConvertTextToDevicePath(IN CONST CHAR16 *TextDevicePath)
/* Convert text to the binary representation of a device path. */
EFI_DEVICE_PATH_PROTOCOL* EFIAPI ConvertTextToDevicePath(IN CONST CHAR16 *TextDevicePath)
{
  if (mDevicePathLibDevicePathFromText == NULL) {
    mDevicePathLibDevicePathFromText = UefiDevicePathLibLocateProtocol (&gEfiDevicePathFromTextProtocolGuid);
  }
  if (mDevicePathLibDevicePathFromText != NULL) {
    return mDevicePathLibDevicePathFromText->ConvertTextToDevicePath (TextDevicePath);
  } else {
    return NULL;
  }
}