/* NOTE..... If BIOS doesn't provide default routing, we assign: 9 for SCSI, 10 for LAN adapters, and 11 for everything else. If adapter is bridged, then we assign 11 to it and devices behind it. We also assign the same irq numbers for multi function devices. These are PIC mode, so shouldn't matter n.e.ways (hopefully)  */
static void assign_alt_irq(struct pci_func *cur_func, u8 class_code)
/* NOTE..... If BIOS doesn't provide default routing, we assign: 9 for SCSI, 10 for LAN adapters, and 11 for everything else. If adapter is bridged, then we assign 11 to it and devices behind it. We also assign the same irq numbers for multi function devices. These are PIC mode, so shouldn't matter n.e.ways (hopefully)  */
static void assign_alt_irq(struct pci_func *cur_func, u8 class_code)
{
	int j;
	for (j = 0; j < 4; j++) {
		if (cur_func->irq[j] == 0xff) {
			switch (class_code) {
				case PCI_BASE_CLASS_STORAGE:
					cur_func->irq[j] = SCSI_IRQ;
					break;
				case PCI_BASE_CLASS_NETWORK:
					cur_func->irq[j] = LAN_IRQ;
					break;
				default:
					cur_func->irq[j] = OTHER_IRQ;
					break;
			}
		}
	}
}