sun4i_crtc.h 673 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2015 Free Electrons
  4. * Copyright (C) 2015 NextThing Co
  5. *
  6. * Maxime Ripard <[email protected]>
  7. */
  8. #ifndef _SUN4I_CRTC_H_
  9. #define _SUN4I_CRTC_H_
  10. struct sun4i_crtc {
  11. struct drm_crtc crtc;
  12. struct drm_pending_vblank_event *event;
  13. struct sunxi_engine *engine;
  14. struct sun4i_tcon *tcon;
  15. };
  16. static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc)
  17. {
  18. return container_of(crtc, struct sun4i_crtc, crtc);
  19. }
  20. struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
  21. struct sunxi_engine *engine,
  22. struct sun4i_tcon *tcon);
  23. #endif /* _SUN4I_CRTC_H_ */