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