mdp5_smp.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (c) 2014, The Linux Foundation. All rights reserved.
  3. * Copyright (C) 2013 Red Hat
  4. * Author: Rob Clark <robdclark@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published by
  8. * the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along with
  16. * this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef __MDP5_SMP_H__
  19. #define __MDP5_SMP_H__
  20. #include "msm_drv.h"
  21. struct mdp5_client_smp_state {
  22. mdp5_smp_state_t inuse;
  23. mdp5_smp_state_t configured;
  24. mdp5_smp_state_t pending;
  25. };
  26. struct mdp5_kms;
  27. struct mdp5_smp;
  28. /*
  29. * SMP module prototypes:
  30. * mdp5_smp_init() returns a SMP @handler,
  31. * which is then used to call the other mdp5_smp_*(handler, ...) functions.
  32. */
  33. struct mdp5_smp *mdp5_smp_init(struct drm_device *dev, const struct mdp5_smp_block *cfg);
  34. void mdp5_smp_destroy(struct mdp5_smp *smp);
  35. int mdp5_smp_request(struct mdp5_smp *smp, enum mdp5_pipe pipe,
  36. const struct mdp_format *format, u32 width, bool hdecim);
  37. void mdp5_smp_configure(struct mdp5_smp *smp, enum mdp5_pipe pipe);
  38. void mdp5_smp_commit(struct mdp5_smp *smp, enum mdp5_pipe pipe);
  39. void mdp5_smp_release(struct mdp5_smp *smp, enum mdp5_pipe pipe);
  40. #endif /* __MDP5_SMP_H__ */