summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/driver/driver.h')
-rw-r--r--src/kernel/arch/amd64/driver/driver.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/driver/driver.h b/src/kernel/arch/amd64/driver/driver.h
new file mode 100644
index 0000000..0c4ecd5
--- /dev/null
+++ b/src/kernel/arch/amd64/driver/driver.h
@@ -0,0 +1,18 @@
+#pragma once
+#include <kernel/types.h>
+#include <stddef.h>
+#include <stdint.h>
+
+struct GfxInfo {
+ char *b;
+ uint32_t width, height;
+ uint32_t pitch; /* width in bytes of a single scanline */
+ size_t size;
+ uint8_t bpp;
+};
+
+void pata_init(void);
+void ps2_init(void);
+void rtl8139_init(uint32_t bdf);
+void vfs_root_init(void);
+void video_init(GfxInfo);