diff options
author | Marvin Borner | 2021-04-13 22:09:23 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-13 22:09:23 +0200 |
commit | 9ded3a2bde80eede5fd887812d70c2f834b53c84 (patch) | |
tree | 932a90608c5f30d38b810dc4fe9264cc43c2da68 /kernel/drivers/fb.c | |
parent | f96b8ad1ee83dec08ae636e179cc48019ca50b12 (diff) |
Started IO dev manager
Diffstat (limited to 'kernel/drivers/fb.c')
-rw-r--r-- | kernel/drivers/fb.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/kernel/drivers/fb.c b/kernel/drivers/fb.c index 78b3984..7f05014 100644 --- a/kernel/drivers/fb.c +++ b/kernel/drivers/fb.c @@ -26,7 +26,7 @@ PROTECTED static u32 dev_id = 0; PROTECTED static struct vid_info *info = NULL; static u32 fb_owner = 0; -static res fb_ioctl(u32 request, void *arg1, void *arg2, void *arg3, struct device *dev) +static res fb_ioctl(u32 request, void *arg1, void *arg2, void *arg3, struct vfs_dev *dev) { UNUSED(arg2); UNUSED(arg3); @@ -56,11 +56,6 @@ static res fb_ioctl(u32 request, void *arg1, void *arg2, void *arg3, struct devi } } -static res fb_ready(void) -{ - return 1; -} - void fb_map_buffer(struct page_dir *dir, struct vid_info *boot) { struct vbe_basic *vbe = (struct vbe_basic *)boot->vbe; @@ -72,11 +67,10 @@ CLEAR void fb_install(struct vid_info *boot) { info = boot; - struct device *dev = zalloc(sizeof(*dev)); + struct vfs_dev *dev = zalloc(sizeof(*dev)); dev->name = strdup("fb"); dev->type = DEV_CHAR; dev->ioctl = fb_ioctl; - dev->ready = fb_ready; - device_add(dev); + /* device_add(dev); */ dev_id = dev->id; } |