updated package versions
[minix.git] / include / minix / tty.h
blob65712d540eb99deea3f981f5e7b233152fbfc817
2 #ifndef _MINIX_TTY_H
3 #define _MINIX_TTY_H
5 #include <minix/types.h>
7 #define TTYMAGIC 0xb105
9 /* A struct that the tty driver can use to pass values to the boot monitor.
10 * Currently only the value of the origin of the first vty (console), so the
11 * boot monitor can properly display it when panicing (tty isn't scheduled
12 * to switch to the first vty). It's written at the end of video memory
13 * (video memory base + video memory size - sizeof(struct boot_tty_info).
16 struct boot_tty_info {
17 u16_t reserved[30]; /* reserved, set to 0 */
18 u16_t consorigin; /* origin in video memory of console */
19 u16_t conscursor; /* position of cursor of console */
20 u16_t flags; /* flags indicating which fields are valid */
21 u16_t magic; /* magic number indicating struct is valid */
24 #define BTIF_CONSORIGIN 0x01 /* consorigin is set */
25 #define BTIF_CONSCURSOR 0x02 /* conscursor is set */
27 #endif