/*
* 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 2000-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*/
#include <sys/mdb_modapi.h>
/*
* check whether this dip is the root hub.
* dip_addr is address of the devinfo struct in the core image (not local space)
*/
static int
{
while (p != NULL) {
mdb_warn("failed to read property");
break;
}
mdb_warn("failed to read property name");
}
return (1);
}
}
return (0);
}
/*
* retrieve hcdi structure from the dip
*
* dip_addr is address of the devinfo struct in the core image (not local space)
*/
{
}
/*
* get usba_device pointer in the devi
*
* dip_addr is address of the devinfo struct in the core image (not local space)
*/
{
return (NULL);
}
/*
* we cannot use parent_data in the usb node because its
* bus parent (eg. PCI nexus driver) uses this data
*
* we cannot use driver data in the other usb nodes since
* usb drivers may need to use this
*/
if (mdb_usba_is_root_hub(&devinfo)) {
if (!hcdi_addr) {
return (NULL);
}
/* Read hcdi struct into local address space. */
hcdi_addr) == -1) {
mdb_warn("failed to read hcdi struct");
return (NULL);
}
} else {
dip_addr) == -1) {
return (NULL);
}
/* casts needed to keep lint happy */
}
}