summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/spl-x1000.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-06-13 17:39:29 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-06-14 20:45:14 +0100
commit95408f2117fdcac26662a2f020664d39c774e2c9 (patch)
tree69f3ab271a1bf10165fe8760a82ae595cda8d71a /firmware/target/mips/ingenic_x1000/spl-x1000.h
parent89f40647431713b663e416329341a733c457df32 (diff)
downloadrockbox-95408f2117fdcac26662a2f020664d39c774e2c9.tar.gz
rockbox-95408f2117fdcac26662a2f020664d39c774e2c9.zip
FiiO M3K: Add dual boot supportbootloader_fiiom3k_v2
Change-Id: Ic34d50855b317b5f4073b232dbf458edf82f55e1
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-x1000.h')
-rw-r--r--firmware/target/mips/ingenic_x1000/spl-x1000.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl-x1000.h b/firmware/target/mips/ingenic_x1000/spl-x1000.h
index 062cb40f88..81714a3ed2 100644
--- a/firmware/target/mips/ingenic_x1000/spl-x1000.h
+++ b/firmware/target/mips/ingenic_x1000/spl-x1000.h
@@ -22,22 +22,14 @@
22#ifndef __SPL_X1000_H__ 22#ifndef __SPL_X1000_H__
23#define __SPL_X1000_H__ 23#define __SPL_X1000_H__
24 24
25#include <stdint.h> 25/* TODO: this needs some refactoring... */
26
27struct spl_boot_option {
28 uint32_t nand_addr;
29 uint32_t nand_size;
30 uint32_t load_addr;
31 uint32_t exec_addr;
32 const char* cmdline; /* for Linux */
33};
34
35/* Defined by target, order is not important */
36extern const struct spl_boot_option spl_boot_options[];
37 26
38/* Called on a fatal error */ 27/* Called on a fatal error */
39extern void spl_error(void) __attribute__((noreturn)); 28extern void spl_error(void) __attribute__((noreturn));
40 29
30/* Called by SPL to handle a main boot */
31extern void spl_target_boot(void);
32
41/* Invoked by SPL main routine to determine the boot option */ 33/* Invoked by SPL main routine to determine the boot option */
42extern int spl_get_boot_option(void); 34extern int spl_get_boot_option(void);
43 35