/* Converts a text device path node to Hardware Controller device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextCtrl(CHAR16 *TextDeviceNode)
/* Converts a text device path node to Hardware Controller device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextCtrl(CHAR16 *TextDeviceNode)
{
  CHAR16                  *ControllerStr;
  CONTROLLER_DEVICE_PATH  *Controller;
  ControllerStr = GetNextParamStr (&TextDeviceNode);
  Controller    = (CONTROLLER_DEVICE_PATH *) CreateDeviceNode (
                                               HARDWARE_DEVICE_PATH,
                                               HW_CONTROLLER_DP,
                                               (UINT16) sizeof (CONTROLLER_DEVICE_PATH)
                                               );
  Controller->ControllerNumber = (UINT32) Strtoi (ControllerStr);
  return (EFI_DEVICE_PATH_PROTOCOL *) Controller;
}