/*
* 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 <sys/mdb_modapi.h>
#include <sys/ddi_intr.h>
#include <sys/ddi_intr_impl.h>
#include <stddef.h>
#include "list.h"
static char *
{
return ("MSI/X");
switch (type) {
case DDI_INTR_TYPE_FIXED:
return ("Fixed");
case DDI_INTR_TYPE_MSI:
return ("MSI");
case DDI_INTR_TYPE_MSIX:
return ("MSI-X");
default:
return ("Unknown");
}
}
static int
check_irm_enabled(void)
{
int value;
mdb_warn("couldn't find irm_enable");
return (0);
}
return (0);
}
return (value);
}
int
{
mdb_warn("couldn't find irm_pools_list");
return (WALK_ERR);
}
}
int
{
}
int
{
if (argc != 0)
return (DCMD_USAGE);
if (check_irm_enabled() == 0) {
mdb_warn("IRM is not enabled");
return (DCMD_ERR);
}
if (!(flags & DCMD_ADDRSPEC)) {
mdb_warn("can't walk interrupt pools");
return (DCMD_ERR);
}
return (DCMD_OK);
}
if (DCMD_HDRSPEC(flags)) {
mdb_printf("%<u>%?s %-18s %-8s %-6s %-9s %-8s%</u>\n",
"ADDR", "OWNER", "TYPE", "SIZE", "REQUESTED", "RESERVED");
}
return (DCMD_ERR);
}
return (DCMD_ERR);
}
sizeof (driver));
/*
* Include driver instance number only if the node has an
* instance number assigned (i.e. instance != -1) to it.
* This will cover cases like rootnex driver which doesn't
* have instance number assigned to it.
*/
else
return (DCMD_OK);
}
int
{
if (argc != 0)
return (DCMD_USAGE);
if (check_irm_enabled() == 0) {
mdb_warn("IRM is not enabled");
return (DCMD_ERR);
}
if (!(flags & DCMD_ADDRSPEC)) {
mdb_warn("can't perform global interrupt request walk");
return (DCMD_ERR);
}
mdb_warn("can't walk interrupt requests");
return (DCMD_ERR);
}
return (DCMD_OK);
}
/*ARGSUSED*/
int
{
if (argc != 0)
return (DCMD_USAGE);
if (!(flags & DCMD_ADDRSPEC)) {
return (DCMD_ERR);
}
if (DCMD_HDRSPEC(flags)) {
mdb_printf("%<u>%?s %-18s %-8s %-8s %-6s %-4s "
"%-6s%</u>\n", "ADDR", "OWNER", "TYPE", "CALLBACK",
"NINTRS", "NREQ", "NAVAIL");
}
return (DCMD_ERR);
}
return (DCMD_ERR);
}
return (DCMD_ERR);
}
mdb_printf("%0?p %-18s %-8s %-8s %-6d %-4d %-6d\n",
return (DCMD_OK);
}