kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
e5b55a6ba5
commit
a252a3f8e9
58 changed files with 1270 additions and 505 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue