static PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr)

{

    int dom, bus;

    unsigned slot;



    if (!devaddr) {

        *devfnp = -1;

        return pci_find_bus(0);

    }



    if (pci_parse_devaddr(devaddr, &dom, &bus, &slot) < 0) {

        return NULL;

    }



    *devfnp = slot << 3;

    return pci_find_bus(bus);

}

static PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr)

{

    int dom, bus;

    unsigned slot;



    if (!devaddr) {

        *devfnp = -1;

        return pci_find_bus(0);

    }



    if (pci_parse_devaddr(devaddr, &dom, &bus, &slot) < 0) {

        return NULL;

    }



    *devfnp = slot << 3;

    return pci_find_bus(bus);

}

static PCIBus *FUNC_0(int *devfnp, const char *devaddr)

{

    int VAR_0, VAR_1;

    unsigned VAR_2;



    if (!devaddr) {

        *devfnp = -1;

        return pci_find_bus(0);

    }



    if (pci_parse_devaddr(devaddr, &VAR_0, &VAR_1, &VAR_2) < 0) {

        return NULL;

    }



    *devfnp = VAR_2 << 3;

    return pci_find_bus(VAR_1);

}

static PCIBus *FUNC_0(int *devfnp, const char *devaddr)
{ int VAR_0, VAR_1; unsigned VAR_2; if (!devaddr) { *devfnp = -1; return pci_find_bus(0); } if (pci_parse_devaddr(devaddr, &VAR_0, &VAR_1, &VAR_2) < 0) { return NULL; } *devfnp = VAR_2 << 3; return pci_find_bus(VAR_1); }