| /* SPDX-License-Identifier: GPL-2.0-only */ |
| * Copyright (c) 2016 Linaro Limited. |
| * Copyright (c) 2014-2016 Hisilicon Limited. |
| #ifndef __KIRIN_DRM_DRV_H__ |
| #define __KIRIN_DRM_DRV_H__ |
| #define to_kirin_crtc(crtc) \ |
| container_of(crtc, struct kirin_crtc, base) |
| #define to_kirin_plane(plane) \ |
| container_of(plane, struct kirin_plane, base) |
| /* kirin-format translate table */ |
| /* display controller init/cleanup ops */ |
| const u32 *channel_formats; |
| struct drm_driver *driver; |
| const struct drm_crtc_helper_funcs *crtc_helper_funcs; |
| const struct drm_crtc_funcs *crtc_funcs; |
| const struct drm_plane_helper_funcs *plane_helper_funcs; |
| const struct drm_plane_funcs *plane_funcs; |
| const struct drm_mode_config_funcs *mode_config_funcs; |
| void *(*alloc_hw_ctx)(struct platform_device *pdev, |
| void (*cleanup_hw_ctx)(void *hw_ctx); |
| extern struct kirin_drm_data ade_driver_data; |
| #endif /* __KIRIN_DRM_DRV_H__ */ |