VirtualBox

Changeset 97556 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Nov 15, 2022 5:29:28 PM (2 years ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Introduce initial support for RHEL(8,7) kernels, bugref:10104.

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

Legend:

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

    r96407 r97556  
    8484
    8585# if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    86 #  if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_MIN(9,1)
     86#  if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MIN(9,1)
    8787        ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver);
    8888#  else
     
    368368
    369369        .fops = &vbox_fops,
    370 #if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_MAJ_PREREQ(9,1)
     370#if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_RANGE(8,7, 8,99) && !RTLNX_RHEL_MAJ_PREREQ(9,1)
    371371        .irq_handler = vbox_irq_handler,
    372372#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r96407 r97556  
    158158# include <drm/drm_ioctl.h>
    159159# include <drm/drm_fourcc.h>
    160 # if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_MAJ_PREREQ(9,1)
     160# if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_RANGE(8,7, 8,99) && !RTLNX_RHEL_MAJ_PREREQ(9,1)
    161161#  include <drm/drm_irq.h>
    162162# endif
  • trunk/src/VBox/Additions/linux/drm/vbox_irq.c

    r96407 r97556  
    206206        INIT_WORK(&vbox->hotplug_work, vbox_hotplug_worker);
    207207        vbox_update_mode_hints(vbox);
    208 #if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_MAJ_PREREQ(9,1)
     208#if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,1)
    209209        return request_irq(VBOX_DRM_TO_PCI_DEV(vbox->dev)->irq, vbox_irq_handler, IRQF_SHARED, vbox->dev->driver->name, vbox->dev);
    210210#elif RTLNX_VER_MIN(3,16,0) || RTLNX_RHEL_MAJ_PREREQ(7,1)
     
    217217void vbox_irq_fini(struct vbox_private *vbox)
    218218{
    219 #if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_MAJ_PREREQ(9,1)
     219#if RTLNX_VER_MIN(5,15,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,1)
    220220        free_irq(VBOX_DRM_TO_PCI_DEV(vbox->dev)->irq, vbox->dev);
    221221#else
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