/* Converts a text device path node to SD (Secure Digital) device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSd(IN CHAR16 *TextDeviceNode)
/* Converts a text device path node to SD (Secure Digital) device path structure. */
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSd(IN CHAR16 *TextDeviceNode)
{
  CHAR16          *SlotNumberStr;
  SD_DEVICE_PATH  *Sd;
  SlotNumberStr = GetNextParamStr (&TextDeviceNode);
  Sd            = (SD_DEVICE_PATH *)CreateDeviceNode (
                                      MESSAGING_DEVICE_PATH,
                                      MSG_SD_DP,
                                      (UINT16)sizeof (SD_DEVICE_PATH)
                                      );
  Sd->SlotNumber = (UINT8)Strtoi (SlotNumberStr);
  return (EFI_DEVICE_PATH_PROTOCOL *)Sd;
}