aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/vmware.c
diff options
context:
space:
mode:
authorMarvin Borner2021-06-18 22:30:25 +0200
committerMarvin Borner2021-06-18 22:30:25 +0200
commit02a0c882275959c0fbd58754418ecc1218821e76 (patch)
tree7174e4c11a030b6bd7081a71ffa3bd6eee194c4e /kernel/drivers/vmware.c
parentb3d8e50aab8f3587f510db13ac8dcbb82e287998 (diff)
Renamed device prefix from 'io_' to 'dev_'
Diffstat (limited to 'kernel/drivers/vmware.c')
-rw-r--r--kernel/drivers/vmware.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/drivers/vmware.c b/kernel/drivers/vmware.c
index 24f56a0..b2069b6 100644
--- a/kernel/drivers/vmware.c
+++ b/kernel/drivers/vmware.c
@@ -2,10 +2,10 @@
// VMWare extensions/backdoors for better VM integration
#include <def.h>
+#include <dev.h>
#include <drivers/int.h>
#include <drivers/ps2.h>
#include <drivers/vmware.h>
-#include <io.h>
#include <mem.h>
#include <print.h>
#include <stack.h>
@@ -125,7 +125,7 @@ static void vmware_mouse_handler(void)
event->but.right = (buttons & VMMOUSE_RIGHT_CLICK) != 0;
event->but.middle = (buttons & VMMOUSE_MIDDLE_CLICK) != 0;
stack_push_bot(queue, event);
- io_unblock(IO_MOUSE);
+ dev_unblock(DEV_MOUSE);
}
static res vmware_mouse_ready(void)
@@ -152,8 +152,8 @@ CLEAR void vmware_mouse_install(u8 device)
int_event_handler_add(12, vmware_mouse_handler);
queue = stack_new();
- struct io_dev *dev = zalloc(sizeof(*dev));
+ struct dev_dev *dev = zalloc(sizeof(*dev));
dev->read = vmware_mouse_read;
dev->ready = vmware_mouse_ready;
- io_add(IO_MOUSE, dev);
+ dev_add(DEV_MOUSE, dev);
}