summaryrefslogtreecommitdiff
path: root/kexec/arch/arm/kexec-arm.h
blob: a74cce2e83d5544061c07242fa75874caab6365a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef KEXEC_ARM_H
#define KEXEC_ARM_H

#include <sys/types.h>

#define SYSFS_FDT "/sys/firmware/fdt"
#define BOOT_BLOCK_VERSION 17
#define BOOT_BLOCK_LAST_COMP_VERSION 16

extern off_t initrd_base, initrd_size;

int zImage_arm_probe(const char *buf, off_t len);
int zImage_arm_load(int argc, char **argv, const char *buf, off_t len,
		        struct kexec_info *info);
void zImage_arm_usage(void);

int uImage_arm_probe(const char *buf, off_t len);
int uImage_arm_load(int argc, char **argv, const char *buf, off_t len,
		        struct kexec_info *info);
extern int have_sysfs_fdt(void);

#endif /* KEXEC_ARM_H */