PCIR_MAX_BAR_0
assert(barnum >= 0 && barnum <= PCIR_MAX_BAR_0);
#define PCI_BARMAX PCIR_MAX_BAR_0 /* BAR registers in a Type 0 header */
if (baridx > PCIR_MAX_BAR_0) {
if (baridx > PCIR_MAX_BAR_0)
#define MAX_MMIOSEGS ((PCIR_MAX_BAR_0 + 1) + 1)