mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
kernel: console
This commit is contained in:
@@ -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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user