Lines 20-25
Link Here
|
20 |
* DEALINGS IN THE SOFTWARE. |
20 |
* DEALINGS IN THE SOFTWARE. |
21 |
*/ |
21 |
*/ |
22 |
|
22 |
|
|
|
23 |
#include <linux/version.h> |
23 |
#include "nvidia-drm-conftest.h" /* NV_DRM_ATOMIC_MODESET_AVAILABLE */ |
24 |
#include "nvidia-drm-conftest.h" /* NV_DRM_ATOMIC_MODESET_AVAILABLE */ |
24 |
|
25 |
|
25 |
#if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE) |
26 |
#if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE) |
Lines 31-36
Link Here
|
31 |
#include "nvidia-drm-crtc.h" |
32 |
#include "nvidia-drm-crtc.h" |
32 |
#include "nvidia-drm-helper.h" |
33 |
#include "nvidia-drm-helper.h" |
33 |
|
34 |
|
|
|
35 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) |
36 |
/* Add header constants missing after 5.1 */ |
37 |
void drm_kms_helper_hotplug_event(struct drm_device *dev); |
38 |
#endif |
39 |
|
34 |
#include <drm/drm_crtc_helper.h> |
40 |
#include <drm/drm_crtc_helper.h> |
35 |
|
41 |
|
36 |
#include <drm/drm_atomic.h> |
42 |
#include <drm/drm_atomic.h> |
Lines 160-165
Link Here
|
160 |
{ |
166 |
{ |
161 |
struct nv_drm_device *nv_dev = to_nv_device(dev); |
167 |
struct nv_drm_device *nv_dev = to_nv_device(dev); |
162 |
|
168 |
|
|
|
169 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) |
170 |
/* Add header constants missing after 5.1 */ |
171 |
int drm_helper_probe_single_connector_modes(struct drm_connector |
172 |
*connector, uint32_t maxX, |
173 |
uint32_t maxY); |
174 |
#endif |
175 |
|
163 |
struct NvKmsKapiStaticDisplayInfo *displayInfo = NULL; |
176 |
struct NvKmsKapiStaticDisplayInfo *displayInfo = NULL; |
164 |
struct NvKmsKapiConnectorInfo *connectorInfo = NULL; |
177 |
struct NvKmsKapiConnectorInfo *connectorInfo = NULL; |
165 |
|
178 |
|