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