void qvirtio_pci_foreach(QPCIBus *bus, uint16_t device_type,

                void (*func)(QVirtioDevice *d, void *data), void *data)

{

    QVirtioPCIForeachData d = { .func = func,

                                .device_type = device_type,

                                .user_data = data };



    qpci_device_foreach(bus, PCI_VENDOR_ID_REDHAT_QUMRANET, -1,

                                qvirtio_pci_foreach_callback, &d);

}

void qvirtio_pci_foreach(QPCIBus *bus, uint16_t device_type,

                void (*func)(QVirtioDevice *d, void *data), void *data)

{

    QVirtioPCIForeachData d = { .func = func,

                                .device_type = device_type,

                                .user_data = data };



    qpci_device_foreach(bus, PCI_VENDOR_ID_REDHAT_QUMRANET, -1,

                                qvirtio_pci_foreach_callback, &d);

}

void qvirtio_pci_foreach(QPCIBus *bus, uint16_t device_type,                                 qvirtio_pci_foreach_callback, &d); void qvirtio_pci_foreach(QPCIBus *bus, uint16_t device_type,
void FUNC_0(QPCIBus *VAR_0, uint16_t VAR_1,

                void (*VAR_2)(QVirtioDevice *VAR_3, void *VAR_5), void *VAR_5)

{

    QVirtioPCIForeachData VAR_3 = { .VAR_2 = VAR_2,

                                .VAR_1 = VAR_1,

                                .user_data = VAR_5 };



    qpci_device_foreach(VAR_0, PCI_VENDOR_ID_REDHAT_QUMRANET, -1,

                                qvirtio_pci_foreach_callback, &VAR_3);

}

void FUNC_0(QPCIBus *VAR_0, uint16_t VAR_1,
void (*VAR_2)(QVirtioDevice *VAR_3, void *VAR_5), void *VAR_5)
{ QVirtioPCIForeachData VAR_3 = { .VAR_2 = VAR_2, .VAR_1 = VAR_1,
.user_data = VAR_5 }; qpci_device_foreach(VAR_0, PCI_VENDOR_ID_REDHAT_QUMRANET, -1,
qvirtio_pci_foreach_callback, &VAR_3); }