Voxia OS
v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
tty.h
Go to the documentation of this file.
1
#ifndef __TTY_TTY_H__
2
#define __TTY_TTY_H__
3
4
#include "
spinlock.h
"
5
#include "
vfs/dentry.h
"
6
#include <autoconf.h>
7
#include <
type.h
>
8
9
struct
tty_internal
{
10
boolean_t
enable
;
11
boolean_t
dirty
;
12
13
uint32_t
cols
;
14
uint32_t
rows
;
15
16
uint32_t
cursorx
;
17
uint32_t
cursory
;
18
19
char
input_buffer
[VOXIA_TTY_INPUT_BUFFER_SIZE];
20
uint32_t
head
;
21
uint32_t
tail
;
22
23
char
line_buff
[1024];
24
uint32_t
line_buff_head
;
25
uint32_t
line_buff_tail
;
26
27
spinlock_t
input_lock
;
28
}
__attribute__
((aligned(64)));
29
30
void
change_active_tty
(
int
tty);
31
int
get_active_tty
();
32
dentry_ptr
get_active_tty_dentry
();
33
dentry_ptr
get_tty_dentry
(
int
tty);
34
void
start_tty
();
35
void
tty_check_and_flush
();
36
37
#endif
// __TTY_TTY_H__
dentry.h
dentry_ptr
struct dentry * dentry_ptr
Definition
dentry.h:20
__attribute__
typedef __attribute__
Definition
msi.c:47
spinlock.h
spinlock_t
Definition
spinlock.h:10
tty_internal
Definition
tty.h:9
tty_internal::line_buff
char line_buff[1024]
Definition
tty.h:23
tty_internal::input_buffer
char input_buffer[VOXIA_TTY_INPUT_BUFFER_SIZE]
Definition
tty.h:19
tty_internal::dirty
boolean_t dirty
Definition
tty.h:11
tty_internal::rows
uint32_t rows
Definition
tty.h:14
tty_internal::cursorx
uint32_t cursorx
Definition
tty.h:16
tty_internal::tail
uint32_t tail
Definition
tty.h:21
tty_internal::head
uint32_t head
Definition
tty.h:20
tty_internal::line_buff_head
uint32_t line_buff_head
Definition
tty.h:24
tty_internal::cursory
uint32_t cursory
Definition
tty.h:17
tty_internal::cols
uint32_t cols
Definition
tty.h:13
tty_internal::enable
boolean_t enable
Definition
tty.h:10
tty_internal::input_lock
spinlock_t input_lock
Definition
tty.h:27
tty_internal::line_buff_tail
uint32_t line_buff_tail
Definition
tty.h:25
start_tty
void start_tty()
Definition
tty.c:246
tty_check_and_flush
void tty_check_and_flush()
Definition
tty.c:259
get_active_tty_dentry
dentry_ptr get_active_tty_dentry()
Definition
tty.c:255
get_tty_dentry
dentry_ptr get_tty_dentry(int tty)
Definition
tty.c:339
change_active_tty
void change_active_tty(int tty)
Definition
tty.c:251
get_active_tty
int get_active_tty()
Definition
tty.c:253
type.h
uint32_t
unsigned int uint32_t
Definition
type.h:19
boolean_t
uint8_t boolean_t
Definition
type.h:89
kernel
tty
tty.h
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2