mtk_drm_fbdev.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 2016 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_FBDEV_H
  14. #define MTK_DRM_FBDEV_H
  15. struct tag_videolfb {
  16. u64 fb_base;
  17. u32 islcmfound;
  18. u32 fps;
  19. u32 vram;
  20. char lcmname[1]; /* this is the minimum size */
  21. };
  22. #ifdef CONFIG_DRM_FBDEV_EMULATION
  23. int mtk_fbdev_init(struct drm_device *dev);
  24. void mtk_fbdev_fini(struct drm_device *dev);
  25. #else
  26. int mtk_fbdev_init(struct drm_device *dev)
  27. {
  28. return 0;
  29. }
  30. void mtk_fbdev_fini(struct drm_device *dev)
  31. {
  32. }
  33. #endif /* CONFIG_DRM_FBDEV_EMULATION */
  34. int _parse_tag_videolfb(unsigned int *vramsize, phys_addr_t *fb_base,
  35. unsigned int *fps);
  36. bool mtk_drm_lcm_is_connect(void);
  37. int free_fb_buf(void);
  38. #define MTKFB_FACTORY_AUTO_TEST _IOR('O', 25, unsigned long)
  39. int pan_display_test(int frame_num, int bpp);
  40. #endif /* MTK_DRM_FBDEV_H */