rcar_du_hdmienc.h 943 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * R-Car Display Unit HDMI Encoder
  3. *
  4. * Copyright (C) 2014 Renesas Electronics Corporation
  5. *
  6. * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #ifndef __RCAR_DU_HDMIENC_H__
  14. #define __RCAR_DU_HDMIENC_H__
  15. #include <linux/module.h>
  16. struct device_node;
  17. struct rcar_du_device;
  18. struct rcar_du_encoder;
  19. #if IS_ENABLED(CONFIG_DRM_RCAR_HDMI)
  20. int rcar_du_hdmienc_init(struct rcar_du_device *rcdu,
  21. struct rcar_du_encoder *renc, struct device_node *np);
  22. #else
  23. static inline int rcar_du_hdmienc_init(struct rcar_du_device *rcdu,
  24. struct rcar_du_encoder *renc,
  25. struct device_node *np)
  26. {
  27. return -ENOSYS;
  28. }
  29. #endif
  30. #endif /* __RCAR_DU_HDMIENC_H__ */