summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/impl/all.h
blob: 156832252fb72ef48668e2755c9fb297ba58cf24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// MIT License, Copyright (c) 2021 Marvin Borner

#ifndef IMPL_ALL_H
#define IMPL_ALL_H

#include <def.h>

enum impl_type {
	IMPL_NONE,
	IMPL_MB1,
	IMPL_MB2,
};

struct dev;
struct impl {
	enum impl_type type;
	void *start; // Of header/entry
	void (*load)(struct dev *, const char *);
};

#include <dev.h>

u8 impl_detect(struct dev *dev, const char *path);

#endif