kv2: initialize memory manager, early pci devices

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2026-05-12 02:59:37 -04:00
commit a252a3f8e9
58 changed files with 1270 additions and 505 deletions

View file

@ -4,8 +4,6 @@
#include <kernel/device.h>
#define DEV_CLASS_TTY 0x01
struct tty_serial_ops {
void (*serial_putchar)(struct tty *tty, char c);
char (*serial_getchar)(struct tty *tty);
@ -13,15 +11,13 @@ struct tty_serial_ops {
struct tty {
dev_t dev;
dev_t serial_device;
void *serial_device_private;
void *priv;
struct tty_serial_ops *serial_ops;
};
void tty_layer_init();
struct tty *tty_create(const char *name, dev_t serial_device);
struct tty *tty_create(const char *name, void *priv);
void tty_putchar(struct tty *tty, char c);
char tty_getchar(struct tty *tty);
void tty_write(struct tty *tty, const char *s);