summaryrefslogtreecommitdiff
path: root/boot/efi/system_table.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2025-01-23 00:24:57 +0000
committerAda Christine <adachristine18@gmail.com>2025-01-23 00:24:57 +0000
commitd855c0a219a180497c2e50f9bc19bfce69b937a6 (patch)
tree1ff8523d41b222fb356fb3404d2a53c26a7d6a3d /boot/efi/system_table.h
parentedd52bd1464ee9ae4f0cdf7ff90a20ca175580fe (diff)
it printfs with the efi interface
Diffstat (limited to 'boot/efi/system_table.h')
-rw-r--r--boot/efi/system_table.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/boot/efi/system_table.h b/boot/efi/system_table.h
new file mode 100644
index 0000000..93e839d
--- /dev/null
+++ b/boot/efi/system_table.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include "table.h"
+
+extern "C"
+{
+ struct efi_system_table
+ {
+ void *m_Value;
+ };
+}
+
+namespace Efi
+{
+ class SystemTable : private Table
+ {
+ char16_t *m_FirmwareVendor;
+ uint32_t m_FirmwareRevision;
+ Handle m_ConsoleInHandle;
+ void *m_ConIn;
+ Handle m_ConsoleOutHandle;
+ void *m_ConOut;
+ Handle m_StandardErrorHandle;
+ void *m_StdErr;
+ void *m_RuntimeServices;
+ void *m_BootServices;
+ size_t m_NumberOfTableEntries;
+ void *m_ConfigurationTable;
+ };
+}
+