sti_vid.h 709 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) STMicroelectronics SA 2014
  4. * Author: Fabien Dessenne <[email protected]> for STMicroelectronics.
  5. */
  6. #ifndef _STI_VID_H_
  7. #define _STI_VID_H_
  8. /**
  9. * STI VID structure
  10. *
  11. * @dev: driver device
  12. * @regs: vid registers
  13. * @id: id of the vid
  14. */
  15. struct sti_vid {
  16. struct device *dev;
  17. void __iomem *regs;
  18. int id;
  19. };
  20. void sti_vid_commit(struct sti_vid *vid,
  21. struct drm_plane_state *state);
  22. void sti_vid_disable(struct sti_vid *vid);
  23. struct sti_vid *sti_vid_create(struct device *dev, struct drm_device *drm_dev,
  24. int id, void __iomem *baseaddr);
  25. void vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor);
  26. #endif