]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/cmd_elf.h
Initial revision
[people/ms/u-boot.git] / include / cmd_elf.h
CommitLineData
78f6622a
WD
1/*
2 * Elf Load/Boot Functions
3 */
4#ifndef _CMD_ELF_H
5#define _CMD_ELF_H
6
7#if (CONFIG_COMMANDS & CFG_CMD_ELF)
8
9#define CMD_TBL_BOOTELF MK_CMD_TBL_ENTRY( \
10 "bootelf", 7, 2, 0, do_bootelf, \
11 "bootelf - Boot from an ELF image in memory\n", \
12 " [address] - load address of ELF image.\n" \
13 ),
14
15#define CMD_TBL_BOOTVX MK_CMD_TBL_ENTRY( \
16 "bootvx", 6, 2, 0, do_bootvx, \
17 "bootvx - Boot vxWorks from an ELF image\n", \
18 " [address] - load address of vxWorks ELF image.\n" \
19 ),
20
21extern int do_bootelf (cmd_tbl_t *, int, int, char *[]);
22extern int do_bootvx (cmd_tbl_t *, int, int, char *[]);
23
24/* Supporting routines */
25extern int valid_elf_image (unsigned long);
26extern unsigned long load_elf_image (unsigned long);
27
28#else /* ! CFG_CMD_ELF */
29
30#define CMD_TBL_BOOTELF
31#define CMD_TBL_BOOTVX
32
33#endif /* CFG_CMD_ELF */
34#endif /* _CMD_ELF_H */