PCIEM_TYPE_ROOT_INT_EP
type = PCIEM_TYPE_ROOT_INT_EP;
if (type != PCIEM_TYPE_ROOT_INT_EP) {
error = pci_emul_add_pciecap(pi, PCIEM_TYPE_ROOT_INT_EP);