kirin_drm_drv.h 703 B

123456789101112131415161718192021222324252627282930
  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. #ifndef __KIRIN_DRM_DRV_H__
  11. #define __KIRIN_DRM_DRV_H__
  12. #define MAX_CRTC 2
  13. /* display controller init/cleanup ops */
  14. struct kirin_dc_ops {
  15. int (*init)(struct platform_device *pdev);
  16. void (*cleanup)(struct platform_device *pdev);
  17. };
  18. struct kirin_drm_private {
  19. #ifdef CONFIG_DRM_FBDEV_EMULATION
  20. struct drm_fbdev_cma *fbdev;
  21. #endif
  22. };
  23. extern const struct kirin_dc_ops ade_dc_ops;
  24. #endif /* __KIRIN_DRM_DRV_H__ */