MdePkg: Add UEFI 2.5 SD (Secure Digital) Device Path Definitions
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17383 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1840,6 +1840,34 @@ DevPathFromTextUfs (
|
||||
return (EFI_DEVICE_PATH_PROTOCOL *) Ufs;
|
||||
}
|
||||
|
||||
/**
|
||||
Converts a text device path node to SD (Secure Digital) device path structure.
|
||||
|
||||
@param TextDeviceNode The input Text device path node.
|
||||
|
||||
@return A pointer to the newly-created SD 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;
|
||||
}
|
||||
|
||||
/**
|
||||
Converts a text device path node to Debug Port device path structure.
|
||||
|
||||
@@ -3188,6 +3216,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED DEVICE_PATH_FROM_TEXT_TABLE mUefiDevicePathLibDevP
|
||||
{L"SasEx", DevPathFromTextSasEx },
|
||||
{L"NVMe", DevPathFromTextNVMe },
|
||||
{L"UFS", DevPathFromTextUfs },
|
||||
{L"SD", DevPathFromTextSd },
|
||||
{L"DebugPort", DevPathFromTextDebugPort },
|
||||
{L"MAC", DevPathFromTextMAC },
|
||||
{L"IPv4", DevPathFromTextIPv4 },
|
||||
|
Reference in New Issue
Block a user