summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/starfive/starfive_drm_drv.h
blob: c4026462f553088c314b9b560964a66126e35c8f (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
26
27
// 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;
extern int init_seeed_panel(void);
extern void exit_seeed_panel(void);

#endif /* _STARFIVE_DRM_DRV_H_ */