Decode bus_info block.
This commit is contained in:
parent
97aad8deb4
commit
c6747f0f42
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116141
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user