hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/nouveau/dispnv04/disp.h
....@@ -1,10 +1,12 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: MIT */
22 #ifndef __NV04_DISPLAY_H__
33 #define __NV04_DISPLAY_H__
44 #include <subdev/bios.h>
55 #include <subdev/bios/pll.h>
66
77 #include "nouveau_display.h"
8
+
9
+struct nouveau_encoder;
810
911 enum nv04_fp_display_regs {
1012 FP_DISPLAY_END,
....@@ -82,6 +84,7 @@
8284 uint32_t saved_vga_font[4][16384];
8385 uint32_t dac_users[4];
8486 struct nouveau_bo *image[2];
87
+ struct nvif_notify flip;
8588 };
8689
8790 static inline struct nv04_display *
....@@ -92,9 +95,8 @@
9295
9396 /* nv04_display.c */
9497 int nv04_display_create(struct drm_device *);
95
-void nv04_display_destroy(struct drm_device *);
96
-int nv04_display_init(struct drm_device *);
97
-void nv04_display_fini(struct drm_device *);
98
+struct nouveau_connector *
99
+nv04_encoder_get_connector(struct nouveau_encoder *nv_encoder);
98100
99101 /* nv04_crtc.c */
100102 int nv04_crtc_create(struct drm_device *, int index);
....@@ -163,7 +165,6 @@
163165 dev->pdev->subsystem_device == sub_device;
164166 }
165167
166
-#include <subdev/bios.h>
167168 #include <subdev/bios/init.h>
168169
169170 static inline void
....@@ -176,4 +177,5 @@
176177 );
177178 }
178179
180
+int nv04_flip_complete(struct nvif_notify *);
179181 #endif