/* This function is used by the driver entity to get inquiry data. Data format of Identify data is defined by the Interface GUID. */
EFI_STATUS EFIAPI EmmcDiskInfoInquiry(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *InquiryData, IN OUT UINT32 *InquiryDataSize)
/* This function is used by the driver entity to get inquiry data. Data format of Identify data is defined by the Interface GUID. */
EFI_STATUS EFIAPI EmmcDiskInfoInquiry(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *InquiryData, IN OUT UINT32 *InquiryDataSize)
{
  EFI_STATUS      Status;
  EMMC_PARTITION  *Partition;
  EMMC_DEVICE     *Device;
  Partition = EMMC_PARTITION_DATA_FROM_DISKINFO (This);
  Device    = Partition->Device;
  if (*InquiryDataSize >= sizeof (Device->Cid)) {
    Status = EFI_SUCCESS;
    CopyMem (InquiryData, &Device->Cid, sizeof (Device->Cid));
  } else {
    Status = EFI_BUFFER_TOO_SMALL;
  }
  *InquiryDataSize = sizeof (Device->Cid);
  return Status;
}