summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/protocol.h
blob: a6674672cef51d3cea3ecf660bb022060b7fa908 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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