/* Converts a text device path node to Hardware PC card device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPcCard(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to Hardware PC card device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPcCard(IN CHAR16 *TextDeviceNode)
{
  CHAR16              *FunctionNumberStr;
  PCCARD_DEVICE_PATH  *Pccard;
  FunctionNumberStr = GetNextParamStr (&TextDeviceNode);
  Pccard            = (PCCARD_DEVICE_PATH *)CreateDeviceNode (
                                              HARDWARE_DEVICE_PATH,
                                              HW_PCCARD_DP,
                                              (UINT16)sizeof (PCCARD_DEVICE_PATH)
                                              );
  Pccard->FunctionNumber = (UINT8)Strtoi (FunctionNumberStr);
  return (EFI_DEVICE_PATH_PROTOCOL *)Pccard;
}