Extra debug output for iogap.

This commit is contained in:
Philip Homburg 2006-04-11 11:50:29 +00:00
parent ae0b780257
commit 867e30469a

View file

@ -1251,6 +1251,13 @@ PRIVATE void complete_bars()
continue; continue;
if (base+size <= iogap_low) if (base+size <= iogap_low)
continue; continue;
if (debug)
{
printf(
"pci device %d (%04x/%04x), bar %d: base 0x%x, size 0x%x\n",
i, pcidev[i].pd_vid, pcidev[i].pd_did,
j, base, size);
}
if (base+size-iogap_low < iogap_high-base) if (base+size-iogap_low < iogap_high-base)
iogap_low= base+size; iogap_low= base+size;
else else
@ -1259,7 +1266,14 @@ PRIVATE void complete_bars()
} }
if (iogap_high < iogap_low) if (iogap_high < iogap_low)
{
if (debug)
{
printf("iogap_high too low, should panic\n");
}
else
panic("pci", "iogap_high too low", iogap_high); panic("pci", "iogap_high too low", iogap_high);
}
if (debug) if (debug)
printf("I/O range = [0x%x..0x%x>\n", iogap_low, iogap_high); printf("I/O range = [0x%x..0x%x>\n", iogap_low, iogap_high);
@ -1506,10 +1520,13 @@ int busind;
} }
return 0; return 0;
} }
printf("(warning) unsupported ISA bridge %04X/%04X for bus %d\n", if (debug)
{
printf(
"(warning) unsupported ISA bridge %04X/%04X for bus %d\n",
pcidev[unknown_bridge].pd_vid, pcidev[unknown_bridge].pd_vid,
pcidev[unknown_bridge].pd_did, pcidev[unknown_bridge].pd_did, busind);
busind); }
return 0; return 0;
} }