/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include "intr_common.h"
static char *
{
mdb_warn("failed to read child dip");
return ("-");
}
while (dev_info.devi_parent != 0) {
break;
return ("ISA");
return ("PCI");
}
return ("-");
}
/*
* uppc_interrupt_dump:
* Dump uppc(7d) interrupt information.
*/
/* ARGSUSED */
int
{
int i, j;
option_flags = 0;
return (DCMD_USAGE);
mdb_warn("failed to read autovect");
return (DCMD_ERR);
}
mdb_warn("failed to read uppc_irq_shared_table");
return (DCMD_ERR);
}
/*
* By default, on all x86 systems ::interrupts from uppc gets
* loaded first. For APIC systems the ::interrupts from either
* apix or pcplusmp ought to be executed. Confusion stems as
* these three modules export the same dcmd.
*/
for (i = 0; i < MAX_ISA_IRQ + 1; i++)
if (shared_tbl[i]) {
break;
}
return (mdb_call_dcmd("apix`interrupts",
NULL) == 0) {
return (mdb_call_dcmd("pcplusmp`interrupts",
}
}
/* Print the header first */
mdb_printf("%<u>CPU ");
else
mdb_printf("%<u>IRQ Vector IPL(lo/hi) Bus Share ");
"Driver Name(s)" : "ISR(s)");
/* Walk all the entries */
for (i = 0; i < MAX_ISA_IRQ + 1; i++) {
/* Read the entry, if invalid continue */
continue;
/* Print each interrupt entry */
mdb_printf("cpu0\t");
else
mdb_printf("%-3d 0x%2x %4d/%-2d %-4s %-3d ",
shared_tbl[i]);
if (shared_tbl[i])
for (j = 1; j < shared_tbl[i]; j++) {
mdb_printf(", ");
} else {
break;
}
}
mdb_printf("\n");
}
return (DCMD_OK);
}
/*
* MDB module linkage information:
*/
{ NULL }
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&modinfo);
}