Changeset 83471 in vbox for trunk/src/VBox/HostDrivers/VBoxPci/linux
- Timestamp:
- Mar 27, 2020 3:49:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
r82968 r83471 843 843 if (!rcLnx) 844 844 { 845 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) 846 /* 847 * ioremap() defaults to no caching since the 2.6 kernels. 848 * ioremap_nocache() has been removed finally in 5.6-rc1. 849 */ 850 RTR0PTR R0PtrMapping = ioremap(pci_resource_start(pPciDev, iRegion), 851 pci_resource_len(pPciDev, iRegion)); 852 #else /* KERNEL_VERSION < 2.6.25 */ 845 853 /* For now no caching, try to optimize later. */ 846 854 RTR0PTR R0PtrMapping = ioremap_nocache(pci_resource_start(pPciDev, iRegion), 847 855 pci_resource_len(pPciDev, iRegion)); 848 856 #endif /* KERNEL_VERSION < 2.6.25 */ 849 857 if (R0PtrMapping != NIL_RTR0PTR) 850 858 pIns->aRegionR0Mapping[iRegion] = R0PtrMapping; 851 859 else 852 860 { 861 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) 862 vbpci_printk(KERN_DEBUG, pPciDev, "ioremap() failed\n"); 863 #else 853 864 vbpci_printk(KERN_DEBUG, pPciDev, "ioremap_nocache() failed\n"); 865 #endif 854 866 pci_release_region(pPciDev, iRegion); 855 867 rc = VERR_MAP_FAILED;
Note:
See TracChangeset
for help on using the changeset viewer.