/* The GetAttributes() function returns the mask of attributes that this PCI root bridge supports and the mask of attributes that the PCI root bridge is currently using. */
EFI_STATUS EFIAPI RootBridgeIoGetAttributes(IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, OUT UINT64 *Supported, OUT UINT64 *Attributes)
/* The GetAttributes() function returns the mask of attributes that this PCI root bridge supports and the mask of attributes that the PCI root bridge is currently using. */
EFI_STATUS EFIAPI RootBridgeIoGetAttributes(IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, OUT UINT64 *Supported, OUT UINT64 *Attributes)
{
  PCI_ROOT_BRIDGE_INSTANCE  *RootBridge;
  if ((Attributes == NULL) && (Supported == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  RootBridge = ROOT_BRIDGE_FROM_THIS (This);
  if (Supported != NULL) {
    *Supported = RootBridge->Supports;
  }
  if (Attributes != NULL) {
    *Attributes = RootBridge->Attributes;
  }
  return EFI_SUCCESS;
}