shmob_drm_kms.h 842 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * shmob_drm_kms.h -- SH Mobile DRM Mode Setting
  3. *
  4. * Copyright (C) 2012 Renesas Electronics Corporation
  5. *
  6. * 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 __SHMOB_DRM_KMS_H__
  14. #define __SHMOB_DRM_KMS_H__
  15. #include <linux/types.h>
  16. struct drm_gem_cma_object;
  17. struct shmob_drm_device;
  18. struct shmob_drm_format_info {
  19. u32 fourcc;
  20. unsigned int bpp;
  21. bool yuv;
  22. u32 lddfr;
  23. unsigned int meram;
  24. };
  25. const struct shmob_drm_format_info *shmob_drm_format_info(u32 fourcc);
  26. int shmob_drm_modeset_init(struct shmob_drm_device *sdev);
  27. #endif /* __SHMOB_DRM_KMS_H__ */