mdss_mdp_splash_logo.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (c) 2014, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef MDSS_MDP_SPLASH_LOGO
  14. #define MDSS_MDP_SPLASH_LOGO
  15. #include <linux/types.h>
  16. #include <linux/notifier.h>
  17. #include <linux/kthread.h>
  18. #include <linux/completion.h>
  19. struct msm_fb_splash_info {
  20. struct task_struct *splash_thread;
  21. bool splash_logo_enabled;
  22. bool iommu_dynamic_attached;
  23. struct notifier_block notifier;
  24. uint32_t frame_done_count;
  25. struct completion frame_done;
  26. struct ion_handle *ion_handle;
  27. dma_addr_t iova;
  28. void *splash_buffer;
  29. int pipe_ndx[2];
  30. bool splash_pipe_allocated;
  31. };
  32. struct msm_fb_data_type;
  33. void mdss_mdp_release_splash_pipe(struct msm_fb_data_type *mfd);
  34. int mdss_mdp_splash_cleanup(struct msm_fb_data_type *mfd,
  35. bool use_borderfill);
  36. int mdss_mdp_splash_init(struct msm_fb_data_type *mfd);
  37. #endif