/* This function is used by the IDE bus driver to get identify data. Data format of Identify data is defined by the Interface GUID. */
EFI_STATUS EFIAPI AtaDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
/* This function is used by the IDE bus driver to get identify data. Data format of Identify data is defined by the Interface GUID. */
EFI_STATUS EFIAPI AtaDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
{
  EFI_STATUS  Status;
  ATA_DEVICE  *AtaDevice;
  AtaDevice = ATA_DEVICE_FROM_DISK_INFO (This);
  Status = EFI_BUFFER_TOO_SMALL;
  if (*IdentifyDataSize >= sizeof (ATA_IDENTIFY_DATA)) {
    Status = EFI_SUCCESS;
    CopyMem (IdentifyData, AtaDevice->IdentifyData, sizeof (ATA_IDENTIFY_DATA));
  }
  *IdentifyDataSize = sizeof (ATA_IDENTIFY_DATA);
  return Status;
}