sti_vid.h 635 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) STMicroelectronics SA 2014
  3. * Author: Fabien Dessenne <fabien.dessenne@st.com> for STMicroelectronics.
  4. * License terms: GNU General Public License (GPL), version 2
  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, int id,
  24. void __iomem *baseaddr);
  25. #endif