fde5d837c7ba30458d52af85da2f52ca43c11daa
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / pty_cmds.h
1 /*
2  * Acess2 User Core
3  * - By John Hodge (thePowersGang)
4  *
5  * acess/devices/pty_cmds.h
6  * - Defintions for 2D/3D command stream PTY output modes
7  */
8 #ifndef _ACESS_DEVICES_PTY_CMDS_H_
9 #define _ACESS_DEVICES_PTY_CMDS_H_
10
11 #include <stdint.h>
12
13 enum
14 {
15         PTY2D_CMD_NOP,
16         PTY2D_CMD_SETCURSORPOS,
17         PTY2D_CMD_SETCURSORBMP,
18         PTY2D_CMD_NEWSRF,
19         PTY2D_CMD_DELSRF,
20         PTY2D_CMD_BLIT,
21         PTY2D_CMD_SEND,
22         PTY2D_CMD_RECV,
23 };
24
25 struct ptycmd_header
26 {
27         uint8_t         cmd;
28         // NOTE: Length is encoded as a count of 32-bit words
29         uint8_t         len_low;
30         uint16_t        len_hi;
31 } PACKED;
32
33 struct ptycmd_setcursorpos
34 {
35         struct ptycmd_header    hdr;
36         uint16_t        x;
37         uint16_t        y;
38 } PACKED;
39
40 struct ptycmd_setcursorbmp
41 {
42         struct ptycmd_header    hdr;
43         uint16_t        w;
44         uint16_t        h;
45         char    data[];
46 } PACKED;
47
48 struct ptycmd_senddata
49 {
50         struct ptycmd_header    hdr;
51         uint32_t        ofs;
52 } PACKED;
53
54 #endif
55

UCC git Repository :: git.ucc.asn.au