VirtualBox

Ignore:
Timestamp:
Nov 8, 2011 9:23:51 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74747
Message:

Linux 3.2-rc1 compile fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c

    r38299 r39224  
    3434
    3535#ifdef VBOX_WITH_IOMMU
    36 #include <linux/dmar.h>
    37 #include <linux/intel-iommu.h>
    38 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
    39 # include <asm/amd_iommu.h>
    40 #else
    41 # include <linux/amd-iommu.h>
    42 #endif
    43 #endif
     36# include <linux/dmar.h>
     37# include <linux/intel-iommu.h>
     38# include <linux/pci.h>
     39# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
     40#  include <asm/amd_iommu.h>
     41# else
     42#  include <linux/amd-iommu.h>
     43# endif
     44# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
     45#  define IOMMU_PRESENT()      iommu_found()
     46#  define IOMMU_DOMAIN_ALLOC() iommu_domain_alloc()
     47# else
     48#  define IOMMU_PRESENT()      iommu_present(&pci_bus_type)
     49#  define IOMMU_DOMAIN_ALLOC() iommu_domain_alloc(&pci_bus_type)
     50# endif
     51#endif /* VBOX_WITH_IOMMU */
    4452
    4553
     
    147155
    148156#ifdef VBOX_WITH_IOMMU
    149     if (iommu_found())
     157    if (IOMMU_PRESENT())
    150158        printk(KERN_INFO "vboxpci: IOMMU found\n");
    151159    else
     
    985993#endif
    986994#ifdef VBOX_WITH_IOMMU
    987     if (iommu_found())
    988     {
    989         pThis->pIommuDomain = iommu_domain_alloc();
     995    if (IOMMU_PRESENT())
     996    {
     997        pThis->pIommuDomain = IOMMU_DOMAIN_ALLOC();
    990998        if (!pThis->pIommuDomain)
    991999        {
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