summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorIan M. <ian@aptel.org>2026-09-11 03:45:03 +0000
committerIan M. <ian@aptel.org>2026-09-11 03:46:03 +0000
commit4f97daf67e0baaf64251b5643af5c9552c522156 (patch)
treea9a45abcf288fa538b03fb566d2ee5c069b2af4e /config.def.h
initial commit
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..9a577d4
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2026, Apollo Telephone Laboratories.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef _CONFIG_DEF_H_
+#define _CONFIG_DEF_H_ 1
+
+#include <efi.h>
+#include <efilib.h>
+
+/*
+ * Valid boot protocols
+ *
+ * @PROTOCOL_END: Menu terminator
+ * @PROTOCOL_SBOOT: Simple boot
+ */
+typedef enum {
+ PROTOCOL_END,
+ PROTOCOL_SBOOT
+} BOOT_PROTOCOL;
+
+/*
+ * Boot menu entry
+ *
+ * @Protocol: Boot protocol
+ * @Name: Name of boot entry
+ * @BootPath: File to boot
+ */
+typedef struct {
+ BOOT_PROTOCOL Protocol;
+ CHAR16 *Name;
+ CHAR16 *BootPath;
+} BOOT_ENTRY;
+
+static BOOT_ENTRY ConfigBootEntries[] = {
+ {
+ PROTOCOL_SBOOT,
+ L"BOOT",
+ L"kernel.bin"
+ },
+
+ {
+ PROTOCOL_END,
+ NULL,
+ NULL
+ }
+};
+
+#endif /* !_CONFIG_DEF_H_ */