#define IMS332_REG_BOOT 0x000
#define IMS332_REG_HALF_SYNCH 0x021
#define IMS332_REG_BACK_PORCH 0x022
#define IMS332_REG_DISPLAY 0x023
#define IMS332_REG_SHORT_DIS 0x024
#define IMS332_REG_BROAD_PULSE 0x025
#define IMS332_REG_V_SYNC 0x026
#define IMS332_REG_V_PRE_EQUALIZE 0x027
#define IMS332_REG_V_POST_EQUALIZE 0x028
#define IMS332_REG_V_BLANK 0x029
#define IMS332_REG_V_DISPLAY 0x02a
#define IMS332_REG_LINE_TIME 0x02b
#define IMS332_REG_LINE_START 0x02c
#define IMS332_REG_MEM_INIT 0x02d
#define IMS332_REG_XFER_DELAY 0x02e
#define IMS332_REG_COLOR_MASK 0x040
#define IMS332_REG_CSR_A 0x060
#define IMS332_REG_CSR_B 0x070
#define IMS332_REG_TOP_SCREEN 0x080
#define IMS332_REG_CURSOR_LUT_0 0x0a1
#define IMS332_REG_CURSOR_LUT_1 0x0a2
#define IMS332_REG_CURSOR_LUT_2 0x0a3
#define IMS332_REG_RGB_CKSUM_0 0x0c0
#define IMS332_REG_RGB_CKSUM_1 0x0c1
#define IMS332_REG_RGB_CKSUM_2 0x0c2
#define IMS332_REG_CURSOR_LOC 0x0c7
#define IMS332_REG_LUT_BASE 0x100
#define IMS332_REG_LUT_END 0x1ff
#define IMS332_REG_CURSOR_RAM 0x200
#define IMS332_REG_CURSOR_RAM_END 0x3ff
#define IMS332_CSR_A_VTG_ENABLE 0x000001
#define IMS332_CSR_A_INTERLACED 0x000002
#define IMS332_CSR_A_CCIR 0x000004
#define IMS332_CSR_A_SLAVE_SYNC 0x000008
#define IMS332_CSR_A_PLAIN_SYNC 0x000010
#define IMS332_CSR_A_SEPARATE_SYNC 0x000020
#define IMS332_CSR_A_VIDEO_ONLY 0x000040
#define IMS332_CSR_A_BLANK_PEDESTAL 0x000080
#define IMS332_CSR_A_CBLANK_IS_OUT 0x000100
#define IMS332_CSR_A_CBLANK_NO_DELAY 0x000200
#define IMS332_CSR_A_FORCE_BLANK 0x000400
#define IMS332_CSR_A_BLANK_DISABLE 0x000800
#define IMS332_CSR_A_VRAM_INCREMENT 0x003000
# define IMS332_VRAM_INC_1 0x000000
# define IMS332_VRAM_INC_256 0x001000
# define IMS332_VRAM_INC_512 0x002000
# define IMS332_VRAM_INC_1024 0x003000
#define IMS332_CSR_A_DMA_DISABLE 0x004000
#define IMS332_CSR_A_SYNC_DELAY_MASK 0x038000
#define IMS332_CSR_A_PIXEL_INTERLEAVE 0x040000
#define IMS332_CSR_A_DELAYED_SAMPLING 0x080000
#define IMS332_CSR_A_BITS_PER_PIXEL 0x700000
# define IMS332_BPP_1 0x000000
# define IMS332_BPP_2 0x100000
# define IMS332_BPP_4 0x200000
# define IMS332_BPP_8 0x300000
# define IMS332_BPP_15 0x400000
# define IMS332_BPP_16 0x500000
#define IMS332_CSR_A_DISABLE_CURSOR 0x800000
#define IMS332_BOOT_PLL 0x00001f
#define IMS332_BOOT_CLOCK_PLL 0x000020
#define IMS332_BOOT_64_BIT_MODE 0x000040
#define IMS332_BOOT_xxx 0xffff80