forked from torvalds/linux
/
baikal_vdu_drm.h
60 lines (48 loc) · 1.51 KB
/
baikal_vdu_drm.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Copyright (C) 2019-2020 Baikal Electronics JSC
*
* Author: Pavel Parkhomenko <Pavel.Parkhomenko@baikalelectronics.ru>
*
* Parts of this file were based on sources as follows:
*
* Copyright (c) 2006-2008 Intel Corporation
* Copyright (c) 2007 Dave Airlie <airlied@linux.ie>
* Copyright (C) 2011 Texas Instruments
* (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms of
* such GNU licence.
*
*/
#ifndef __BAIKAL_VDU_DRM_H__
#define __BAIKAL_VDU_DRM_H__
#include <drm/drm_gem.h>
#include <drm/drm_simple_kms_helper.h>
struct baikal_vdu_private {
struct drm_device *drm;
struct drm_connector connector;
struct drm_crtc crtc;
struct drm_encoder encoder;
struct drm_panel *panel;
struct drm_bridge *bridge;
struct drm_plane primary;
void *regs;
struct clk *clk;
spinlock_t lock;
u32 counters[20];
int mode_fixup;
u32 fb_addr;
u32 fb_end;
};
/* CRTC Functions */
int baikal_vdu_crtc_create(struct drm_device *dev);
irqreturn_t baikal_vdu_irq(int irq, void *data);
int baikal_vdu_primary_plane_init(struct drm_device *dev);
/* Connector Functions */
int baikal_vdu_connector_create(struct drm_device *dev);
/* Encoder Functions */
int baikal_vdu_encoder_init(struct drm_device *dev);
void baikal_vdu_debugfs_init(struct drm_minor *minor);
#endif /* __BAIKAL_VDU_DRM_H__ */