Changeset 88274 in vbox
- Timestamp:
- Mar 24, 2021 12:49:44 PM (4 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r88212 r88274 318 318 DRIVER_PRIME, 319 319 #else /* >= 5.4.0 && RHEL >= 8.3 */ 320 320 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ, 321 321 #endif /* < 5.4.0 */ 322 322 323 323 #if RTLNX_VER_MAX(4,19,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3) 324 324 /* Legacy hooks, but still supported. */ 325 325 .load = vbox_driver_load, 326 326 .unload = vbox_driver_unload, … … 351 351 #if RTLNX_VER_MAX(3,12,0) && !RTLNX_RHEL_MAJ_PREREQ(7,3) 352 352 .dumb_destroy = vbox_dumb_destroy, 353 #el se353 #elif RTLNX_VER_MAX(5,12,0) 354 354 .dumb_destroy = drm_gem_dumb_destroy, 355 355 #endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r87092 r88274 175 175 #include <drm/ttm/ttm_placement.h> 176 176 #include <drm/ttm/ttm_memory.h> 177 #include <drm/ttm/ttm_module.h> 177 #if RTLNX_VER_MAX(5,12,0) 178 # include <drm/ttm/ttm_module.h> 179 #endif 178 180 #if RTLNX_VER_MIN(5,10,0) 179 181 # include <drm/ttm/ttm_resource.h> -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r87092 r88274 302 302 } 303 303 304 #if RTLNX_VER_MIN(5,12,0) 305 ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.mem.num_pages, &bo->kmap); 306 #else 304 307 ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.num_pages, &bo->kmap); 308 #endif 309 305 310 vbox_bo_unreserve(bo); 306 311 if (ret) { -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r87092 r88274 857 857 dst = vbox->cursor_data; 858 858 859 #if RTLNX_VER_MIN(5,12,0) 860 ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.mem.num_pages, &uobj_map); 861 #else 859 862 ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.num_pages, &uobj_map); 863 #endif 860 864 if (ret) { 861 865 vbox->cursor_data_size = 0; -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r88207 r88274 212 212 mem->bus.addr = NULL; 213 213 mem->bus.offset = 0; 214 # if RTLNX_VER_MAX(5,12,0) 214 215 mem->size = mem->num_pages << PAGE_SHIFT; 216 # endif 215 217 mem->start = 0; 216 218 mem->bus.is_iomem = false;
Note:
See TracChangeset
for help on using the changeset viewer.