1 #ifndef __PXA3XX_GCU_H__
2 #define __PXA3XX_GCU_H__
4 #include <linux/types.h>
6 /* Number of 32bit words in display list (ring buffer). */
7 #define PXA3XX_GCU_BUFFER_WORDS ((256 * 1024 - 256) / 4)
9 /* To be increased when breaking the ABI */
10 #define PXA3XX_GCU_SHARED_MAGIC 0x30000001
12 #define PXA3XX_GCU_BATCH_WORDS 8192
14 struct pxa3xx_gcu_shared {
15 u32 buffer[PXA3XX_GCU_BUFFER_WORDS];
19 unsigned long buffer_phys;
21 unsigned int num_words;
22 unsigned int num_writes;
23 unsigned int num_done;
24 unsigned int num_interrupts;
25 unsigned int num_wait_idle;
26 unsigned int num_wait_free;
27 unsigned int num_idle;
32 /* Initialization and synchronization.
33 * Hardware is started upon write(). */
34 #define PXA3XX_GCU_IOCTL_RESET _IO('G', 0)
35 #define PXA3XX_GCU_IOCTL_WAIT_IDLE _IO('G', 2)
37 #endif /* __PXA3XX_GCU_H__ */