aboutsummaryrefslogtreecommitdiff
path: root/i386/i386at/conf.c
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2024-10-27 09:28:41 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-10-27 13:51:49 +0100
commit1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865 (patch)
tree619a8fd83147632b6648b04c5d6752f2c7c0c35e /i386/i386at/conf.c
parent7ea3a05d1dd190db757d577757f2e3dba85e3e15 (diff)
downloadgnumach-1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865.tar.gz
gnumach-1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865.tar.bz2
gnumach-1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865.zip
Expose device(mbinfo) with read access to multiboot raw info
Message-ID: <20241027092828.3162279-1-damien@zamaudio.com>
Diffstat (limited to 'i386/i386at/conf.c')
-rw-r--r--i386/i386at/conf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/i386/i386at/conf.c b/i386/i386at/conf.c
index ecbf1e45..ba056ea1 100644
--- a/i386/i386at/conf.c
+++ b/i386/i386at/conf.c
@@ -71,6 +71,9 @@
#include <device/intr.h>
#define irqname "irq"
+#include <i386at/mbinfo.h>
+#define mbinfoname "mbinfo"
+
/*
* List of devices - console must be at slot 0
*/
@@ -157,6 +160,11 @@ struct dev_ops dev_name_list[] =
nodev_async_in, nulldev_reset, nulldev_portdeath,0,
nodev_info },
+ { mbinfoname, nulldev_open, nulldev_close, mbinforead,
+ nulldev_write,nulldev_getstat,nulldev_setstat,nomap,
+ nodev_async_in, nulldev_reset, nulldev_portdeath,0,
+ nodev_info },
+
};
int dev_name_count = sizeof(dev_name_list)/sizeof(dev_name_list[0]);