rcar_du_kms.h 792 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * rcar_du_kms.h -- R-Car Display Unit Mode Setting
  4. *
  5. * Copyright (C) 2013-2014 Renesas Electronics Corporation
  6. *
  7. * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
  8. */
  9. #ifndef __RCAR_DU_KMS_H__
  10. #define __RCAR_DU_KMS_H__
  11. #include <linux/types.h>
  12. struct drm_file;
  13. struct drm_device;
  14. struct drm_mode_create_dumb;
  15. struct rcar_du_device;
  16. struct rcar_du_format_info {
  17. u32 fourcc;
  18. unsigned int bpp;
  19. unsigned int planes;
  20. unsigned int pnmr;
  21. unsigned int edf;
  22. };
  23. const struct rcar_du_format_info *rcar_du_format_info(u32 fourcc);
  24. int rcar_du_modeset_init(struct rcar_du_device *rcdu);
  25. int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev,
  26. struct drm_mode_create_dumb *args);
  27. #endif /* __RCAR_DU_KMS_H__ */