18c2ecf20Sopenharmony_ci/**************************************************************************
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciCopyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
48c2ecf20Sopenharmony_ciAll Rights Reserved.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining a
78c2ecf20Sopenharmony_cicopy of this software and associated documentation files (the
88c2ecf20Sopenharmony_ci"Software"), to deal in the Software without restriction, including
98c2ecf20Sopenharmony_ciwithout limitation the rights to use, copy, modify, merge, publish,
108c2ecf20Sopenharmony_cidistribute, sub license, and/or sell copies of the Software, and to
118c2ecf20Sopenharmony_cipermit persons to whom the Software is furnished to do so, subject to
128c2ecf20Sopenharmony_cithe following conditions:
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciThe above copyright notice and this permission notice (including the
158c2ecf20Sopenharmony_cinext paragraph) shall be included in all copies or substantial portions
168c2ecf20Sopenharmony_ciof the Software.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
198c2ecf20Sopenharmony_ciOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
208c2ecf20Sopenharmony_ciMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
218c2ecf20Sopenharmony_ciIN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
228c2ecf20Sopenharmony_ciANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
238c2ecf20Sopenharmony_ciTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
248c2ecf20Sopenharmony_ciSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci**************************************************************************/
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/*
298c2ecf20Sopenharmony_ci * Authors:
308c2ecf20Sopenharmony_ci *   Kevin E. Martin <kevin@precisioninsight.com>
318c2ecf20Sopenharmony_ci */
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci/* I/O register offsets */
348c2ecf20Sopenharmony_ci#define SRX VGA_SEQ_I
358c2ecf20Sopenharmony_ci#define GRX VGA_GFX_I
368c2ecf20Sopenharmony_ci#define ARX VGA_ATT_IW
378c2ecf20Sopenharmony_ci#define XRX 0x3D6
388c2ecf20Sopenharmony_ci#define MRX 0x3D2
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci/* VGA Color Palette Registers */
418c2ecf20Sopenharmony_ci#define DACMASK		0x3C6
428c2ecf20Sopenharmony_ci#define DACSTATE	0x3C7
438c2ecf20Sopenharmony_ci#define DACRX		0x3C7
448c2ecf20Sopenharmony_ci#define DACWX		0x3C8
458c2ecf20Sopenharmony_ci#define DACDATA		0x3C9
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci/* CRT Controller Registers (CRX) */
488c2ecf20Sopenharmony_ci#define START_ADDR_HI		0x0C
498c2ecf20Sopenharmony_ci#define START_ADDR_LO		0x0D
508c2ecf20Sopenharmony_ci#define VERT_SYNC_END		0x11
518c2ecf20Sopenharmony_ci#define EXT_VERT_TOTAL		0x30
528c2ecf20Sopenharmony_ci#define EXT_VERT_DISPLAY	0x31
538c2ecf20Sopenharmony_ci#define EXT_VERT_SYNC_START	0x32
548c2ecf20Sopenharmony_ci#define EXT_VERT_BLANK_START	0x33
558c2ecf20Sopenharmony_ci#define EXT_HORIZ_TOTAL		0x35
568c2ecf20Sopenharmony_ci#define EXT_HORIZ_BLANK		0x39
578c2ecf20Sopenharmony_ci#define EXT_START_ADDR		0x40
588c2ecf20Sopenharmony_ci#define EXT_START_ADDR_ENABLE	0x80
598c2ecf20Sopenharmony_ci#define EXT_OFFSET		0x41
608c2ecf20Sopenharmony_ci#define EXT_START_ADDR_HI	0x42
618c2ecf20Sopenharmony_ci#define INTERLACE_CNTL		0x70
628c2ecf20Sopenharmony_ci#define INTERLACE_ENABLE	0x80
638c2ecf20Sopenharmony_ci#define INTERLACE_DISABLE	0x00
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci/* Miscellaneous Output Register */
668c2ecf20Sopenharmony_ci#define MSR_R		0x3CC
678c2ecf20Sopenharmony_ci#define MSR_W		0x3C2
688c2ecf20Sopenharmony_ci#define IO_ADDR_SELECT	0x01
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci#define MDA_BASE	0x3B0
718c2ecf20Sopenharmony_ci#define CGA_BASE	0x3D0
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci/* System Configuration Extension Registers (XRX) */
748c2ecf20Sopenharmony_ci#define IO_CTNL		0x09
758c2ecf20Sopenharmony_ci#define EXTENDED_ATTR_CNTL	0x02
768c2ecf20Sopenharmony_ci#define EXTENDED_CRTC_CNTL	0x01
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#define ADDRESS_MAPPING	0x0A
798c2ecf20Sopenharmony_ci#define PACKED_MODE_ENABLE	0x04
808c2ecf20Sopenharmony_ci#define LINEAR_MODE_ENABLE	0x02
818c2ecf20Sopenharmony_ci#define PAGE_MAPPING_ENABLE	0x01
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#define BITBLT_CNTL	0x20
848c2ecf20Sopenharmony_ci#define COLEXP_MODE		0x30
858c2ecf20Sopenharmony_ci#define COLEXP_8BPP		0x00
868c2ecf20Sopenharmony_ci#define COLEXP_16BPP		0x10
878c2ecf20Sopenharmony_ci#define COLEXP_24BPP		0x20
888c2ecf20Sopenharmony_ci#define COLEXP_RESERVED		0x30
898c2ecf20Sopenharmony_ci#define CHIP_RESET		0x02
908c2ecf20Sopenharmony_ci#define BITBLT_STATUS		0x01
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci#define DISPLAY_CNTL	0x40
938c2ecf20Sopenharmony_ci#define VGA_WRAP_MODE		0x02
948c2ecf20Sopenharmony_ci#define VGA_WRAP_AT_256KB	0x00
958c2ecf20Sopenharmony_ci#define VGA_NO_WRAP		0x02
968c2ecf20Sopenharmony_ci#define GUI_MODE		0x01
978c2ecf20Sopenharmony_ci#define STANDARD_VGA_MODE	0x00
988c2ecf20Sopenharmony_ci#define HIRES_MODE		0x01
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci#define DRAM_ROW_TYPE	0x50
1018c2ecf20Sopenharmony_ci#define DRAM_ROW_0		0x07
1028c2ecf20Sopenharmony_ci#define DRAM_ROW_0_SDRAM	0x00
1038c2ecf20Sopenharmony_ci#define DRAM_ROW_0_EMPTY	0x07
1048c2ecf20Sopenharmony_ci#define DRAM_ROW_1		0x38
1058c2ecf20Sopenharmony_ci#define DRAM_ROW_1_SDRAM	0x00
1068c2ecf20Sopenharmony_ci#define DRAM_ROW_1_EMPTY	0x38
1078c2ecf20Sopenharmony_ci#define DRAM_ROW_CNTL_LO 0x51
1088c2ecf20Sopenharmony_ci#define DRAM_CAS_LATENCY	0x10
1098c2ecf20Sopenharmony_ci#define DRAM_RAS_TIMING		0x08
1108c2ecf20Sopenharmony_ci#define DRAM_RAS_PRECHARGE	0x04
1118c2ecf20Sopenharmony_ci#define DRAM_ROW_CNTL_HI 0x52
1128c2ecf20Sopenharmony_ci#define DRAM_EXT_CNTL	0x53
1138c2ecf20Sopenharmony_ci#define DRAM_REFRESH_RATE	0x03
1148c2ecf20Sopenharmony_ci#define DRAM_REFRESH_DISABLE	0x00
1158c2ecf20Sopenharmony_ci#define DRAM_REFRESH_60HZ	0x01
1168c2ecf20Sopenharmony_ci#define DRAM_REFRESH_FAST_TEST	0x02
1178c2ecf20Sopenharmony_ci#define DRAM_REFRESH_RESERVED	0x03
1188c2ecf20Sopenharmony_ci#define DRAM_TIMING	0x54
1198c2ecf20Sopenharmony_ci#define DRAM_ROW_BNDRY_0 0x55
1208c2ecf20Sopenharmony_ci#define DRAM_ROW_BNDRY_1 0x56
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci#define DPMS_SYNC_SELECT 0x61
1238c2ecf20Sopenharmony_ci#define VSYNC_CNTL		0x08
1248c2ecf20Sopenharmony_ci#define VSYNC_ON		0x00
1258c2ecf20Sopenharmony_ci#define VSYNC_OFF		0x08
1268c2ecf20Sopenharmony_ci#define HSYNC_CNTL		0x02
1278c2ecf20Sopenharmony_ci#define HSYNC_ON		0x00
1288c2ecf20Sopenharmony_ci#define HSYNC_OFF		0x02
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_ci#define PIXPIPE_CONFIG_0 0x80
1318c2ecf20Sopenharmony_ci#define DAC_8_BIT		0x80
1328c2ecf20Sopenharmony_ci#define DAC_6_BIT		0x00
1338c2ecf20Sopenharmony_ci#define HW_CURSOR_ENABLE	0x10
1348c2ecf20Sopenharmony_ci#define EXTENDED_PALETTE	0x01
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci#define PIXPIPE_CONFIG_1 0x81
1378c2ecf20Sopenharmony_ci#define DISPLAY_COLOR_MODE	0x0F
1388c2ecf20Sopenharmony_ci#define DISPLAY_VGA_MODE	0x00
1398c2ecf20Sopenharmony_ci#define DISPLAY_8BPP_MODE	0x02
1408c2ecf20Sopenharmony_ci#define DISPLAY_15BPP_MODE	0x04
1418c2ecf20Sopenharmony_ci#define DISPLAY_16BPP_MODE	0x05
1428c2ecf20Sopenharmony_ci#define DISPLAY_24BPP_MODE	0x06
1438c2ecf20Sopenharmony_ci#define DISPLAY_32BPP_MODE	0x07
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci#define PIXPIPE_CONFIG_2 0x82
1468c2ecf20Sopenharmony_ci#define DISPLAY_GAMMA_ENABLE	0x08
1478c2ecf20Sopenharmony_ci#define DISPLAY_GAMMA_DISABLE	0x00
1488c2ecf20Sopenharmony_ci#define OVERLAY_GAMMA_ENABLE	0x04
1498c2ecf20Sopenharmony_ci#define OVERLAY_GAMMA_DISABLE	0x00
1508c2ecf20Sopenharmony_ci
1518c2ecf20Sopenharmony_ci#define CURSOR_CONTROL	0xA0
1528c2ecf20Sopenharmony_ci#define CURSOR_ORIGIN_SCREEN	0x00
1538c2ecf20Sopenharmony_ci#define CURSOR_ORIGIN_DISPLAY	0x10
1548c2ecf20Sopenharmony_ci#define CURSOR_MODE		0x07
1558c2ecf20Sopenharmony_ci#define CURSOR_MODE_DISABLE	0x00
1568c2ecf20Sopenharmony_ci#define CURSOR_MODE_32_4C_AX	0x01
1578c2ecf20Sopenharmony_ci#define CURSOR_MODE_128_2C	0x02
1588c2ecf20Sopenharmony_ci#define CURSOR_MODE_128_1C	0x03
1598c2ecf20Sopenharmony_ci#define CURSOR_MODE_64_3C	0x04
1608c2ecf20Sopenharmony_ci#define CURSOR_MODE_64_4C_AX	0x05
1618c2ecf20Sopenharmony_ci#define CURSOR_MODE_64_4C	0x06
1628c2ecf20Sopenharmony_ci#define CURSOR_MODE_RESERVED	0x07
1638c2ecf20Sopenharmony_ci#define CURSOR_BASEADDR_LO 0xA2
1648c2ecf20Sopenharmony_ci#define CURSOR_BASEADDR_HI 0xA3
1658c2ecf20Sopenharmony_ci#define CURSOR_X_LO	0xA4
1668c2ecf20Sopenharmony_ci#define CURSOR_X_HI	0xA5
1678c2ecf20Sopenharmony_ci#define CURSOR_X_POS		0x00
1688c2ecf20Sopenharmony_ci#define CURSOR_X_NEG		0x80
1698c2ecf20Sopenharmony_ci#define CURSOR_Y_LO	0xA6
1708c2ecf20Sopenharmony_ci#define CURSOR_Y_HI	0xA7
1718c2ecf20Sopenharmony_ci#define CURSOR_Y_POS		0x00
1728c2ecf20Sopenharmony_ci#define CURSOR_Y_NEG		0x80
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci#define VCLK2_VCO_M	0xC8
1758c2ecf20Sopenharmony_ci#define VCLK2_VCO_N	0xC9
1768c2ecf20Sopenharmony_ci#define VCLK2_VCO_MN_MSBS 0xCA
1778c2ecf20Sopenharmony_ci#define VCO_N_MSBS		0x30
1788c2ecf20Sopenharmony_ci#define VCO_M_MSBS		0x03
1798c2ecf20Sopenharmony_ci#define VCLK2_VCO_DIV_SEL 0xCB
1808c2ecf20Sopenharmony_ci#define POST_DIV_SELECT		0x70
1818c2ecf20Sopenharmony_ci#define POST_DIV_1		0x00
1828c2ecf20Sopenharmony_ci#define POST_DIV_2		0x10
1838c2ecf20Sopenharmony_ci#define POST_DIV_4		0x20
1848c2ecf20Sopenharmony_ci#define POST_DIV_8		0x30
1858c2ecf20Sopenharmony_ci#define POST_DIV_16		0x40
1868c2ecf20Sopenharmony_ci#define POST_DIV_32		0x50
1878c2ecf20Sopenharmony_ci#define VCO_LOOP_DIV_BY_4M	0x00
1888c2ecf20Sopenharmony_ci#define VCO_LOOP_DIV_BY_16M	0x04
1898c2ecf20Sopenharmony_ci#define REF_CLK_DIV_BY_5	0x02
1908c2ecf20Sopenharmony_ci#define REF_DIV_4		0x00
1918c2ecf20Sopenharmony_ci#define REF_DIV_1		0x01
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_ci#define PLL_CNTL	0xCE
1948c2ecf20Sopenharmony_ci#define PLL_MEMCLK_SEL		0x03
1958c2ecf20Sopenharmony_ci#define PLL_MEMCLK__66667KHZ	0x00
1968c2ecf20Sopenharmony_ci#define PLL_MEMCLK__75000KHZ	0x01
1978c2ecf20Sopenharmony_ci#define PLL_MEMCLK__88889KHZ	0x02
1988c2ecf20Sopenharmony_ci#define PLL_MEMCLK_100000KHZ	0x03
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci/* Multimedia Extension Registers (MRX) */
2018c2ecf20Sopenharmony_ci#define ACQ_CNTL_1	0x02
2028c2ecf20Sopenharmony_ci#define ACQ_CNTL_2	0x03
2038c2ecf20Sopenharmony_ci#define FRAME_CAP_MODE		0x01
2048c2ecf20Sopenharmony_ci#define CONT_CAP_MODE		0x00
2058c2ecf20Sopenharmony_ci#define SINGLE_CAP_MODE		0x01
2068c2ecf20Sopenharmony_ci#define ACQ_CNTL_3	0x04
2078c2ecf20Sopenharmony_ci#define COL_KEY_CNTL_1		0x3C
2088c2ecf20Sopenharmony_ci#define BLANK_DISP_OVERLAY	0x20
2098c2ecf20Sopenharmony_ci
2108c2ecf20Sopenharmony_ci/* FIFOs */
2118c2ecf20Sopenharmony_ci#define LP_FIFO		0x1000
2128c2ecf20Sopenharmony_ci#define HP_FIFO		0x2000
2138c2ecf20Sopenharmony_ci#define INSTPNT		0x3040
2148c2ecf20Sopenharmony_ci#define LP_FIFO_COUNT	0x3040
2158c2ecf20Sopenharmony_ci#define HP_FIFO_COUNT	0x3041
2168c2ecf20Sopenharmony_ci
2178c2ecf20Sopenharmony_ci/* FIFO Commands */
2188c2ecf20Sopenharmony_ci#define CLIENT		0xE0000000
2198c2ecf20Sopenharmony_ci#define CLIENT_2D	0x60000000
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci/* Command Parser Mode Register */
2228c2ecf20Sopenharmony_ci#define COMPARS		0x3038
2238c2ecf20Sopenharmony_ci#define TWO_D_INST_DISABLE		0x08
2248c2ecf20Sopenharmony_ci#define THREE_D_INST_DISABLE		0x04
2258c2ecf20Sopenharmony_ci#define STATE_VAR_UPDATE_DISABLE	0x02
2268c2ecf20Sopenharmony_ci#define PAL_STIP_DISABLE		0x01
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci/* Interrupt Control Registers */
2298c2ecf20Sopenharmony_ci#define IER		0x3030
2308c2ecf20Sopenharmony_ci#define IIR		0x3032
2318c2ecf20Sopenharmony_ci#define IMR		0x3034
2328c2ecf20Sopenharmony_ci#define ISR		0x3036
2338c2ecf20Sopenharmony_ci#define VMIINTB_EVENT		0x2000
2348c2ecf20Sopenharmony_ci#define GPIO4_INT		0x1000
2358c2ecf20Sopenharmony_ci#define DISP_FLIP_EVENT		0x0800
2368c2ecf20Sopenharmony_ci#define DVD_PORT_DMA		0x0400
2378c2ecf20Sopenharmony_ci#define DISP_VBLANK		0x0200
2388c2ecf20Sopenharmony_ci#define FIFO_EMPTY_DMA_DONE	0x0100
2398c2ecf20Sopenharmony_ci#define INST_PARSER_ERROR	0x0080
2408c2ecf20Sopenharmony_ci#define USER_DEFINED		0x0040
2418c2ecf20Sopenharmony_ci#define BREAKPOINT		0x0020
2428c2ecf20Sopenharmony_ci#define DISP_HORIZ_COUNT	0x0010
2438c2ecf20Sopenharmony_ci#define DISP_VSYNC		0x0008
2448c2ecf20Sopenharmony_ci#define CAPTURE_HORIZ_COUNT	0x0004
2458c2ecf20Sopenharmony_ci#define CAPTURE_VSYNC		0x0002
2468c2ecf20Sopenharmony_ci#define THREE_D_PIPE_FLUSHED	0x0001
2478c2ecf20Sopenharmony_ci
2488c2ecf20Sopenharmony_ci/* FIFO Watermark and Burst Length Control Register */
2498c2ecf20Sopenharmony_ci#define FWATER_BLC	0x00006000
2508c2ecf20Sopenharmony_ci#define LMI_BURST_LENGTH	0x7F000000
2518c2ecf20Sopenharmony_ci#define LMI_FIFO_WATERMARK	0x003F0000
2528c2ecf20Sopenharmony_ci#define AGP_BURST_LENGTH	0x00007F00
2538c2ecf20Sopenharmony_ci#define AGP_FIFO_WATERMARK	0x0000003F
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_ci/* BitBLT Registers */
2568c2ecf20Sopenharmony_ci#define SRC_DST_PITCH	0x00040000
2578c2ecf20Sopenharmony_ci#define DST_PITCH		0x1FFF0000
2588c2ecf20Sopenharmony_ci#define SRC_PITCH		0x00001FFF
2598c2ecf20Sopenharmony_ci#define COLEXP_BG_COLOR	0x00040004
2608c2ecf20Sopenharmony_ci#define COLEXP_FG_COLOR	0x00040008
2618c2ecf20Sopenharmony_ci#define MONO_SRC_CNTL	0x0004000C
2628c2ecf20Sopenharmony_ci#define MONO_USE_COLEXP		0x00000000
2638c2ecf20Sopenharmony_ci#define MONO_USE_SRCEXP		0x08000000
2648c2ecf20Sopenharmony_ci#define MONO_DATA_ALIGN		0x07000000
2658c2ecf20Sopenharmony_ci#define MONO_BIT_ALIGN		0x01000000
2668c2ecf20Sopenharmony_ci#define MONO_BYTE_ALIGN		0x02000000
2678c2ecf20Sopenharmony_ci#define MONO_WORD_ALIGN		0x03000000
2688c2ecf20Sopenharmony_ci#define MONO_DWORD_ALIGN	0x04000000
2698c2ecf20Sopenharmony_ci#define MONO_QWORD_ALIGN	0x05000000
2708c2ecf20Sopenharmony_ci#define MONO_SRC_INIT_DSCRD	0x003F0000
2718c2ecf20Sopenharmony_ci#define MONO_SRC_RIGHT_CLIP	0x00003F00
2728c2ecf20Sopenharmony_ci#define MONO_SRC_LEFT_CLIP	0x0000003F
2738c2ecf20Sopenharmony_ci#define BITBLT_CONTROL	0x00040010
2748c2ecf20Sopenharmony_ci#define BLTR_STATUS		0x80000000
2758c2ecf20Sopenharmony_ci#define DYN_DEPTH		0x03000000
2768c2ecf20Sopenharmony_ci#define DYN_DEPTH_8BPP		0x00000000
2778c2ecf20Sopenharmony_ci#define DYN_DEPTH_16BPP		0x01000000
2788c2ecf20Sopenharmony_ci#define DYN_DEPTH_24BPP		0x02000000
2798c2ecf20Sopenharmony_ci#define DYN_DEPTH_32BPP		0x03000000	/* Unimplemented on the i740 */
2808c2ecf20Sopenharmony_ci#define DYN_DEPTH_ENABLE	0x00800000
2818c2ecf20Sopenharmony_ci#define PAT_VERT_ALIGN		0x00700000
2828c2ecf20Sopenharmony_ci#define SOLID_PAT_SELECT	0x00080000
2838c2ecf20Sopenharmony_ci#define PAT_IS_IN_COLOR		0x00000000
2848c2ecf20Sopenharmony_ci#define PAT_IS_MONO		0x00040000
2858c2ecf20Sopenharmony_ci#define MONO_PAT_TRANSP		0x00020000
2868c2ecf20Sopenharmony_ci#define COLOR_TRANSP_ROP	0x00000000
2878c2ecf20Sopenharmony_ci#define COLOR_TRANSP_DST	0x00008000
2888c2ecf20Sopenharmony_ci#define COLOR_TRANSP_EQ		0x00000000
2898c2ecf20Sopenharmony_ci#define COLOR_TRANSP_NOT_EQ	0x00010000
2908c2ecf20Sopenharmony_ci#define COLOR_TRANSP_ENABLE	0x00004000
2918c2ecf20Sopenharmony_ci#define MONO_SRC_TRANSP		0x00002000
2928c2ecf20Sopenharmony_ci#define SRC_IS_IN_COLOR		0x00000000
2938c2ecf20Sopenharmony_ci#define SRC_IS_MONO		0x00001000
2948c2ecf20Sopenharmony_ci#define SRC_USE_SRC_ADDR	0x00000000
2958c2ecf20Sopenharmony_ci#define SRC_USE_BLTDATA		0x00000400
2968c2ecf20Sopenharmony_ci#define BLT_TOP_TO_BOT		0x00000000
2978c2ecf20Sopenharmony_ci#define BLT_BOT_TO_TOP		0x00000200
2988c2ecf20Sopenharmony_ci#define BLT_LEFT_TO_RIGHT	0x00000000
2998c2ecf20Sopenharmony_ci#define BLT_RIGHT_TO_LEFT	0x00000100
3008c2ecf20Sopenharmony_ci#define BLT_ROP			0x000000FF
3018c2ecf20Sopenharmony_ci#define BLT_PAT_ADDR	0x00040014
3028c2ecf20Sopenharmony_ci#define BLT_SRC_ADDR	0x00040018
3038c2ecf20Sopenharmony_ci#define BLT_DST_ADDR	0x0004001C
3048c2ecf20Sopenharmony_ci#define BLT_DST_H_W	0x00040020
3058c2ecf20Sopenharmony_ci#define BLT_DST_HEIGHT		0x1FFF0000
3068c2ecf20Sopenharmony_ci#define BLT_DST_WIDTH		0x00001FFF
3078c2ecf20Sopenharmony_ci#define SRCEXP_BG_COLOR	0x00040024
3088c2ecf20Sopenharmony_ci#define SRCEXP_FG_COLOR	0x00040028
3098c2ecf20Sopenharmony_ci#define BLTDATA		0x00050000
310