kirin_drm_drv.h 737 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * 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__

14 15
#define MAX_CRTC	2

16 17
/* display controller init/cleanup ops */
struct kirin_dc_ops {
18 19
	int (*init)(struct platform_device *pdev);
	void (*cleanup)(struct platform_device *pdev);
20 21
};

22 23
struct kirin_drm_private {
	struct drm_crtc *crtc[MAX_CRTC];
24 25 26
#ifdef CONFIG_DRM_FBDEV_EMULATION
	struct drm_fbdev_cma *fbdev;
#endif
27 28 29 30
};

extern const struct kirin_dc_ops ade_dc_ops;

31
#endif /* __KIRIN_DRM_DRV_H__ */