diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/spl-x1000.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl-x1000.h b/firmware/target/mips/ingenic_x1000/spl-x1000.h index 40ea97a5b8..9ee1aa768e 100644 --- a/firmware/target/mips/ingenic_x1000/spl-x1000.h +++ b/firmware/target/mips/ingenic_x1000/spl-x1000.h | |||
@@ -26,23 +26,6 @@ | |||
26 | #include <stddef.h> | 26 | #include <stddef.h> |
27 | #include <stdint.h> | 27 | #include <stdint.h> |
28 | 28 | ||
29 | #define BOOTFLAG_COMPRESSED 0x0f /* mask for compression flags */ | ||
30 | #define BOOTFLAG_UCLPACK 0x01 /* image is compressed with 'uclpack' */ | ||
31 | |||
32 | struct spl_boot_option { | ||
33 | uint32_t storage_addr; /* image's location in storage */ | ||
34 | uint32_t storage_size; /* number of bytes to load */ | ||
35 | uint32_t load_addr; /* address to load image to */ | ||
36 | uint32_t exec_addr; /* address of the entry point */ | ||
37 | uint32_t flags; /* any special flags */ | ||
38 | const char* cmdline; /* command line; use NULL if not needed */ | ||
39 | uint32_t cmdline_addr; /* address to contain command line 'argv[]' */ | ||
40 | int(*setup)(void); /* setup hook, called before jumping to image */ | ||
41 | }; | ||
42 | |||
43 | /* array of boot option descriptions */ | ||
44 | extern const struct spl_boot_option spl_boot_options[]; | ||
45 | |||
46 | /* Memory allocator. Allocation starts from the top of DRAM and counts down. | 29 | /* Memory allocator. Allocation starts from the top of DRAM and counts down. |
47 | * Allocation sizes are rounded up to a multiple of the cacheline size, so | 30 | * Allocation sizes are rounded up to a multiple of the cacheline size, so |
48 | * the returned address is always suitably aligned for DMA. */ | 31 | * the returned address is always suitably aligned for DMA. */ |
@@ -58,9 +41,6 @@ extern int spl_storage_open(void); | |||
58 | extern void spl_storage_close(void); | 41 | extern void spl_storage_close(void); |
59 | extern int spl_storage_read(uint32_t addr, uint32_t length, void* buffer); | 42 | extern int spl_storage_read(uint32_t addr, uint32_t length, void* buffer); |
60 | 43 | ||
61 | /* Get the boot option selected by the user, eg. by a key press */ | ||
62 | extern int spl_get_boot_option(void); | ||
63 | |||
64 | /* Called on a fatal error -- it should do something visible to the user | 44 | /* Called on a fatal error -- it should do something visible to the user |
65 | * like flash the backlight repeatedly. */ | 45 | * like flash the backlight repeatedly. */ |
66 | extern void spl_error(void) __attribute__((noreturn)); | 46 | extern void spl_error(void) __attribute__((noreturn)); |