fsl_dcu_drm_output.h 969 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2015 Freescale Semiconductor, Inc.
  3. *
  4. * Freescale DCU drm device driver
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #ifndef __FSL_DCU_DRM_CONNECTOR_H__
  12. #define __FSL_DCU_DRM_CONNECTOR_H__
  13. struct fsl_dcu_drm_connector {
  14. struct drm_connector base;
  15. struct drm_encoder *encoder;
  16. struct drm_panel *panel;
  17. };
  18. static inline struct fsl_dcu_drm_connector *
  19. to_fsl_dcu_connector(struct drm_connector *con)
  20. {
  21. return con ? container_of(con, struct fsl_dcu_drm_connector, base)
  22. : NULL;
  23. }
  24. int fsl_dcu_drm_connector_create(struct fsl_dcu_drm_device *fsl_dev,
  25. struct drm_encoder *encoder);
  26. int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev,
  27. struct drm_crtc *crtc);
  28. #endif /* __FSL_DCU_DRM_CONNECTOR_H__ */