/* Bits taken from various places. We now use the slot ID instead of the device identifiers to select which interrupt is routed where.  */
static int __init netwinder_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
/* Bits taken from various places. We now use the slot ID instead of the device identifiers to select which interrupt is routed where.  */
static int __init netwinder_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
{
	switch (slot) {
	case 0:
		return 0;
	case 9:
		return IRQ_NETWINDER_VGA;
	case 10:
		return IRQ_NETWINDER_ETHER100;
	case 12:
		return IRQ_ISA_HARDDISK1;
	case 13:
		return IRQ_NETWINDER_ETHER10;
	default:
		printk(KERN_ERR "PCI: unknown device in slot %s\n",
			pci_name(dev));
		return 0;
	}
}