00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #define FNORM_TO_F0915(x) (((uint32) ((x*256) * (1 << 15))) & 0x00FFFFFF)
00017 #define F1220(x) ((uint32)((x) * (1 << 20)))
00018 #define F1616(x) ((uint32)((x) * (1 << 16)))
00019
00020 #define DWGSYNC 0x2C4C
00021 #define SYNC_DMA_BUSY 0x8325340
00022
00023 #define OPMODE 0x1E54
00024
00025
00026
00027 #define ALPHACTRL 0x2C7C
00028 #define ALPHASTART 0x2C70
00029 #define ALPHAXINC 0x2C74
00030 #define ALPHAYINC 0x2C78
00031
00032
00033
00034 #define TEXCTL 0x2C30
00035 #define TEXCTL2 0x2C3C
00036 #define TEXFILTER 0x2C58
00037 #define TEXWIDTH 0x2C28
00038 #define TEXHEIGHT 0x2C2C
00039 #define TEXORG 0x2C24
00040 #define TEXTRANS 0x2C34
00041 #define TEXTRANSHIGH 0x2C38
00042
00043 #define TMR0 0x2C00
00044 #define TMR1 0x2C04
00045 #define TMR2 0x2C08
00046 #define TMR3 0x2C0C
00047 #define TMR4 0x2C10
00048 #define TMR5 0x2C14
00049 #define TMR6 0x2C18
00050 #define TMR7 0x2C1C
00051 #define TMR8 0x2C20
00052
00053
00054
00055 #define SRC_ALPHA 0x004
00056 #define DST_ONE_MINUS_SRC_ALPHA 0x050
00057 #define ALPHACHANNEL 0x100
00058
00059
00060
00061 #define LINEXT 0x00100
00062 #define TW16 0x00003
00063 #define MIN_BILINEAR 0x00002
00064 #define MAG_BILINEAR 0x00020
00065 #define DECALDIS 0x00004
00066 #define CKSTRANSDIS 0x00010
00067
00068
00069
00070
00071
00072
00073
00074
00075 #define EXECUTE 0x100
00076
00077
00078 #define DWGCTL 0x1C00
00079
00080 # define OP_LINE_OPEN 0x00
00081 # define OP_AUTOLINE_OPEN 0x01
00082 # define OP_LINE_CLOSE 0x02
00083 # define OP_AUTOLINE_CLOSE 0x03
00084 # define OP_TRAP 0x04
00085 # define OP_TRAP_ILOAD 0x05
00086 # define OP_TEXTURE_TRAP 0x06
00087 # define OP_BITBLT 0x08
00088 # define OP_FBITBLT 0x0C
00089 # define OP_ILOAD 0x09
00090 # define OP_ILOAD_SCALE 0x0D
00091 # define OP_ILOAD_FILTER 0x0F
00092 # define OP_IDUMP 0x0A
00093 # define OP_ILOAD_HIQH 0x07
00094 # define OP_ILOAD_HIQHV 0x0E
00095
00096
00097 # define ATYPE_MASK 0x70
00098 # define ATYPE_RPL 0x00
00099 # define ATYPE_RSTR 0x10
00100 # define ATYPE_ZI 0x30
00101 # define ATYPE_BLK 0x40
00102 # define ATYPE_I 0x70
00103
00104
00105 # define LINEAR 0x80
00106 # define NOCLIP (1<<31)
00107 # define TRANS (1<<30)
00108
00109
00110 # define ZMODE_NOZCMP 0x000
00111 # define ZMODE_ZE 0x200
00112 # define ZMODE_ZNE 0x300
00113 # define ZMODE_ZLT 0x400
00114 # define ZMODE_ZLTE 0x500
00115 # define ZMODE_ZGT 0x600
00116 # define ZMODE_ZGTE 0x700
00117
00118
00119 # define SOLID 0x0800
00120 # define ARZERO 0x1000
00121 # define SGNZERO 0x2000
00122 # define SHFTZERO 0x4000
00123
00124
00125 # define BOP_CLEAR 0x00000
00126 # define BOP_NOR 0x10000
00127 # define BOP_COPYINV 0x30000
00128 # define BOP_INVERT 0x50000
00129 # define BOP_XOR 0x60000
00130 # define BOP_NAND 0x70000
00131 # define BOP_AND 0x80000
00132 # define BOP_EQUIV 0x90000
00133 # define BOP_NOOP 0xA0000
00134 # define BOP_IMP 0xB0000
00135 # define BOP_COPY 0xC0000
00136 # define BOP_OR 0xE0000
00137 # define BOP_SET 0xF0000
00138
00139
00140 # define BLTMOD_BMONOLEF 0x00000000
00141 # define BLTMOD_BMONOWF 0x08000000
00142 # define BLTMOD_BPLAN 0x02000000
00143 # define BLTMOD_BFCOL 0x04000000
00144 # define BLTMOD_BUYUV 0x1C000000
00145 # define BLTMOD_BU32BGR 0x06000000
00146 # define BLTMOD_BU32RGB 0x0E000000
00147 # define BLTMOD_BU24BGR 0x16000000
00148 # define BLTMOD_BU24RGB 0x1E000000
00149
00150 #define MACCESS 0x1C04
00151 #define ZORG 0x1C0C
00152 #define PAT0 0x1C10
00153 #define PAT1 0x1C14
00154 #define PLNWT 0x1C1C
00155 #define BCOL 0x1C20
00156 #define FCOL 0x1C24
00157 #define SRC0 0x1C30
00158 #define SRC1 0x1C34
00159 #define SRC2 0x1C38
00160 #define SRC3 0x1C3C
00161 #define XYSTRT 0x1C40
00162 #define XYEND 0x1C44
00163 #define SHIFT 0x1C50
00164 #define DMAPAD 0x1C54
00165 #define SGN 0x1C58
00166 #define LEN 0x1C5C
00167 #define AR0 0x1C60
00168 #define AR1 0x1C64
00169 #define AR2 0x1C68
00170 #define AR3 0x1C6C
00171 #define AR4 0x1C70
00172 #define AR5 0x1C74
00173 #define AR6 0x1C78
00174 #define CXBNDRY 0x1C80
00175 #define FXBNDRY 0x1C84
00176 #define YDSTLEN 0x1C88
00177 #define PITCH 0x1C8C
00178 #define YDST 0x1C90
00179 #define YDSTORG 0x1C94
00180 #define YTOP 0x1C98
00181 #define YBOT 0x1C9C
00182 #define CXLEFT 0x1CA0
00183 #define CXRIGHT 0x1CA4
00184 #define FXLEFT 0x1CA8
00185 #define FXRIGHT 0x1CAC
00186 #define XDST 0x1CB0
00187 #define DR0 0x1CC0
00188 #define DR2 0x1CC8
00189 #define DR3 0x1CCC
00190 #define DR4 0x1CD0
00191 #define DR6 0x1CD8
00192 #define DR7 0x1CDC
00193 #define DR8 0x1CE0
00194 #define WO 0x1CE4
00195 #define DR10 0x1CE8
00196 #define DR11 0x1CEC
00197 #define DR12 0x1CF0
00198 #define DR14 0x1CF8
00199 #define DR15 0x1CFC
00200
00201 #define FIFOSTATUS 0x1E10
00202 #define STATUS 0x1E14