/* The register selects a DWORD (32 bit) register offset. Hence it doesn't get shifted by 2 bits as we want to "drop" the bottom two bits.  */
static int mk_conf_addr(struct pci_bus *bus_dev, unsigned int device_fn, int where, unsigned long *pci_addr, unsigned char *type1)
/* The register selects a DWORD (32 bit) register offset. Hence it doesn't get shifted by 2 bits as we want to "drop" the bottom two bits.  */
static int mk_conf_addr(struct pci_bus *bus_dev, unsigned int device_fn, int where, unsigned long *pci_addr, unsigned char *type1)
{
	u8 bus = bus_dev->number;
	*type1 = (bus != 0);
	*pci_addr = (bus << 16) | (device_fn << 8) | where;
	DBGC(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x,"
	      " returning address 0x%p\n"
	      bus, device_fn, where, *pci_addr));
	return 0;
}