rcar_du_kms.h 1007 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * rcar_du_kms.h -- R-Car Display Unit Mode Setting
  3. *
  4. * Copyright (C) 2013-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_KMS_H__
  14. #define __RCAR_DU_KMS_H__
  15. #include <linux/types.h>
  16. struct drm_file;
  17. struct drm_device;
  18. struct drm_mode_create_dumb;
  19. struct rcar_du_device;
  20. struct rcar_du_format_info {
  21. u32 fourcc;
  22. unsigned int bpp;
  23. unsigned int planes;
  24. unsigned int pnmr;
  25. unsigned int edf;
  26. };
  27. const struct rcar_du_format_info *rcar_du_format_info(u32 fourcc);
  28. int rcar_du_modeset_init(struct rcar_du_device *rcdu);
  29. int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev,
  30. struct drm_mode_create_dumb *args);
  31. #endif /* __RCAR_DU_KMS_H__ */