/* Accumulate the BAR type of a virtio-1.0 register block into a UINT64 attribute map, such that the latter is suitable for enabling IO / MMIO decoding with EFI_PCI_IO_PROTOCOL.Attributes(). */
STATIC VOID UpdateAttributes(IN VIRTIO_1_0_CONFIG *Config, IN OUT UINT64 *Attributes)
/* Accumulate the BAR type of a virtio-1.0 register block into a UINT64 attribute map, such that the latter is suitable for enabling IO / MMIO decoding with EFI_PCI_IO_PROTOCOL.Attributes(). */
STATIC VOID UpdateAttributes(IN VIRTIO_1_0_CONFIG *Config, IN OUT UINT64 *Attributes)
{
  if (Config->Exists) {
    *Attributes |= (Config->BarType == Virtio10BarTypeMem) ?
                   EFI_PCI_IO_ATTRIBUTE_MEMORY :
                   EFI_PCI_IO_ATTRIBUTE_IO;
  }
}