summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/sansae200.h11
-rw-r--r--firmware/export/mi4-loader.h19
2 files changed, 27 insertions, 3 deletions
diff --git a/firmware/export/config/sansae200.h b/firmware/export/config/sansae200.h
index e03784a204..59e531241f 100644
--- a/firmware/export/config/sansae200.h
+++ b/firmware/export/config/sansae200.h
@@ -8,6 +8,12 @@
8 8
9#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32) 9#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32)
10 10
11/* Define if boot data from bootloader has been enabled for the target */
12#define HAVE_BOOTDATA
13
14/* define boot redirect file name allows booting from external drives */
15#define BOOT_REDIR "rockbox_main.e200"
16
11/* define this if you have recording possibility */ 17/* define this if you have recording possibility */
12#define HAVE_RECORDING 18#define HAVE_RECORDING
13 19
@@ -178,11 +184,10 @@
178#define FIRMWARE_OFFSET_FILE_CRC 0x0 184#define FIRMWARE_OFFSET_FILE_CRC 0x0
179#define FIRMWARE_OFFSET_FILE_DATA 0x8 185#define FIRMWARE_OFFSET_FILE_DATA 0x8
180 186
181#ifndef BOOTLOADER
182#define HAVE_MULTIDRIVE 187#define HAVE_MULTIDRIVE
188//#define HAVE_MULTIVOLUME
183#define NUM_DRIVES 2 189#define NUM_DRIVES 2
184#define HAVE_HOTSWAP 190#define HAVE_HOTSWAP /* required to access sd from bootloader */
185#endif
186 191
187/* USB On-the-go */ 192/* USB On-the-go */
188#define CONFIG_USBOTG USBOTG_ARC 193#define CONFIG_USBOTG USBOTG_ARC
diff --git a/firmware/export/mi4-loader.h b/firmware/export/mi4-loader.h
index 1b4a4b93b2..f66164ec2c 100644
--- a/firmware/export/mi4-loader.h
+++ b/firmware/export/mi4-loader.h
@@ -49,3 +49,22 @@ struct tea_key {
49 49
50int load_mi4(unsigned char* buf, const char* firmware, unsigned int buffer_size); 50int load_mi4(unsigned char* buf, const char* firmware, unsigned int buffer_size);
51const char *mi4_strerror(int8_t errno); 51const char *mi4_strerror(int8_t errno);
52
53#ifdef HAVE_MULTIBOOT /* defined by config.h */
54/* Check in root of this <volume> for rockbox_main.<playername>
55 * if this file empty or there is a single slash '/'
56 * buf = '<volume#>/<rootdir>/<firmware(name)>\0'
57 * If instead '/<*DIRECTORY*>' is supplied
58 * addpath will be set to this DIRECTORY buf =
59 * '/<volume#>/addpath/<rootdir>/<firmware(name)>\0'
60 * On error returns Negative number or 0
61 * On success returns bytes from snprintf
62 * and generated path will be placed in buf
63 * note: if supplied buffer is too small return will be
64 * the number of bytes that would have been written
65 */
66
67/* TODO needs mapped back to debug_menu if root redirect ever becomes a reality */
68int get_redirect_dir(char* buf, int buffer_size, int volume,
69 const char* rootdir, const char* firmware);
70#endif