| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | #ifndef ARMADA_DRM_H |
|---|
| 9 | 6 | #define ARMADA_DRM_H |
|---|
| .. | .. |
|---|
| 11 | 8 | #include <linux/kfifo.h> |
|---|
| 12 | 9 | #include <linux/io.h> |
|---|
| 13 | 10 | #include <linux/workqueue.h> |
|---|
| 14 | | -#include <drm/drmP.h> |
|---|
| 11 | + |
|---|
| 12 | +#include <drm/drm_device.h> |
|---|
| 13 | +#include <drm/drm_mm.h> |
|---|
| 15 | 14 | |
|---|
| 16 | 15 | struct armada_crtc; |
|---|
| 17 | 16 | struct armada_gem_object; |
|---|
| 18 | 17 | struct clk; |
|---|
| 18 | +struct drm_display_mode; |
|---|
| 19 | 19 | struct drm_fb_helper; |
|---|
| 20 | 20 | |
|---|
| 21 | 21 | static inline void |
|---|
| .. | .. |
|---|
| 73 | 73 | #endif |
|---|
| 74 | 74 | }; |
|---|
| 75 | 75 | |
|---|
| 76 | +#define drm_to_armada_dev(dev) container_of(dev, struct armada_private, drm) |
|---|
| 77 | + |
|---|
| 76 | 78 | int armada_fbdev_init(struct drm_device *); |
|---|
| 77 | 79 | void armada_fbdev_fini(struct drm_device *); |
|---|
| 78 | 80 | |
|---|
| 79 | 81 | int armada_overlay_plane_create(struct drm_device *, unsigned long); |
|---|
| 80 | 82 | |
|---|
| 83 | +void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc); |
|---|
| 81 | 84 | int armada_drm_debugfs_init(struct drm_minor *); |
|---|
| 82 | 85 | |
|---|
| 83 | 86 | #endif |
|---|