forked from Minki/linux
6b7a596548
Add cma Fbdev, Fbdev is legency and optional, you can enable/disable it by configuring DRM_FBDEV_EMULATION. Add hotplug. v8: None. v7: None. v6: None. v5: None. v4: None. v3: None. v2: - Use CONFIG_DRM_FBDEV_EMULATION instead of CONFIG_DRM_HISI_FBDEV. Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org> Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>
32 lines
725 B
C
32 lines
725 B
C
/*
|
|
* Copyright (c) 2016 Linaro Limited.
|
|
* Copyright (c) 2014-2016 Hisilicon Limited.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#ifndef __KIRIN_DRM_DRV_H__
|
|
#define __KIRIN_DRM_DRV_H__
|
|
|
|
#define MAX_CRTC 2
|
|
|
|
/* display controller init/cleanup ops */
|
|
struct kirin_dc_ops {
|
|
int (*init)(struct drm_device *dev);
|
|
void (*cleanup)(struct drm_device *dev);
|
|
};
|
|
|
|
struct kirin_drm_private {
|
|
struct drm_crtc *crtc[MAX_CRTC];
|
|
#ifdef CONFIG_DRM_FBDEV_EMULATION
|
|
struct drm_fbdev_cma *fbdev;
|
|
#endif
|
|
};
|
|
|
|
extern const struct kirin_dc_ops ade_dc_ops;
|
|
|
|
#endif /* __KIRIN_DRM_DRV_H__ */
|