Decode bus_info block.

This commit is contained in:
Hidetoshi Shimokawa 2003-06-10 02:32:22 +00:00
parent 97aad8deb4
commit c6747f0f42

View File

@ -247,10 +247,19 @@ static void
parse_bus_info_block(u_int32_t *p, int info_len)
{
int i;
struct bus_info *bi;
for (i = 0; i < info_len; i++) {
printf("bus_info%d: 0x%08x\n", i, *p++);
}
bi = (struct bus_info *)p;
printf("bus_name: 0x%04x\n"
"irmc:%d cmc:%d isc:%d bmc:%d pmc:%d\n"
"cyc_clk_acc:%d max_rec:%d max_rom:%d\n"
"generation:%d link_spd:%d\n"
"EUI64: 0x%08x 0x%08x\n",
bi->bus_name,
bi->irmc, bi->cmc, bi->isc, bi->bmc, bi->pmc,
bi->cyc_clk_acc, bi->max_rec, bi->max_rom,
bi->generation, bi->link_spd,
bi->eui64.hi, bi->eui64.lo);
}
static int