DIOSZ
uint8_t ioregs[DIOSZ];
error = pci_emul_alloc_bar(pi, 0, PCIBAR_IO, DIOSZ);
if (offset + size > DIOSZ) {