/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * SNI specific PCI support for RM200/RM300. * * Copyright (C) 1997 - 2000, 2003, 04 Ralf Baechle (ralf@linux-mips.org)
*/ #include <linux/kernel.h> #include <linux/init.h> #include <linux/pci.h>
int pcibios_map_irq(conststruct pci_dev *dev, u8 slot, u8 pin)
{ switch (sni_brd_type) { case SNI_BRD_PCI_TOWER_CPLUS: if (slot == 4) { /* * SNI messed up interrupt wiring for onboard * PCI bus 1; we need to fix this up here
*/ while (dev && dev->bus->number != 1)
dev = dev->bus->self; if (dev && dev->devfn >= PCI_DEVFN(4, 0))
slot = 5;
} return irq_tab_pcit_cplus[slot][pin]; case SNI_BRD_PCI_TOWER: return irq_tab_pcit[slot][pin];
case SNI_BRD_PCI_MTOWER: if (is_rm300_revd()) return irq_tab_rm300d[slot][pin];
fallthrough; case SNI_BRD_PCI_DESKTOP: return irq_tab_rm200[slot][pin];
case SNI_BRD_PCI_MTOWER_CPLUS: return irq_tab_rm300e[slot][pin];
}
return 0;
}
/* Do platform specific device initialization at pci_enable_device() time */ int pcibios_plat_dev_init(struct pci_dev *dev)
{ return 0;
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.