/* DevicePathNode must be SerialCDROM Channel type and this will populate the MappingItem. */
EFI_STATUS DevPathSerialCdRom(IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode, IN DEVICE_CONSIST_MAPPING_INFO *MappingItem, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
/* DevicePathNode must be SerialCDROM Channel type and this will populate the MappingItem. */
EFI_STATUS DevPathSerialCdRom(IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode, IN DEVICE_CONSIST_MAPPING_INFO *MappingItem, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
{
  CDROM_DEVICE_PATH  *Cd;
  ASSERT (DevicePathNode != NULL);
  ASSERT (MappingItem != NULL);
  Cd               = (CDROM_DEVICE_PATH *)DevicePathNode;
  MappingItem->Mtd = MTDTypeCDRom;
  return AppendCSDNum (MappingItem, Cd->BootEntry);
}