/*
* 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 (c) 1999-2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/mdb_modapi.h>
#include <sys/dditypes.h>
/*
* speedmap()
* is used to print node information (speed map, node number, GUID, etc.)
* about the 1394 devices currently attached to the 1394 bus.
*/
static int
{
int ret;
if (flags & DCMD_ADDRSPEC) {
mdb_warn("failed to read the HAL structure");
return (DCMD_ERR);
}
return (DCMD_ERR);
} else {
}
return (DCMD_OK);
}
static int
{
mdb_warn("failed to find the s1394_statep pointer");
return (WALK_ERR);
}
mdb_warn("failed to read the s1394_statep structure");
return (WALK_ERR);
}
}
return (WALK_NEXT);
}
static int
{
return (WALK_DONE);
mdb_warn("failed to read the HAL structure");
return (WALK_ERR);
}
}
/*ARGSUSED*/
static void
{
/* Nothing to do here */
}
{ NULL }
};
{ NULL }
};
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&modinfo);
}
/*
* print_node_info()
* is used to do the actual printing, given a HAL pointer.
*/
static int
{
int i, j;
mdb_warn("failed to read the node structures");
return (DCMD_ERR);
}
mdb_printf("Speed Map:\n");
for (i = 0; i < num_nodes; i++) {
}
for (i = 0; i < hal->number_of_nodes; i++) {
}
for (i = 0; i < num_nodes; i++) {
mdb_warn("failed to read Config ROM");
return (DCMD_ERR);
}
}
for (j = 0; j < num_nodes; j++) {
}
if (i == hal_node_num) {
} else if (node[i].link_active == 0) {
} else if (CFGROM_BIB_READ(&node[i])) {
} else {
}
}
mdb_printf("\n");
return (DCMD_OK);
}