VirtualBox

Changeset 101079 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 11, 2023 2:04:13 PM (17 months ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Introduce initial support for kernel 6.6, bugref:10524.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r100677 r101079  
    388388        .dumb_destroy = drm_gem_dumb_destroy,
    389389#endif
     390#if RTLNX_VER_MAX(6,6,0)
    390391        .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
    391392        .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
    392 
     393#endif
    393394        .gem_prime_import = drm_gem_prime_import,
    394395        .gem_prime_import_sg_table = vbox_gem_prime_import_sg_table,
     396#if RTLNX_VER_MAX(6,6,0)
    395397        .gem_prime_mmap = vbox_gem_prime_mmap,
     398#endif
    396399
    397400#if RTLNX_VER_MAX(5,11,0) && !RTLNX_RHEL_MAJ_PREREQ(8,5)
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r101029 r101079  
    530530void *vbox_gem_prime_vmap(struct drm_gem_object *obj);
    531531void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
     532#if RTLNX_VER_MAX(6,6,0)
    532533int vbox_gem_prime_mmap(struct drm_gem_object *obj,
    533534                        struct vm_area_struct *area);
     535#endif
    534536
    535537/* vbox_irq.c */
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r101029 r101079  
    198198        .fb_set_par = drm_fb_helper_set_par,
    199199#if RTLNX_VER_MIN(6,5,0)
    200         FB_DEFAULT_SYS_OPS,
     200        .fb_read    = fb_sys_read,
     201        .fb_write   = fb_sys_write,
     202        .fb_fillrect = sys_fillrect,
     203        .fb_copyarea = sys_copyarea,
     204        .fb_imageblit = sys_imageblit,
     205        .fb_mmap = NULL,
    201206#else
    202207        .fb_fillrect = drm_fb_helper_sys_fillrect,
     
    347352         * does not think it is needed.
    348353         */
     354#if RTLNX_VER_MIN(6,6,0)
     355        info->flags = FBINFO_MISC_ALWAYS_SETPAR;
     356#else
    349357        info->flags = FBINFO_DEFAULT | FBINFO_MISC_ALWAYS_SETPAR;
     358#endif
    350359        info->fbops = &vboxfb_ops;
    351360
  • trunk/src/VBox/Additions/linux/drm/vbox_prime.c

    r98103 r101079  
    7474}
    7575
     76#if RTLNX_VER_MAX(6,6,0)
    7677int vbox_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *area)
    7778{
     
    7980        return -ENOSYS;
    8081}
     82#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