aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/bga.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/bga.c
parentb3d8e50aab8f3587f510db13ac8dcbb82e287998 (diff)
Renamed device prefix from 'io_' to 'dev_'
Diffstat (limited to 'kernel/drivers/bga.c')
-rw-r--r--kernel/drivers/bga.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/drivers/bga.c b/kernel/drivers/bga.c
index 2f3b1fa..cc93b75 100644
--- a/kernel/drivers/bga.c
+++ b/kernel/drivers/bga.c
@@ -2,11 +2,11 @@
#include <assert.h>
#include <def.h>
+#include <dev.h>
#include <drivers/bga.h>
#include <drivers/cpu.h>
#include <drivers/pci.h>
#include <fb.h>
-#include <io.h>
#include <mem.h>
#include <mm.h>
@@ -75,7 +75,7 @@ static res bga_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;
@@ -121,7 +121,7 @@ CLEAR void bga_install(void)
{
bga_enable(1920, 1200, 32);
- struct io_dev *dev = zalloc(sizeof(*dev));
+ struct dev_dev *dev = zalloc(sizeof(*dev));
dev->control = bga_control;
- io_add(IO_FRAMEBUFFER, dev);
+ dev_add(DEV_FRAMEBUFFER, dev);
}