summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-07-29 19:11:29 -0500
committerNathan Lee <me@nwlee.tech>2026-07-29 19:11:29 -0500
commit1329d1db52ede274d63b56a7aa37dd25c833ec67 (patch)
tree50a7160175e1744464de0d7a6297d351cc1ef6a4 /include
parent9d970286fc93c03acbe465faf97a9bd559ab6f1b (diff)
create basic MMIO handler for consoleHEADmaster
Diffstat (limited to 'include')
-rw-r--r--include/log.h2
-rw-r--r--include/mmio.h8
2 files changed, 10 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
index 2b35922..f1e4110 100644
--- a/include/log.h
+++ b/include/log.h
@@ -2,5 +2,7 @@
#define RINGBUF_SIZE 64 * 1024
+typedef void (*console_callback_t)(char);
+
void vprintk(const char *message, __builtin_va_list args);
void printk(const char *message, ...);
diff --git a/include/mmio.h b/include/mmio.h
new file mode 100644
index 0000000..b6531bf
--- /dev/null
+++ b/include/mmio.h
@@ -0,0 +1,8 @@
+#pragma once
+#include <types.h>
+
+struct mmio_device_meta {
+ const char *name;
+ void *start;
+ size_t size;
+};