]> git.sesse.net Git - pistorm/blob - platforms/amiga/rtg/rtg_driver_amiga/rtg_enums.h
More RTG acceleration, fix everything
[pistorm] / platforms / amiga / rtg / rtg_driver_amiga / rtg_enums.h
1 // "Register" offsets for sending data to the RTG.
2 enum pi_regs {
3   RTG_COMMAND = 0x00,
4   RTG_X1      = 0x02,
5   RTG_X2      = 0x04,
6   RTG_X3      = 0x06,
7   RTG_Y1      = 0x08,
8   RTG_Y2      = 0x0A,
9   RTG_Y3      = 0x0C,
10   RTG_FORMAT  = 0x0E,
11   RTG_RGB1    = 0x10,
12   RTG_RGB2    = 0x14,
13   RTG_ADDR1   = 0x18,
14   RTG_ADDR2   = 0x1C,
15   RTG_U81     = 0x20,
16   RTG_U82     = 0x21,
17   RTG_U83     = 0x22,
18   RTG_U84     = 0x23,
19   RTG_X4      = 0x24,
20   RTG_X5      = 0x26,
21   RTG_Y4      = 0x28,
22   RTG_Y5      = 0x2A,
23   RTG_U1      = 0x2C,
24   RTG_U2      = 0x2E,
25 };
26
27 enum rtg_cmds {
28   RTGCMD_SETGC,
29   RTGCMD_SETPAN,
30   RTGCMD_SETCLUT,
31   RTGCMD_ENABLE,
32   RTGCMD_SETDISPLAY,
33   RTGCMD_SETSWITCH,
34   RTGCMD_FILLRECT,
35   RTGCMD_BLITRECT,
36   RTGCMD_BLITRECT_NOMASK_COMPLETE,
37   RTGCMD_BLITPATTERN,
38   RTGCMD_BLITTEMPLATE,
39 };
40
41 enum rtg_formats {
42   RTGFMT_8BIT,
43   RTGFMT_RBG565,
44   RTGFMT_RGB32,
45   RTGFMT_RGB555,
46   RTGFMT_NUM,
47 };
48
49 enum gfx_minterm_modes {
50         MINTERM_FALSE,
51         MINTERM_NOR,
52         MINTERM_ONLYDST,
53         MINTERM_NOTSRC,
54         MINTERM_ONLYSRC,
55         MINTERM_INVERT,
56         MINTERM_EOR,
57         MINTERM_NAND,
58         MINTERM_AND,
59         MINTERM_NEOR,
60         MINTERM_DST,
61         MINTERM_NOTONLYSRC,
62         MINTERM_SRC,
63         MINTERM_NOTONLYDST,
64         MINTERM_OR,
65         MINTERM_TRUE,
66 };
67
68 enum gfx_draw_modes {
69     DRAWMODE_JAM1 = 0,
70     DRAWMODE_JAM2 = 1,
71     DRAWMODE_COMPLEMENT = 2,
72     DRAWMODE_INVERSVID = 4,
73 };