rockchip_drm_fb.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
  3. * Author:Mark Yao <mark.yao@rock-chips.com>
  4. *
  5. * This software is licensed under the terms of the GNU General Public
  6. * License version 2, as published by the Free Software Foundation, and
  7. * may be copied, distributed, and modified under those terms.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef _ROCKCHIP_DRM_FB_H
  15. #define _ROCKCHIP_DRM_FB_H
  16. struct drm_framebuffer *
  17. rockchip_drm_framebuffer_init(struct drm_device *dev,
  18. struct drm_mode_fb_cmd2 *mode_cmd,
  19. struct drm_gem_object *obj);
  20. void rockchip_drm_framebuffer_fini(struct drm_framebuffer *fb);
  21. void rockchip_drm_mode_config_init(struct drm_device *dev);
  22. struct drm_gem_object *rockchip_fb_get_gem_obj(struct drm_framebuffer *fb,
  23. unsigned int plane);
  24. #endif /* _ROCKCHIP_DRM_FB_H */