static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)

{

    AHCIPCIState *d = container_of(s, AHCIPCIState, ahci);

    PCIDevice *pci_dev =

        (PCIDevice *)object_dynamic_cast(OBJECT(d), TYPE_PCI_DEVICE);



    DPRINTF(0, "raise irq\n");



    if (pci_dev && msi_enabled(pci_dev)) {

        msi_notify(pci_dev, 0);

    } else {

        qemu_irq_raise(s->irq);

    }

}

static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)

{

    AHCIPCIState *d = container_of(s, AHCIPCIState, ahci);

    PCIDevice *pci_dev =

        (PCIDevice *)object_dynamic_cast(OBJECT(d), TYPE_PCI_DEVICE);



    DPRINTF(0, "raise irq\n");



    if (pci_dev && msi_enabled(pci_dev)) {

        msi_notify(pci_dev, 0);

    } else {

        qemu_irq_raise(s->irq);

    }

}

    AHCIPCIState *d = container_of(s, AHCIPCIState, ahci);     PCIDevice *pci_dev =         (PCIDevice *)object_dynamic_cast(OBJECT(d), TYPE_PCI_DEVICE);     AHCIPCIState *d = container_of(s, AHCIPCIState, ahci);     PCIDevice *pci_dev =         (PCIDevice *)object_dynamic_cast(OBJECT(d), TYPE_PCI_DEVICE);
static void FUNC_0(AHCIState *VAR_0, AHCIDevice *VAR_1)

{

    AHCIPCIState *d = container_of(VAR_0, AHCIPCIState, ahci);

    PCIDevice *pci_dev =

        (PCIDevice *)object_dynamic_cast(OBJECT(d), TYPE_PCI_DEVICE);



    DPRINTF(0, "raise irq\n");



    if (pci_dev && msi_enabled(pci_dev)) {

        msi_notify(pci_dev, 0);

    } else {

        qemu_irq_raise(VAR_0->irq);

    }

}

static void FUNC_0(AHCIState *VAR_0, AHCIDevice *VAR_1)
{ AHCIPCIState *d = container_of(VAR_0, AHCIPCIState, ahci); PCIDevice *pci_dev =
(PCIDevice *)object_dynamic_cast(OBJECT(d), TYPE_PCI_DEVICE); DPRINTF(0, "raise irq\n"); if (pci_dev && msi_enabled(pci_dev)) { msi_notify(pci_dev, 0); } else { qemu_irq_raise(VAR_0->irq); } }