diff options
Diffstat (limited to 'kernel/drivers/vbe.c')
-rw-r--r-- | kernel/drivers/vbe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/drivers/vbe.c b/kernel/drivers/vbe.c index fd91062..2ba9fb1 100644 --- a/kernel/drivers/vbe.c +++ b/kernel/drivers/vbe.c @@ -2,11 +2,11 @@ #include <assert.h> #include <def.h> +#include <dev.h> #include <drivers/cpu.h> #include <drivers/vbe.h> #include <errno.h> #include <fb.h> -#include <io.h> #include <mem.h> #include <mm.h> #include <multiboot.h> @@ -31,7 +31,7 @@ static res vbe_control(u32 request, void *arg1, void *arg2, void *arg3) UNUSED(arg3); switch (request) { - case IOCTL_FB_GET: { + case DEVCTL_FB_GET: { if (!generic.fb) return -ENOENT; @@ -67,7 +67,7 @@ CLEAR void vbe_install(u32 data) generic.fb = vbe->fb; fb_protect(&generic); - struct io_dev *dev = zalloc(sizeof(*dev)); + struct dev_dev *dev = zalloc(sizeof(*dev)); dev->control = vbe_control; - io_add(IO_FRAMEBUFFER, dev); + dev_add(DEV_FRAMEBUFFER, dev); } |