mtk_drm_fb.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2015 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef MTK_DRM_FB_H
  14. #define MTK_DRM_FB_H
  15. size_t mtk_fb_get_size(struct drm_framebuffer *fb);
  16. struct drm_gem_object *mtk_fb_get_gem_obj(struct drm_framebuffer *fb);
  17. dma_addr_t mtk_fb_get_dma(struct drm_framebuffer *fb);
  18. int mtk_fb_wait(struct drm_framebuffer *fb);
  19. struct drm_framebuffer *
  20. mtk_drm_mode_fb_create(struct drm_device *dev, struct drm_file *file,
  21. const struct drm_mode_fb_cmd2 *cmd);
  22. struct drm_framebuffer *
  23. mtk_drm_framebuffer_create(struct drm_device *dev,
  24. const struct drm_mode_fb_cmd2 *mode,
  25. struct drm_gem_object *obj);
  26. bool mtk_drm_fb_is_secure(struct drm_framebuffer *fb);
  27. #endif /* MTK_DRM_FB_H */