/* Convert from Linux-centric to bus-centric addresses for bridge devices.  */
void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, struct resource *res)
/* Convert from Linux-centric to bus-centric addresses for bridge devices.  */
void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, struct resource *res)
{
	struct pci_sys_data *root = dev->sysdata;
	unsigned long offset = 0;
	if (res->flags & IORESOURCE_IO)
		offset = root->io_offset;
	if (res->flags & IORESOURCE_MEM)
		offset = root->mem_offset;
	region->start = res->start - offset;
	region->end   = res->end - offset;
}