/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "ndievents.h"
#include <sys/ndi_impldefs.h>
#include <sys/dditypes.h>
#include <sys/ddi_impldefs.h>
int
char *bp;
char *addr;
if (!device) {
mdb_warn("Unable to access devinfo.");
return (-1);
}
return (-1);
}
return (-1);
}
return (0);
}
mdb_warn("Unable to access devi_parent at %p",
return (-1);
}
return (-1);
}
return (-1);
}
} else {
return (-1);
}
}
if (addr_str[0] == '\0') {
} else {
}
return (0);
}
/*ARGSUSED*/
int
{
if (!cookie) {
return (DCMD_ERR);
}
while (callback_list != NULL) {
mdb_warn("Could not read callback structure at"
" %p", callback_list);
return (DCMD_ERR);
}
mdb_warn("Could not read devinfo structure at"
return (DCMD_ERR);
}
== -1) {
return (DCMD_ERR);
}
mdb_printf("\t\t Callback Address:\t%-?p\n"
"\t\t Callback Function:\t%-p\n"
"\t\t Callback Args:\t%-?p\n"
"\t\t Callback Cookie:\t%-?p\n",
}
return (DCMD_OK);
}
int
{
if (!hdl)
return (DCMD_ERR);
if (cookie_list == NULL) {
mdb_printf("\tNo cookies defined for this handle.\n");
return (DCMD_OK);
}
while (cookie_list != NULL) {
mdb_warn("Unable to access cookie list");
return (DCMD_ERR);
}
mdb_warn("Unable to access definition at %p",
return (DCMD_ERR);
}
mdb_warn("Unable to read cookie name.");
return (DCMD_ERR);
}
mdb_printf("\tCookie(%s %p) :Plevel(%d)\n\tddip(%p)"
" : Attr(%d)\n",
}
return (0);
}
/*ARGSUSED*/
int
{
int done;
if (!(flags & DCMD_ADDRSPEC)) {
return (DCMD_USAGE);
}
return (DCMD_ERR);
}
== -1) {
mdb_warn("failed to read devinfo node at %p",
return (DCMD_ERR);
}
return (DCMD_ERR);
}
done = 0;
while (!done) {
mdb_printf("%<b>Handle%</b> (%p) :%<b> Path%</b> (%s) : %<b>"
mdb_printf("mutexes: handle(%p) callback(%p)\n",
done = 1;
} else {
mdb_warn("failed to read ndi_event_hdl at %p",
addr);
break;
}
}
}
return (0);
}