125dbecb6Smrg#ifndef _COMMON_COMPAT_H_
29775ba4bSmrg#define _COMMON_COMPAT_H_
325dbecb6Smrg
425dbecb6Smrg#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 18)
525dbecb6Smrg#define CONST_ABI_18_0 const
625dbecb6Smrg#else
725dbecb6Smrg#define CONST_ABI_18_0
825dbecb6Smrg#endif
925dbecb6Smrg
1025dbecb6Smrg#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 16)
1125dbecb6Smrg#define CONST_ABI_16_0 const
1225dbecb6Smrg#else
1325dbecb6Smrg#define CONST_ABI_16_0
1425dbecb6Smrg#endif
1525dbecb6Smrg
1625dbecb6Smrg#if ((GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 16) && \
1725dbecb6Smrg     (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 19))
1825dbecb6Smrg#define CONST_ABI_16_TO_19 const
1925dbecb6Smrg#else
2025dbecb6Smrg#define CONST_ABI_16_TO_19
2125dbecb6Smrg#endif
2225dbecb6Smrg
2325dbecb6Smrg#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 13)
2425dbecb6Smrgstatic inline void
2525dbecb6Smrgxf86SaveModeContents(DisplayModePtr intern, const DisplayModeRec *mode)
2625dbecb6Smrg{
2725dbecb6Smrg    *intern = *mode;
2825dbecb6Smrg    intern->prev = intern->next = NULL;
2925dbecb6Smrg    intern->name = NULL;
3025dbecb6Smrg    intern->PrivSize = 0;
3125dbecb6Smrg    intern->PrivFlags = 0;
3225dbecb6Smrg    intern->Private = NULL;
3325dbecb6Smrg}
3425dbecb6Smrg#endif
3525dbecb6Smrg
3625dbecb6Smrg#ifndef fbGetRotatedPixmap
3725dbecb6Smrg#define fbGetRotatedPixmap(_pGC) NULL
3825dbecb6Smrg#endif
3925dbecb6Smrg
4025dbecb6Smrg#ifndef DRM_MODE_FB_DIRTY_MAX_CLIPS
4125dbecb6Smrg#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256
4225dbecb6Smrg#endif
4325dbecb6Smrg
4425dbecb6Smrg#endif
4525dbecb6Smrg
46