vsp1_dl.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * vsp1_dl.h -- R-Car VSP1 Display List
  3. *
  4. * Copyright (C) 2015 Renesas Corporation
  5. *
  6. * Contact: Laurent Pinchart ([email protected])
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #ifndef __VSP1_DL_H__
  14. #define __VSP1_DL_H__
  15. #include <linux/types.h>
  16. struct vsp1_device;
  17. struct vsp1_dl_fragment;
  18. struct vsp1_dl_list;
  19. struct vsp1_dl_manager;
  20. void vsp1_dlm_setup(struct vsp1_device *vsp1);
  21. struct vsp1_dl_manager *vsp1_dlm_create(struct vsp1_device *vsp1,
  22. unsigned int index,
  23. unsigned int prealloc);
  24. void vsp1_dlm_destroy(struct vsp1_dl_manager *dlm);
  25. void vsp1_dlm_reset(struct vsp1_dl_manager *dlm);
  26. void vsp1_dlm_irq_display_start(struct vsp1_dl_manager *dlm);
  27. void vsp1_dlm_irq_frame_end(struct vsp1_dl_manager *dlm);
  28. struct vsp1_dl_list *vsp1_dl_list_get(struct vsp1_dl_manager *dlm);
  29. void vsp1_dl_list_put(struct vsp1_dl_list *dl);
  30. void vsp1_dl_list_write(struct vsp1_dl_list *dl, u32 reg, u32 data);
  31. void vsp1_dl_list_commit(struct vsp1_dl_list *dl);
  32. struct vsp1_dl_body *vsp1_dl_fragment_alloc(struct vsp1_device *vsp1,
  33. unsigned int num_entries);
  34. void vsp1_dl_fragment_free(struct vsp1_dl_body *dlb);
  35. void vsp1_dl_fragment_write(struct vsp1_dl_body *dlb, u32 reg, u32 data);
  36. int vsp1_dl_list_add_fragment(struct vsp1_dl_list *dl,
  37. struct vsp1_dl_body *dlb);
  38. int vsp1_dl_list_add_chain(struct vsp1_dl_list *head, struct vsp1_dl_list *dl);
  39. #endif /* __VSP1_DL_H__ */