VirtualBox

Changeset 36124 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Mar 1, 2011 4:44:58 PM (14 years ago)
Author:
vboxsync
Message:

PCI: code to perform host driver detach on Linux - not yet fully functional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r36116 r36124  
    17271727
    17281728        int iIrq = aPciIrqs[ich9pciSlotGetPirq(uBus, uDevFn, iPin)];
    1729         Log(("Using pin %d and IRQ %d for device %02x:%02x.%d\n", 
     1729        Log(("Using pin %d and IRQ %d for device %02x:%02x.%d\n",
    17301730             iPin, iIrq, uBus, uDevFn>>3, uDevFn&7));
    17311731        ich9pciConfigWrite(pGlobals, uBus, uDevFn, VBOX_PCI_INTERRUPT_LINE, iIrq, 1);
     
    25712571    }
    25722572
    2573     PCIDevSetCommand(pDev,
    2574                      PCIDevGetCommand(pDev)
    2575                      &
    2576                      ~(VBOX_PCI_COMMAND_IO |
    2577                        VBOX_PCI_COMMAND_MEMORY |
    2578                        VBOX_PCI_COMMAND_MASTER));
    2579 
    2580     /* Bridge device reset handlers processed later */
    2581     if (!pciDevIsPci2PciBridge(pDev))
    2582     {
    2583         PCIDevSetByte(pDev, VBOX_PCI_CACHE_LINE_SIZE, 0x0);
    2584         PCIDevSetInterruptLine(pDev, 0x0);
     2573    if (pciDevIsPassthrough(pDev))
     2574    {
     2575        // implement reset handler
     2576        AssertFailed();
     2577    }
     2578    else
     2579    {
     2580        PCIDevSetCommand(pDev,
     2581                         PCIDevGetCommand(pDev)
     2582                         &
     2583                         ~(VBOX_PCI_COMMAND_IO |
     2584                           VBOX_PCI_COMMAND_MEMORY |
     2585                           VBOX_PCI_COMMAND_MASTER));
     2586       
     2587        /* Bridge device reset handlers processed later */
     2588        if (!pciDevIsPci2PciBridge(pDev))
     2589        {
     2590            PCIDevSetByte(pDev, VBOX_PCI_CACHE_LINE_SIZE, 0x0);
     2591            PCIDevSetInterruptLine(pDev, 0x0);
     2592        }
    25852593    }
    25862594}
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