kernel: console

This commit is contained in:
Matheus
2023-05-04 22:48:09 -03:00
parent 0840a0c8f1
commit eed3b390e3
5 changed files with 222 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#ifndef _CONSOLE_H
#define _CONSOLE_H
#include <stddef.h>
void console_init();
void console_putc(char c);
void console_write(char *str, size_t size);
#endif
+1
View File
@@ -6,6 +6,7 @@
#define DEV_MAJOR_NULL 1
#define DEV_MAJOR_FULL 2
#define DEV_MAJOR_ZERO 3
#define DEV_MAJOR_CONSOLE 4
typedef struct {
int (*open)(int minor, int flags);