summaryrefslogtreecommitdiffhomepage
path: root/src/loader/impl/all.c
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/impl/all.c
parentd414d2f6f46bd425d727af5baae3e2658d6e1384 (diff)
Renamed files to match presentation
Diffstat (limited to 'src/loader/impl/all.c')
-rw-r--r--src/loader/impl/all.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/loader/impl/all.c b/src/loader/impl/all.c
deleted file mode 100644
index 941986d..0000000
--- a/src/loader/impl/all.c
+++ /dev/null
@@ -1,36 +0,0 @@
-// MIT License, Copyright (c) 2021 Marvin Borner
-
-#include <impl/all.h>
-#include <impl/mb1.h>
-#include <impl/mb2.h>
-#include <pnc.h>
-
-u8 impl_detect(struct cfg_entry *cfg)
-{
- if (mb1_detect(cfg))
- return 1;
-
- if (mb2_detect(cfg))
- return 1;
-
- return 0;
-}
-
-void impl_exec(struct cfg_entry *cfg)
-{
- assert(cfg->dev->type == DEV_DISK);
-
- switch (cfg->impl.type) {
- case IMPL_MB1:
- mb1_exec(cfg);
- break;
- case IMPL_MB2:
- mb2_exec(cfg);
- break;
- case IMPL_NONE:
- default:
- panic("Invalid implementation\n");
- }
-
- panic("Couldn't execute implementation\n");
-}