Changed "common.h" to "acess.h" to reduce possible conflicts
[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 #include <stdint.h>
8
9 enum eDrv_Terminal {
10         TERM_IOCTL_MODETYPE = 4,
11         TERM_IOCTL_WIDTH,
12         TERM_IOCTL_HEIGHT,
13         TERM_IOCTL_QUERYMODE
14 };
15
16
17 struct sTerm_IOCtl_Mode
18 {
19         int16_t ID;             //!< Zero Based index of mode
20         int16_t DriverID;       //!< Driver's ID number (from ::tVideo_IOCtl_Mode)
21         uint16_t        Height; //!< Height
22         uint16_t        Width;  //!< Width
23         uint8_t Depth;  //!< Bits per cell
24         uint8_t Flags;  //!< Flags (1: Text Mode)
25 };
26
27 /**
28  * \brief Terminal Modes
29  */
30 enum eTplTerminal_Modes {
31         /**
32          * \brief UTF-8 Text Mode
33          * Any writes to the terminal file are treated as UTF-8 encoded
34          * strings and reads will also return UTF-8 strings.
35          */
36         TERM_MODE_TEXT,
37         
38         /**
39          * \brief 32bpp Framebuffer
40          * Writes to the terminal file will write to the framebuffer.
41          * Reads will return UTF-32 characters
42          */
43         TERM_MODE_FB,
44         
45         /**
46          * \brief OpenGL 2D/3D
47          * Writes to the terminal file will send 3D commands
48          * Reads will return UTF-32 characters
49          * \note May or may not stay in the spec
50          */
51         TERM_MODE_OPENGL,
52         
53         NUM_TERM_MODES
54 };
55
56 #endif

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