mtk_dump.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2019 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 __MTKFB_DUMP_H
  14. #define __MTKFB_DUMP_H
  15. #include "mtk_drm_ddp_comp.h"
  16. int mtk_ovl_dump(struct mtk_ddp_comp *comp);
  17. int mtk_rdma_dump(struct mtk_ddp_comp *comp);
  18. int mtk_wdma_dump(struct mtk_ddp_comp *comp);
  19. int mtk_rsz_dump(struct mtk_ddp_comp *comp);
  20. int mtk_dsi_dump(struct mtk_ddp_comp *comp);
  21. int mtk_dp_intf_dump(struct mtk_ddp_comp *comp);
  22. int mtk_postmask_dump(struct mtk_ddp_comp *comp);
  23. void mtk_color_dump(struct mtk_ddp_comp *comp);
  24. void mtk_ccorr_dump(struct mtk_ddp_comp *comp);
  25. void mtk_dither_dump(struct mtk_ddp_comp *comp);
  26. void mtk_aal_dump(struct mtk_ddp_comp *comp);
  27. void mtk_dmdp_aal_dump(struct mtk_ddp_comp *comp);
  28. void mtk_gamma_dump(struct mtk_ddp_comp *comp);
  29. void mtk_dsc_dump(struct mtk_ddp_comp *comp);
  30. void mtk_merge_dump(struct mtk_ddp_comp *comp);
  31. int mtk_ovl_analysis(struct mtk_ddp_comp *comp);
  32. int mtk_rdma_analysis(struct mtk_ddp_comp *comp);
  33. int mtk_wdma_analysis(struct mtk_ddp_comp *comp);
  34. int mtk_rsz_analysis(struct mtk_ddp_comp *comp);
  35. int mtk_dsi_analysis(struct mtk_ddp_comp *comp);
  36. int mtk_dp_intf_analysis(struct mtk_ddp_comp *comp);
  37. int mtk_postmask_analysis(struct mtk_ddp_comp *comp);
  38. int mtk_dsc_analysis(struct mtk_ddp_comp *comp);
  39. int mtk_merge_analysis(struct mtk_ddp_comp *comp);
  40. int mtk_dump_reg(struct mtk_ddp_comp *comp);
  41. int mtk_dump_analysis(struct mtk_ddp_comp *comp);
  42. const char *mtk_dump_comp_str(struct mtk_ddp_comp *comp);
  43. const char *mtk_dump_comp_str_id(unsigned int id);
  44. void mtk_serial_dump_reg(void __iomem *base, unsigned int offset,
  45. unsigned int num);
  46. /* stop dump if offx is negative */
  47. void mtk_cust_dump_reg(void __iomem *base, int off1, int off2, int o3, int o4);
  48. #endif