/* Converts a text device path node to Hardware PCI device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPci(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to Hardware PCI device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPci(IN CHAR16 *TextDeviceNode)
{
  CHAR16           *FunctionStr;
  CHAR16           *DeviceStr;
  PCI_DEVICE_PATH  *Pci;
  DeviceStr   = GetNextParamStr (&TextDeviceNode);
  FunctionStr = GetNextParamStr (&TextDeviceNode);
  Pci         = (PCI_DEVICE_PATH *)CreateDeviceNode (
                                     HARDWARE_DEVICE_PATH,
                                     HW_PCI_DP,
                                     (UINT16)sizeof (PCI_DEVICE_PATH)
                                     );
  Pci->Function = (UINT8)Strtoi (FunctionStr);
  Pci->Device   = (UINT8)Strtoi (DeviceStr);
  return (EFI_DEVICE_PATH_PROTOCOL *)Pci;
}