Attempting to fix an intermittent TSS bug
[tpg/acess2.git] / Usermode / include / acess / devices / terminal.h
1 /**
2  * \file devices/terminal.h
3  */
4 #ifndef _SYS_DEVICES_TERMINAL_H
5 #define _SYS_DEVICES_TERMINAL_H
6
7
8 enum eDrv_Terminal {
9         TERM_IOCTL_MODETYPE = 4,
10         TERM_IOCTL_WIDTH,
11         TERM_IOCTL_HEIGHT,
12         TERM_IOCTL_QUERYMODE
13 };
14
15
16 struct sTerm_IOCtl_Mode
17 {
18         short   ID;             //!< Zero Based index of mode
19         short   DriverID;       //!< Driver's ID number (from ::tVideo_IOCtl_Mode)
20         Uint16  Height; //!< Height
21         Uint16  Width;  //!< Width
22         Uint8   Depth;  //!< Bits per cell
23         struct {
24                 unsigned bText: 1;      //!< Text Mode marker
25                 unsigned unused:        7;
26         };
27 };
28
29 /**
30  * \brief Terminal Modes
31  */
32 enum eTplTerminal_Modes {
33         /**
34          * \brief UTF-8 Text Mode
35          * Any writes to the terminal file are treated as UTF-8 encoded
36          * strings and reads will also return UTF-8 strings.
37          */
38         TERM_MODE_TEXT,
39         
40         /**
41          * \brief 32bpp Framebuffer
42          * Writes to the terminal file will write to the framebuffer.
43          * Reads will return UTF-32 characters
44          */
45         TERM_MODE_FB,
46         
47         /**
48          * \brief OpenGL 2D/3D
49          * Writes to the terminal file will send 3D commands
50          * Reads will return UTF-32 characters
51          * \note May or may not stay in the spec
52          */
53         TERM_MODE_OPENGL,
54         
55         NUM_TERM_MODES
56 };
57
58 #endif

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