VirtualBox

Changeset 36528 in vbox


Ignore:
Timestamp:
Apr 4, 2011 1:16:52 PM (14 years ago)
Author:
vboxsync
Message:

PCI: fully reworked interrupts, now HDA audio device can be reasonably passed to the guest

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/rawpci.h

    r36498 r36528  
    301301    /* Get next IRQ for the device. */
    302302    PCIRAWR0_DO_GET_IRQ,
     303    /* Enable getting IRQs for the device. */
     304    PCIRAWR0_DO_ENABLE_IRQ,
     305    /* Disable getting IRQs for the device. */
     306    PCIRAWR0_DO_DISABLE_IRQ,
    303307    /* Notify driver about guest power state change. */
    304308    PCIRAWR0_DO_POWER_STATE_CHANGE,
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r36485 r36528  
    193193    if (pThis->IrqHandler.pfnIrqHandler)
    194194    {
    195         pPort->pfnUnregisterIrqHandler(pPort, pThis->IrqHandler.iHostIrq);
    196         pThis->IrqHandler.iHostIrq = -1;
     195        vboxPciOsDevUnregisterIrqHandler(pThis, pThis->IrqHandler.iHostIrq);
     196        pThis->IrqHandler.iHostIrq = 0;
    197197        pThis->IrqHandler.pfnIrqHandler = NULL;
    198198    }
     
    386386        pThis->IrqHandler.pfnIrqHandler = NULL;
    387387        pThis->IrqHandler.pIrqContext   = NULL;
    388         pThis->IrqHandler.iHostIrq = -1;
     388        pThis->IrqHandler.iHostIrq = 0;
    389389    }
    390390    vboxPciDevUnlock(pThis);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette