Lines 96-102
test_headers() {
Link Here
|
96 |
# present) are provided by the target kernel. |
96 |
# present) are provided by the target kernel. |
97 |
# |
97 |
# |
98 |
FILES="asm/system.h" |
98 |
FILES="asm/system.h" |
99 |
FILES="$FILES drm/drmP.h" |
99 |
FILES="$FILES drm/drm_plane.h" |
100 |
FILES="$FILES drm/drm_auth.h" |
100 |
FILES="$FILES drm/drm_auth.h" |
101 |
FILES="$FILES drm/drm_gem.h" |
101 |
FILES="$FILES drm/drm_gem.h" |
102 |
FILES="$FILES drm/drm_crtc.h" |
102 |
FILES="$FILES drm/drm_crtc.h" |
Lines 124-129
test_headers() {
Link Here
|
124 |
FILES="$FILES linux/sched/signal.h" |
124 |
FILES="$FILES linux/sched/signal.h" |
125 |
FILES="$FILES linux/sched/task.h" |
125 |
FILES="$FILES linux/sched/task.h" |
126 |
FILES="$FILES linux/sched/task_stack.h" |
126 |
FILES="$FILES linux/sched/task_stack.h" |
|
|
127 |
FILES="$FILES linux/reservation.h" |
127 |
FILES="$FILES xen/ioemu.h" |
128 |
FILES="$FILES xen/ioemu.h" |
128 |
FILES="$FILES linux/fence.h" |
129 |
FILES="$FILES linux/fence.h" |
129 |
|
130 |
|
Lines 1181-1188
compile_test() {
Link Here
|
1181 |
drm_available) |
1182 |
drm_available) |
1182 |
# Determine if the DRM subsystem is usable |
1183 |
# Determine if the DRM subsystem is usable |
1183 |
CODE=" |
1184 |
CODE=" |
|
|
1185 |
typedef long __kernel_old_time_t; |
1184 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1186 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1185 |
#include <drm/drmP.h> |
1187 |
#include <drm/drmP.h> |
|
|
1188 |
#else |
1189 |
#include <drm/drm_drv.h> |
1190 |
#include <drm/drm_prime.h> |
1186 |
#endif |
1191 |
#endif |
1187 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
1192 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
1188 |
#error DRM not enabled |
1193 |
#error DRM not enabled |
Lines 1225-1230
compile_test() {
Link Here
|
1225 |
CODE=" |
1230 |
CODE=" |
1226 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1231 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1227 |
#include <drm/drmP.h> |
1232 |
#include <drm/drmP.h> |
|
|
1233 |
#else |
1234 |
#include <drm/drm_plane.h> |
1228 |
#endif |
1235 |
#endif |
1229 |
void conftest_drm_dev_unref(void) { |
1236 |
void conftest_drm_dev_unref(void) { |
1230 |
drm_dev_unref(); |
1237 |
drm_dev_unref(); |
Lines 1767-1772
compile_test() {
Link Here
|
1767 |
echo "$CONFTEST_PREAMBLE |
1774 |
echo "$CONFTEST_PREAMBLE |
1768 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1775 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1769 |
#include <drm/drmP.h> |
1776 |
#include <drm/drmP.h> |
|
|
1777 |
#else |
1778 |
#include <drm/drm_plane.h> |
1770 |
#endif |
1779 |
#endif |
1771 |
#include <drm/drm_atomic.h> |
1780 |
#include <drm/drm_atomic.h> |
1772 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
1781 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
Lines 1895-1901
compile_test() {
Link Here
|
1895 |
# attached drivers") in v3.14 (2013-12-11) |
1904 |
# attached drivers") in v3.14 (2013-12-11) |
1896 |
# |
1905 |
# |
1897 |
CODE=" |
1906 |
CODE=" |
1898 |
#include <drm/drmP.h> |
1907 |
#include <drm/drm_drv.h> |
1899 |
int conftest_drm_driver_has_legacy_dev_list(void) { |
1908 |
int conftest_drm_driver_has_legacy_dev_list(void) { |
1900 |
return offsetof(struct drm_driver, legacy_dev_list); |
1909 |
return offsetof(struct drm_driver, legacy_dev_list); |
1901 |
}" |
1910 |
}" |
Lines 1919-1925
compile_test() {
Link Here
|
1919 |
# 2017-07-23 e6fc3b68558e4c6d8d160b5daf2511b99afa8814 |
1928 |
# 2017-07-23 e6fc3b68558e4c6d8d160b5daf2511b99afa8814 |
1920 |
# |
1929 |
# |
1921 |
CODE=" |
1930 |
CODE=" |
1922 |
#include <drm/drmP.h> |
1931 |
#include <drm/drm_plane.h> |
1923 |
|
1932 |
|
1924 |
int conftest_drm_crtc_init_with_planes_has_name_arg(void) { |
1933 |
int conftest_drm_crtc_init_with_planes_has_name_arg(void) { |
1925 |
return |
1934 |
return |
Lines 1935-1941
compile_test() {
Link Here
|
1935 |
compile_check_conftest "$CODE" "NV_DRM_CRTC_INIT_WITH_PLANES_HAS_NAME_ARG" "" "types" |
1944 |
compile_check_conftest "$CODE" "NV_DRM_CRTC_INIT_WITH_PLANES_HAS_NAME_ARG" "" "types" |
1936 |
|
1945 |
|
1937 |
CODE=" |
1946 |
CODE=" |
1938 |
#include <drm/drmP.h> |
1947 |
#include <drm/drm_plane.h> |
1939 |
|
1948 |
|
1940 |
int conftest_drm_encoder_init_has_name_arg(void) { |
1949 |
int conftest_drm_encoder_init_has_name_arg(void) { |
1941 |
return |
1950 |
return |
Lines 1950-1956
compile_test() {
Link Here
|
1950 |
compile_check_conftest "$CODE" "NV_DRM_ENCODER_INIT_HAS_NAME_ARG" "" "types" |
1959 |
compile_check_conftest "$CODE" "NV_DRM_ENCODER_INIT_HAS_NAME_ARG" "" "types" |
1951 |
|
1960 |
|
1952 |
echo "$CONFTEST_PREAMBLE |
1961 |
echo "$CONFTEST_PREAMBLE |
1953 |
#include <drm/drmP.h> |
1962 |
#include <drm/drm_plane.h> |
1954 |
|
1963 |
|
1955 |
int conftest_drm_universal_plane_init_has_format_modifiers_arg(void) { |
1964 |
int conftest_drm_universal_plane_init_has_format_modifiers_arg(void) { |
1956 |
return |
1965 |
return |
Lines 1977-1983
compile_test() {
Link Here
|
1977 |
echo "#undef NV_DRM_UNIVERSAL_PLANE_INIT_HAS_FORMAT_MODIFIERS_ARG" | append_conftest "types" |
1986 |
echo "#undef NV_DRM_UNIVERSAL_PLANE_INIT_HAS_FORMAT_MODIFIERS_ARG" | append_conftest "types" |
1978 |
|
1987 |
|
1979 |
echo "$CONFTEST_PREAMBLE |
1988 |
echo "$CONFTEST_PREAMBLE |
1980 |
#include <drm/drmP.h> |
1989 |
#include <drm/drm_plane.h> |
1981 |
|
1990 |
|
1982 |
int conftest_drm_universal_plane_init_has_name_arg(void) { |
1991 |
int conftest_drm_universal_plane_init_has_name_arg(void) { |
1983 |
return |
1992 |
return |
Lines 2050-2056
compile_test() {
Link Here
|
2050 |
# callback") in v3.18 (2014-08-29) |
2059 |
# callback") in v3.18 (2014-08-29) |
2051 |
# |
2060 |
# |
2052 |
CODE=" |
2061 |
CODE=" |
2053 |
#include <drm/drmP.h> |
2062 |
#include <drm/drm_plane.h> |
2054 |
int conftest_drm_driver_has_set_busid(void) { |
2063 |
int conftest_drm_driver_has_set_busid(void) { |
2055 |
return offsetof(struct drm_driver, set_busid); |
2064 |
return offsetof(struct drm_driver, set_busid); |
2056 |
}" |
2065 |
}" |
Lines 2067-2075
compile_test() {
Link Here
|
2067 |
# objects") in v3.17 (2014-07-01) |
2076 |
# objects") in v3.17 (2014-07-01) |
2068 |
# |
2077 |
# |
2069 |
CODE=" |
2078 |
CODE=" |
2070 |
#include <drm/drmP.h> |
2079 |
#include <drm/drm_drv.h> |
2071 |
int conftest_drm_driver_has_gem_prime_res_obj(void) { |
2080 |
int conftest_drm_driver_has_gem_prime_res_obj(void) { |
2072 |
return offsetof(struct drm_driver, gem_prime_res_obj); |
2081 |
//return offsetof(struct drm_driver, gem_prime_res_obj); |
2073 |
}" |
2082 |
}" |
2074 |
|
2083 |
|
2075 |
compile_check_conftest "$CODE" "NV_DRM_DRIVER_HAS_GEM_PRIME_RES_OBJ" "" "types" |
2084 |
compile_check_conftest "$CODE" "NV_DRM_DRIVER_HAS_GEM_PRIME_RES_OBJ" "" "types" |
Lines 2534-2539
compile_test() {
Link Here
|
2534 |
echo "$CONFTEST_PREAMBLE |
2543 |
echo "$CONFTEST_PREAMBLE |
2535 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
2544 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
2536 |
#include <drm/drmP.h> |
2545 |
#include <drm/drmP.h> |
|
|
2546 |
#else |
2547 |
#include <drm/drm_drv.h> |
2537 |
#endif |
2548 |
#endif |
2538 |
#if defined(NV_DRM_DRM_GEM_H_PRESENT) |
2549 |
#if defined(NV_DRM_DRM_GEM_H_PRESENT) |
2539 |
#include <drm/drm_gem.h> |
2550 |
#include <drm/drm_gem.h> |
Lines 2563-2569
compile_test() {
Link Here
|
2563 |
# in v4.8 (2016-06-21) |
2574 |
# in v4.8 (2016-06-21) |
2564 |
# |
2575 |
# |
2565 |
CODE=" |
2576 |
CODE=" |
2566 |
#include <drm/drmP.h> |
2577 |
#include <drm/drm_drv.h> |
2567 |
void conftest_drm_master_drop_has_from_release_arg(struct drm_driver *drv) { |
2578 |
void conftest_drm_master_drop_has_from_release_arg(struct drm_driver *drv) { |
2568 |
drv->master_drop(NULL, NULL, false); |
2579 |
drv->master_drop(NULL, NULL, false); |
2569 |
}" |
2580 |
}" |
Lines 2730-2736
compile_test() {
Link Here
|
2730 |
# type of the unload hook to void") in v4.11 (2017-01-06) |
2741 |
# type of the unload hook to void") in v4.11 (2017-01-06) |
2731 |
# |
2742 |
# |
2732 |
CODE=" |
2743 |
CODE=" |
2733 |
#include <drm/drmP.h> |
2744 |
#include <drm/drm_drv.h> |
2734 |
|
2745 |
|
2735 |
int conftest_drm_driver_unload_has_int_return_type(struct drm_driver *drv) { |
2746 |
int conftest_drm_driver_unload_has_int_return_type(struct drm_driver *drv) { |
2736 |
return drv->unload(NULL /* dev */); |
2747 |
return drv->unload(NULL /* dev */); |
Lines 3122-3128
compile_test() {
Link Here
|
3122 |
# Introduce drm_framebuffer_{get,put}()) on 2017-02-28. |
3133 |
# Introduce drm_framebuffer_{get,put}()) on 2017-02-28. |
3123 |
# |
3134 |
# |
3124 |
CODE=" |
3135 |
CODE=" |
3125 |
#include <drm/drmP.h> |
|
|
3126 |
#if defined(NV_DRM_DRM_FRAMEBUFFER_H_PRESENT) |
3136 |
#if defined(NV_DRM_DRM_FRAMEBUFFER_H_PRESENT) |
3127 |
#include <drm/drm_framebuffer.h> |
3137 |
#include <drm/drm_framebuffer.h> |
3128 |
#endif |
3138 |
#endif |
Lines 3141-3147
compile_test() {
Link Here
|
3141 |
# Introduce drm_gem_object_{get,put}()) on 2017-02-28. |
3151 |
# Introduce drm_gem_object_{get,put}()) on 2017-02-28. |
3142 |
# |
3152 |
# |
3143 |
CODE=" |
3153 |
CODE=" |
3144 |
#include <drm/drmP.h> |
|
|
3145 |
#if defined(NV_DRM_DRM_GEM_H_PRESENT) |
3154 |
#if defined(NV_DRM_DRM_GEM_H_PRESENT) |
3146 |
#include <drm/drm_gem.h> |
3155 |
#include <drm/drm_gem.h> |
3147 |
#endif |
3156 |
#endif |
Lines 3160-3166
compile_test() {
Link Here
|
3160 |
# introduce drm_dev_{get/put} functions) on 2017-09-26. |
3169 |
# introduce drm_dev_{get/put} functions) on 2017-09-26. |
3161 |
# |
3170 |
# |
3162 |
CODE=" |
3171 |
CODE=" |
3163 |
#include <drm/drmP.h> |
|
|
3164 |
#if defined(NV_DRM_DRM_DRV_H_PRESENT) |
3172 |
#if defined(NV_DRM_DRM_DRV_H_PRESENT) |
3165 |
#include <drm/drm_drv.h> |
3173 |
#include <drm/drm_drv.h> |
3166 |
#endif |
3174 |
#endif |