static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)

{

    if (!pci_bus_is_express(dev->bus)) {

        error_setg(errp, "pxb-pcie devices cannot reside on a PCI bus");

        return;

    }



    pxb_dev_realize_common(dev, true, errp);

}

static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)

{

    if (!pci_bus_is_express(dev->bus)) {

        error_setg(errp, "pxb-pcie devices cannot reside on a PCI bus");

        return;

    }



    pxb_dev_realize_common(dev, true, errp);

}

static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)

{

    if (!pci_bus_is_express(VAR_0->bus)) {

        error_setg(VAR_1, "pxb-pcie devices cannot reside on a PCI bus");

        return;

    }



    pxb_dev_realize_common(VAR_0, true, VAR_1);

}

static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)
{ if (!pci_bus_is_express(VAR_0->bus)) { error_setg(VAR_1, "pxb-pcie devices cannot reside on a PCI bus"); return; } pxb_dev_realize_common(VAR_0, true, VAR_1); }