VirtualBox

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


Ignore:
Timestamp:
Jul 21, 2023 1:27:08 PM (18 months ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Add initial support for OpenSUSE 15.5 kernel, bugref:10491.

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

Legend:

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

    r98455 r100677  
    5353/** Detect whether kernel mode setting is OFF. */
    5454#if defined(CONFIG_VGA_CONSOLE)
    55 # if RTLNX_VER_MIN(5,17,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MIN(9,1)
     55# if RTLNX_VER_MIN(5,17,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MIN(9,1) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    5656#  define VBOX_VIDEO_NOMODESET() drm_firmware_drivers_only() && vbox_modeset == -1
    5757# elif RTLNX_VER_MIN(4,7,0)
     
    368368
    369369        .fops = &vbox_fops,
    370 #if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_RANGE(8,7, 8,99) && !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) && !RTLNX_SUSE_MAJ_PREREQ(15,5)
    371371        .irq_handler = vbox_irq_handler,
    372372#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r100653 r100677  
    158158# include <drm/drm_ioctl.h>
    159159# include <drm/drm_fourcc.h>
    160 # if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_RANGE(8,7, 8,99) && !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) && !RTLNX_SUSE_MAJ_PREREQ(15,5)
    161161#  include <drm/drm_irq.h>
    162162# endif
     
    190190#endif
    191191
    192 #if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2)
     192#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    193193# include <drm/drm_framebuffer.h>
    194194#endif
     
    537537void vbox_irq_fini(struct vbox_private *vbox);
    538538void vbox_report_hotplug(struct vbox_private *vbox);
    539 #if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_MAJ_PREREQ(9,1)
     539#if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_MAJ_PREREQ(9,1) && !RTLNX_SUSE_MAJ_PREREQ(15,5)
    540540irqreturn_t vbox_irq_handler(int irq, void *arg);
    541541#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r100653 r100677  
    379379
    380380#ifdef CONFIG_FB_DEFERRED_IO
    381 # if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,3)
     381# if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,3) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    382382        info->fix.smem_len = info->screen_size;
    383383# endif
  • trunk/src/VBox/Additions/linux/drm/vbox_irq.c

    r98103 r100677  
    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_RANGE(8,7, 8,99) || 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) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    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_RANGE(8,7, 8,99) || 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) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    220220        free_irq(VBOX_DRM_TO_PCI_DEV(vbox->dev)->irq, vbox->dev);
    221221#else
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r100653 r100677  
    5151#endif
    5252
    53 #if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2)
     53#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    5454# include <drm/drm_edid.h>
    5555#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r100653 r100677  
    322322        tt->func = &vbox_tt_backend_func;
    323323#endif
    324 #if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2)
     324#if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    325325        if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined, 0)) {
    326326#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
     
    629629#endif
    630630
    631 #if RTLNX_VER_MIN(6,1,0) || RTLNX_RHEL_MAJ_PREREQ(9,3)
     631#if RTLNX_VER_MIN(6,1,0) || RTLNX_RHEL_MAJ_PREREQ(9,3) || RTLNX_SUSE_MAJ_PREREQ(15,5)
    632632        ret = ttm_bo_init_validate(&vbox->ttm.bdev, &vboxbo->bo,
    633633#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