summaryrefslogtreecommitdiff
path: root/kexec/arch/arm64/include/arch/options.h
blob: d2a3c5ce7a3859f1d8f99482326ff14964bb940d (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#if !defined(KEXEC_ARCH_ARM64_OPTIONS_H)
#define KEXEC_ARCH_ARM64_OPTIONS_H

#define OPT_APPEND	((OPT_MAX)+0)
#define OPT_DTB		((OPT_MAX)+1)
#define OPT_INITRD	((OPT_MAX)+2)
#define OPT_LITE	((OPT_MAX)+3)
#define OPT_PORT	((OPT_MAX)+4)
#define OPT_ARCH_MAX	((OPT_MAX)+5)

#define KEXEC_ARCH_OPTIONS \
	KEXEC_OPTIONS \
	{ "append",       1, NULL, OPT_APPEND }, \
	{ "command-line", 1, NULL, OPT_APPEND }, \
	{ "dtb",          1, NULL, OPT_DTB }, \
	{ "initrd",       1, NULL, OPT_INITRD }, \
	{ "lite",         0, NULL, OPT_LITE }, \
	{ "port",         1, NULL, OPT_PORT }, \
	{ "ramdisk",      1, NULL, OPT_INITRD }, \

#define KEXEC_ARCH_OPT_STR KEXEC_OPT_STR /* Only accept long arch options. */
#define KEXEC_ALL_OPTIONS KEXEC_ARCH_OPTIONS
#define KEXEC_ALL_OPT_STR KEXEC_ARCH_OPT_STR

static const char *arm64_opts_usage __attribute__ ((unused)) =
"     --append=STRING       Set the kernel command line to STRING.\n"
"     --command-line=STRING Set the kernel command line to STRING.\n"
"     --dtb=FILE            Use FILE as the device tree blob.\n"
"     --initrd=FILE         Use FILE as the kernel initial ramdisk.\n"
"     --lite                Non-purgatory boot.\n"
"     --port=ADDRESS        Purgatory output to port ADDRESS.\n"
"     --ramdisk=FILE        Use FILE as the kernel initial ramdisk.\n";

struct arm64_opts {
	const char *command_line;
	const char *dtb;
	const char *initrd;
	uint64_t port;
	int lite;
};

extern struct arm64_opts arm64_opts;

#endif