pxa3xx-gcu.h 929 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __PXA3XX_GCU_H__
  3. #define __PXA3XX_GCU_H__
  4. #include <linux/types.h>
  5. /* Number of 32bit words in display list (ring buffer). */
  6. #define PXA3XX_GCU_BUFFER_WORDS ((256 * 1024 - 256) / 4)
  7. /* To be increased when breaking the ABI */
  8. #define PXA3XX_GCU_SHARED_MAGIC 0x30000001
  9. #define PXA3XX_GCU_BATCH_WORDS 8192
  10. struct pxa3xx_gcu_shared {
  11. u32 buffer[PXA3XX_GCU_BUFFER_WORDS];
  12. bool hw_running;
  13. unsigned long buffer_phys;
  14. unsigned int num_words;
  15. unsigned int num_writes;
  16. unsigned int num_done;
  17. unsigned int num_interrupts;
  18. unsigned int num_wait_idle;
  19. unsigned int num_wait_free;
  20. unsigned int num_idle;
  21. u32 magic;
  22. };
  23. /* Initialization and synchronization.
  24. * Hardware is started upon write(). */
  25. #define PXA3XX_GCU_IOCTL_RESET _IO('G', 0)
  26. #define PXA3XX_GCU_IOCTL_WAIT_IDLE _IO('G', 2)
  27. #endif /* __PXA3XX_GCU_H__ */