/* Converts a text device path node to USB device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsb(CHAR16 *TextDeviceNode)
/* Converts a text device path node to USB device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsb(CHAR16 *TextDeviceNode)
{
  CHAR16          *PortStr;
  CHAR16          *InterfaceStr;
  USB_DEVICE_PATH *Usb;
  PortStr               = GetNextParamStr (&TextDeviceNode);
  InterfaceStr          = GetNextParamStr (&TextDeviceNode);
  Usb                   = (USB_DEVICE_PATH *) CreateDeviceNode (
                                                MESSAGING_DEVICE_PATH,
                                                MSG_USB_DP,
                                                (UINT16) sizeof (USB_DEVICE_PATH)
                                                );
  Usb->ParentPortNumber = (UINT8) Strtoi (PortStr);
  Usb->InterfaceNumber  = (UINT8) Strtoi (InterfaceStr);
  return (EFI_DEVICE_PATH_PROTOCOL *) Usb;
}