/* * PCIMT specific code * * 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. * * Copyright (C) 1996, 97, 98, 2000, 03, 04, 06 Ralf Baechle (ralf@linux-mips.org) * Copyright (C) 2006,2007 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
*/
/* * A bit more gossip about the iron we're running on ...
*/ staticinlinevoid sni_pcimt_detect(void)
{ char boardtype[80]; unsignedchar csmsr; char *p = boardtype; unsignedint asic;
staticstruct resource pcimt_mem_resources[] = {
{ /* * this region should only be 4 bytes long, * but it's 16MB on all RM300C I've checked
*/
.start = 0x1a000000,
.end = 0x1affffff,
.name = "PCI INT ACK",
.flags = IORESOURCE_BUSY
}
};
staticvoid __init sni_pcimt_resource_init(void)
{ int i;
/* request I/O space for devices used on all i[345]86 PCs */ for (i = 0; i < ARRAY_SIZE(pcimt_io_resources); i++)
request_resource(&sni_io_resource, pcimt_io_resources + i); /* request MEM space for devices used on all i[345]86 PCs */ for (i = 0; i < ARRAY_SIZE(pcimt_mem_resources); i++)
request_resource(&sni_mem_resource, pcimt_mem_resources + i);
}
/* * hwint0 should deal with MP agent, ASIC PCI, EISA NMI and debug * button interrupts. Later ...
*/ staticvoid pcimt_hwint0(void)
{
panic("Received int0 but no handler yet ...");
}
/* * hwint 1 deals with EISA and SCSI interrupts, * * The EISA_INT bit in CSITPEND is high active, all others are low active.
*/ staticvoid pcimt_hwint1(void)
{
u8 pend = *(volatilechar *)PCIMT_CSITPEND; unsignedlong flags;
if (pend & IT_EISA) { int irq; /* * Note: ASIC PCI's builtin interrupt acknowledge feature is * broken. Using it may result in loss of some or all i8259 * interrupts, so don't use PCIMT_INT_ACKNOWLEDGE ...
*/
irq = i8259_irq(); if (unlikely(irq < 0)) return;
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.