summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/protocol.h
diff options
context:
space:
mode:
authorMarvin Borner2021-07-12 18:14:44 +0200
committerMarvin Borner2021-07-12 18:15:29 +0200
commit1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a (patch)
tree593af3e3ec78795bb47553f492db07fb7e87e373 /src/loader/inc/protocol.h
parentd414d2f6f46bd425d727af5baae3e2658d6e1384 (diff)
Renamed files to match presentation
Diffstat (limited to 'src/loader/inc/protocol.h')
-rw-r--r--src/loader/inc/protocol.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/loader/inc/protocol.h b/src/loader/inc/protocol.h
new file mode 100644
index 0000000..a667467
--- /dev/null
+++ b/src/loader/inc/protocol.h
@@ -0,0 +1,20 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#ifndef IMPL_H
+#define IMPL_H
+
+#include <device.h>
+
+enum impl_type {
+ IMPL_NONE,
+ IMPL_MB1,
+ IMPL_MB2,
+};
+
+struct impl {
+ enum impl_type type;
+ u32 offset; // Of header/entry
+ void (*load)(struct dev *, const char *);
+};
+
+#endif