hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/armada/armada_drm.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2012 Russell King
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85 #ifndef ARMADA_DRM_H
96 #define ARMADA_DRM_H
....@@ -11,11 +8,14 @@
118 #include <linux/kfifo.h>
129 #include <linux/io.h>
1310 #include <linux/workqueue.h>
14
-#include <drm/drmP.h>
11
+
12
+#include <drm/drm_device.h>
13
+#include <drm/drm_mm.h>
1514
1615 struct armada_crtc;
1716 struct armada_gem_object;
1817 struct clk;
18
+struct drm_display_mode;
1919 struct drm_fb_helper;
2020
2121 static inline void
....@@ -73,11 +73,14 @@
7373 #endif
7474 };
7575
76
+#define drm_to_armada_dev(dev) container_of(dev, struct armada_private, drm)
77
+
7678 int armada_fbdev_init(struct drm_device *);
7779 void armada_fbdev_fini(struct drm_device *);
7880
7981 int armada_overlay_plane_create(struct drm_device *, unsigned long);
8082
83
+void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc);
8184 int armada_drm_debugfs_init(struct drm_minor *);
8285
8386 #endif