VirtualBox

Changeset 33031 in vbox


Ignore:
Timestamp:
Oct 11, 2010 8:42:53 AM (14 years ago)
Author:
vboxsync
Message:

Devices: global define for using MSI support in devices

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r32975 r33031  
    397397# Enable this setting to force a fallback to default DMI data on configuration errors
    398398VBOX_BIOS_DMI_FALLBACK =
     399# Enable MSI support in devices
     400# VBOX_WITH_MSI_DEVICES = 1
    399401# Enable host network interface API.
    400402if1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
  • trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp

    r32933 r33031  
    16311631
    16321632//#define HDA_AS_PCI_EXPRESS
    1633 //#define HDA_WITH_MSI
    16341633
    16351634/**
     
    16691668    PCIDevSetDeviceId           (&pThis->dev, 0x30f7); /* HP Pavilion dv4t-1300 */
    16701669#else
    1671 #if 1 
     1670#if 1
    16721671    PCIDevSetVendorId           (&pThis->dev, 0x8086); /* 00 ro - intel. */
    16731672    PCIDevSetDeviceId           (&pThis->dev, 0x2668); /* 02 ro - 82801 / 82801aa(?). */
     
    16951694#if defined(HDA_AS_PCI_EXPRESS)
    16961695    PCIDevSetCapabilityList     (&pThis->dev, 0x80);
    1697 #elif defined(HDA_WITH_MSI)
     1696#elif defined(VBOX_WITH_MSI_DEVICES)
    16981697    PCIDevSetCapabilityList     (&pThis->dev, 0x60);
    16991698#else
     
    17671766        return rc;
    17681767
    1769 #ifdef HDA_WITH_MSI
     1768#ifdef VBOX_WITH_MSI_DEVICES
    17701769    PDMMSIREG aMsiReg;
    17711770    aMsiReg.cVectors = 1;
     
    17741773    aMsiReg.iMsiFlags = 0;
    17751774    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
    1776     AssertRC(rc);
    17771775    if (RT_FAILURE (rc))
    1778         return rc;
     1776    {
     1777        LogRel(("Chipset cannot do MSI: %Rrc\n", rc));
     1778        PCIDevSetCapabilityList     (&pThis->dev, 0x50);
     1779    }
    17791780#endif
    17801781
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r33013 r33031  
    7070 * This was before the config was added and ahciIOTasks was dropped. */
    7171#define AHCI_SAVED_STATE_VERSION_VBOX_30        2
    72 
    73 /* If AHCI shall emulate MSI support */
    74 #define AHCI_WITH_MSI
    7572
    7673/**
     
    78537850    PCIDevSetDeviceId    (&pThis->dev, 0x2829); /* ICH-8M */
    78547851    PCIDevSetCommand     (&pThis->dev, 0x0000);
    7855 #ifdef AHCI_WITH_MSI
     7852#ifdef VBOX_WITH_MSI_DEVICES
    78567853    PCIDevSetStatus      (&pThis->dev, VBOX_PCI_STATUS_CAP_LIST);
    78577854    PCIDevSetCapabilityList(&pThis->dev, 0x80);
     
    78857882        return rc;
    78867883
    7887 #ifdef AHCI_WITH_MSI
     7884#ifdef VBOX_WITH_MSI_DEVICES
    78887885    PDMMSIREG aMsiReg;
    78897886    aMsiReg.cVectors = 1;
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r32983 r33031  
    4848/** Maximum number of entries in the release log. */
    4949#define MAX_REL_LOG_ERRORS 1024
    50 
    51 /* If LSI shall emulate MSI support */
    52 #define LSILOGIC_WITH_MSI
    5350
    5451/**
     
    50175014    PCIDevSetInterruptPin(&pThis->PciDev,   0x01); /* Interrupt pin A */
    50185015
    5019 #ifdef LSILOGIC_WITH_MSI
     5016#ifdef VBOX_WITH_MSI_DEVICES
    50205017    PCIDevSetStatus(&pThis->PciDev,   VBOX_PCI_STATUS_CAP_LIST);
    50215018    PCIDevSetCapabilityList(&pThis->PciDev, 0x80);
     
    50355032        return rc;
    50365033
    5037 #ifdef LSILOGIC_WITH_MSI
     5034#ifdef VBOX_WITH_MSI_DEVICES
    50385035    PDMMSIREG aMsiReg;
    50395036    aMsiReg.cVectors = 1;
     
    50465043        LogRel(("Chipset cannot do MSI: %Rrc\n", rc));
    50475044        /* That's OK, we can work without MSI */
     5045        PCIDevSetCapabilityList(&pThis->PciDev, 0x0);
    50485046    }
    50495047#endif
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