/* This function is used to get identify data. Data format of Identify data is defined by the Interface GUID. */
EFI_STATUS EFIAPI NvmExpressDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
/* This function is used to get identify data. Data format of Identify data is defined by the Interface GUID. */
EFI_STATUS EFIAPI NvmExpressDiskInfoIdentify(IN EFI_DISK_INFO_PROTOCOL *This, IN OUT VOID *IdentifyData, IN OUT UINT32 *IdentifyDataSize)
{
  EFI_STATUS                Status;
  NVME_DEVICE_PRIVATE_DATA  *Device;
  Device = NVME_DEVICE_PRIVATE_DATA_FROM_DISK_INFO (This);
  Status = EFI_BUFFER_TOO_SMALL;
  if (*IdentifyDataSize >= sizeof (Device->NamespaceData)) {
    Status = EFI_SUCCESS;
    CopyMem (IdentifyData, &Device->NamespaceData, sizeof (Device->NamespaceData));
  }
  *IdentifyDataSize = sizeof (Device->NamespaceData);
  return Status;
}