VirtualBox

Changeset 48354 in vbox


Ignore:
Timestamp:
Sep 6, 2013 12:52:27 PM (11 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: build on SLES 11 sp 3.

File:
1 edited

Legend:

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

    r47088 r48354  
    6969#   endif
    7070#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 3)
    71 #    define DRM_RHEL63
     71#    define DRM_FOPS_AS_POINTER
    7272#   endif
    7373#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4)
    74 #    define DRM_RHEL64
     74#    define DRM_NO_RECLAIM_BUFFERS
    7575#   endif
    7676#  endif
     
    8383#  if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 39) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
    8484#   if defined(DRM_MODE_OBJECT_PLANE) && defined(DRM_IOCTL_MODE_ADDFB2)
    85 #    define DRM_DEBIAN_34ON32
     85#    define DRM_FOPS_AS_POINTER
    8686#   endif
    8787#  endif
    8888# endif
     89
     90#ifdef CONFIG_SUSE_KERNEL
     91/* This is to cover the SLES 11 SP3 kernel back-ports. */
     92# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,61)
     93#  if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)
     94#    define DRM_FOPS_AS_POINTER
     95#    define DRM_NO_RECLAIM_BUFFERS
     96#  endif
     97# endif
     98#endif
    8999
    90100static struct pci_device_id pciidlist[] = {
     
    102112#endif
    103113}
    104 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) || defined(DRM_DEBIAN_34ON32)
     114#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_FOPS_AS_POINTER)
    105115/* since linux-3.3.0-rc1 drm_driver::fops is pointer */
    106116static struct file_operations driver_fops =
     
    120130    /* .driver_features = DRIVER_USE_MTRR, */
    121131    .load = vboxvideo_driver_load,
    122 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_RHEL64)
     132#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0) && !defined(DRM_NO_RECLAIM_BUFFERS)
    123133    .reclaim_buffers = drm_core_reclaim_buffers,
    124134#endif
     
    128138    .get_reg_ofs = drm_core_get_reg_ofs,
    129139#endif
    130 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_RHEL63) && !defined(DRM_DEBIAN_34ON32)
     140# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_FOPS_AS_POINTER)
    131141    .fops =
    132142    {
     
    145155        .fasync = drm_fasync,
    146156    },
    147 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_RHEL63) || defined(DRM_DEBIAN_34ON32) */
     157#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0) || defined(DRM_FOPS_AS_POINTER) */
    148158    .fops = &driver_fops,
    149159#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