/* DevicePathNode must be SerialAtapi Channel type and this will populate the MappingItem. */
EFI_STATUS DevPathSerialAtapi(IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode, IN DEVICE_CONSIST_MAPPING_INFO *MappingItem, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
/* DevicePathNode must be SerialAtapi Channel type and this will populate the MappingItem. */
EFI_STATUS DevPathSerialAtapi(IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode, IN DEVICE_CONSIST_MAPPING_INFO *MappingItem, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
{
  ATAPI_DEVICE_PATH  *Atapi;
  ASSERT (DevicePathNode != NULL);
  ASSERT (MappingItem != NULL);
  Atapi = (ATAPI_DEVICE_PATH *)DevicePathNode;
  return AppendCSDNum (MappingItem, (Atapi->PrimarySecondary * 2 + Atapi->SlaveMaster));
}