summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/starfive/starfive_drm_drv.h
blob: b965fa5f7252f4021ac14be141e952b11719d20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2021 StarFive Technology Co., Ltd.
 */
#ifndef _STARFIVE_DRM_DRV_H
#define _STARFIVE_DRM_DRV_H

#include <drm/drm_fb_helper.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_gem.h>
#include <linux/module.h>
#include <linux/component.h>

struct starfive_drm_private {
	struct drm_fb_helper fbdev_helper;
	struct drm_gem_object *fbdev_bo;
	struct mutex mm_lock;
	struct drm_mm mm;
};

extern struct platform_driver starfive_crtc_driver;
extern struct platform_driver starfive_encoder_driver;
extern struct platform_driver starfive_dsi_platform_driver;

#endif /* _STARFIVE_DRM_DRV_H_ */