Merge tag 'for-linus-4.7-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / drivers / gpu / drm / hisilicon / kirin / kirin_drm_drv.h
CommitLineData
23e7b2ab
XL
1/*
2 * Copyright (c) 2016 Linaro Limited.
3 * Copyright (c) 2014-2016 Hisilicon Limited.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 */
10
11#ifndef __KIRIN_DRM_DRV_H__
12#define __KIRIN_DRM_DRV_H__
13
783ad972
XL
14#define MAX_CRTC 2
15
23e7b2ab
XL
16/* display controller init/cleanup ops */
17struct kirin_dc_ops {
18 int (*init)(struct drm_device *dev);
19 void (*cleanup)(struct drm_device *dev);
20};
21
783ad972
XL
22struct kirin_drm_private {
23 struct drm_crtc *crtc[MAX_CRTC];
6b7a5965
XL
24#ifdef CONFIG_DRM_FBDEV_EMULATION
25 struct drm_fbdev_cma *fbdev;
26#endif
783ad972
XL
27};
28
29extern const struct kirin_dc_ops ade_dc_ops;
30
23e7b2ab 31#endif /* __KIRIN_DRM_DRV_H__ */