/* Translate the low bits of the PCI base to the resource type  */
static unsigned int pci_calc_resource_flags(unsigned int flags)
/* Translate the low bits of the PCI base to the resource type  */
static unsigned int pci_calc_resource_flags(unsigned int flags)
{
	if (flags & PCI_BASE_ADDRESS_SPACE_IO)
		return IORESOURCE_IO;
	if (flags & PCI_BASE_ADDRESS_MEM_PREFETCH)
		return IORESOURCE_MEM | IORESOURCE_PREFETCH;
	return IORESOURCE_MEM;
}