MdePkg/DevicePath: Add EMMC device path definition
This device path node is introduced in UEFI2.6 spec. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@ -822,6 +822,37 @@ DevPathToTextSd (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
Converts a EMMC (Embedded MMC) device path structure to its string representative.
|
||||
|
||||
@param Str The string representative of input device.
|
||||
@param DevPath The input device path structure.
|
||||
@param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
|
||||
of the display node is used, where applicable. If DisplayOnly
|
||||
is FALSE, then the longer text representation of the display node
|
||||
is used.
|
||||
@param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text
|
||||
representation for a device node can be used, where applicable.
|
||||
|
||||
**/
|
||||
VOID
|
||||
DevPathToTextEmmc (
|
||||
IN OUT POOL_PRINT *Str,
|
||||
IN VOID *DevPath,
|
||||
IN BOOLEAN DisplayOnly,
|
||||
IN BOOLEAN AllowShortcuts
|
||||
)
|
||||
{
|
||||
EMMC_DEVICE_PATH *Emmc;
|
||||
|
||||
Emmc = DevPath;
|
||||
UefiDevicePathLibCatPrint (
|
||||
Str,
|
||||
L"Emmc(0x%x)",
|
||||
Emmc->SlotNumber
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
Converts a 1394 device path structure to its string representative.
|
||||
|
||||
@ -2139,6 +2170,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED const DEVICE_PATH_TO_TEXT_TABLE mUefiDevicePathLib
|
||||
{MESSAGING_DEVICE_PATH, MSG_NVME_NAMESPACE_DP, DevPathToTextNVMe },
|
||||
{MESSAGING_DEVICE_PATH, MSG_UFS_DP, DevPathToTextUfs },
|
||||
{MESSAGING_DEVICE_PATH, MSG_SD_DP, DevPathToTextSd },
|
||||
{MESSAGING_DEVICE_PATH, MSG_EMMC_DP, DevPathToTextEmmc },
|
||||
{MESSAGING_DEVICE_PATH, MSG_1394_DP, DevPathToText1394 },
|
||||
{MESSAGING_DEVICE_PATH, MSG_USB_DP, DevPathToTextUsb },
|
||||
{MESSAGING_DEVICE_PATH, MSG_USB_WWID_DP, DevPathToTextUsbWWID },
|
||||
|
Reference in New Issue
Block a user