void msi_uninit(struct PCIDevice *dev)

{

    uint16_t flags;

    uint8_t cap_size;



    if (!(dev->cap_present & QEMU_PCI_CAP_MSI)) {

        return;

    }

    flags = pci_get_word(dev->config + msi_flags_off(dev));

    cap_size = msi_cap_sizeof(flags);

    pci_del_capability(dev, PCI_CAP_ID_MSI, cap_size);

    dev->cap_present &= ~QEMU_PCI_CAP_MSI;



    MSI_DEV_PRINTF(dev, "uninit\n");

}

void msi_uninit(struct PCIDevice *dev)

{

    uint16_t flags;

    uint8_t cap_size;



    if (!(dev->cap_present & QEMU_PCI_CAP_MSI)) {

        return;

    }

    flags = pci_get_word(dev->config + msi_flags_off(dev));

    cap_size = msi_cap_sizeof(flags);

    pci_del_capability(dev, PCI_CAP_ID_MSI, cap_size);

    dev->cap_present &= ~QEMU_PCI_CAP_MSI;



    MSI_DEV_PRINTF(dev, "uninit\n");

}

void FUNC_0(struct PCIDevice *VAR_0)

{

    uint16_t flags;

    uint8_t cap_size;



    if (!(VAR_0->cap_present & QEMU_PCI_CAP_MSI)) {

        return;

    }

    flags = pci_get_word(VAR_0->config + msi_flags_off(VAR_0));

    cap_size = msi_cap_sizeof(flags);

    pci_del_capability(VAR_0, PCI_CAP_ID_MSI, cap_size);

    VAR_0->cap_present &= ~QEMU_PCI_CAP_MSI;



    MSI_DEV_PRINTF(VAR_0, "uninit\n");

}

void FUNC_0(struct PCIDevice *VAR_0)
{ uint16_t flags; uint8_t cap_size; if (!(VAR_0->cap_present & QEMU_PCI_CAP_MSI)) { return; } flags = pci_get_word(VAR_0->config + msi_flags_off(VAR_0)); cap_size = msi_cap_sizeof(flags); pci_del_capability(VAR_0, PCI_CAP_ID_MSI, cap_size); VAR_0->cap_present &= ~QEMU_PCI_CAP_MSI; MSI_DEV_PRINTF(VAR_0, "uninit\n"); }