Specifications
220 Version 2.0
Pseudo Code
foreach handle in System
{
Get DevicePath form handle;
If DevicePath is null {
Continue;
}
HIDevicePath = ExtractHI(DevicePath);
Add the HIDevicePath to the HDPT
}
Sort the HDPT
Status Codes Returned
SHELL_SUCCESS Success to get the HI device path table.
SHELL_OUT_OF_RESOURCE Can not create the HI device path table.
CHAR16*
ConsistMappingGenMappingName(
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
IN EFI_DEVICE_PATH_PROTOCOL **HIDevicePathTable
) ;
Parameters
DevicePath
A pointer to a device path that will be translated to the consist name.
HIDevicePathTable
A pointer to the Table of HI Device Path.
Description
This function go through each node of the DevicePath, extract the info about the MTD,
HI, and CSD, and then according to the extracted info, create a consistent mapping.
Pseudo Code
Foreach handle in System
{
Get DevicePath form handle;
If DevicePath is null {
Continue;
}
HIDevicePath = ExtractHI(DevicePath);
Add the HIDevicePath to the HDPT
}
Sort the HDPT
Status Codes Returned
NULL Can’t create the consistent mapping.
NULL The consistent mapping.










