PCI_REGMAX
if (capoff + reallen > PCI_REGMAX + 1)
if (coff >= PCI_REGMAX + 1) {
if (coff <= PCI_REGMAX + 4)
cfgoff = (x & PCI_REGMAX) & ~0x03;
u_char pi_cfgdata[PCI_REGMAX + 1];
assert(offset <= PCI_REGMAX);
assert(offset <= (PCI_REGMAX - 1) && (offset & 1) == 0);
assert(offset <= (PCI_REGMAX - 3) && (offset & 3) == 0);
assert(offset <= PCI_REGMAX);
assert(offset <= (PCI_REGMAX - 1) && (offset & 1) == 0);
assert(offset <= (PCI_REGMAX - 3) && (offset & 3) == 0);
if (reg > PCI_REGMAX || reg + len > PCI_REGMAX + 1)
cfgread_handler psc_pcir_rhandler[PCI_REGMAX + 1];
cfgwrite_handler psc_pcir_whandler[PCI_REGMAX + 1];