exynos_drm_fb.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  3. * Authors:
  4. * Inki Dae <inki.dae@samsung.com>
  5. * Joonyoung Shim <jy0922.shim@samsung.com>
  6. * Seung-Woo Kim <sw0312.kim@samsung.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. */
  13. #ifndef _EXYNOS_DRM_FB_H_
  14. #define _EXYNOS_DRM_FB_H
  15. struct drm_framebuffer *
  16. exynos_drm_framebuffer_init(struct drm_device *dev,
  17. struct drm_mode_fb_cmd2 *mode_cmd,
  18. struct drm_gem_object *obj);
  19. /* get memory information of a drm framebuffer */
  20. struct exynos_drm_gem_buf *exynos_drm_fb_buffer(struct drm_framebuffer *fb,
  21. int index);
  22. void exynos_drm_mode_config_init(struct drm_device *dev);
  23. /* set a buffer count to drm framebuffer. */
  24. void exynos_drm_fb_set_buf_cnt(struct drm_framebuffer *fb,
  25. unsigned int cnt);
  26. /* get a buffer count to drm framebuffer. */
  27. unsigned int exynos_drm_fb_get_buf_cnt(struct drm_framebuffer *fb);
  28. #endif