/* This routine builds either a type0 or type1 configuration command. If the bus is on the 803xx then a type0 made, else a type1 is created.  */
static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where)
/* This routine builds either a type0 or type1 configuration command. If the bus is on the 803xx then a type0 made, else a type1 is created.  */
static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where)
{
	struct pci_sys_data *sys = bus->sysdata;
	u32 addr;
	if (sys->busnr == bus->number)
		addr = 1 << (PCI_SLOT(devfn) + 16) | (PCI_SLOT(devfn) << 11);
	else
		addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1;
	addr |=	PCI_FUNC(devfn) << 8 | (where & ~3);
	return addr;
}