diff options
author | Johannes Rauh <johnbthetenth@gmail.com> | 2020-08-15 18:04:47 +0200 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-08-19 19:17:01 -0400 |
commit | da190727e768dea9e647989b3e765f910e9d0fbc (patch) | |
tree | d7d6443c124666ac90e5baba2605a42edd10d0c1 /firmware/export/mi4-loader.h | |
parent | 8ee035b6c884142f936b03b7419d14e9102515d9 (diff) | |
download | rockbox-da190727e768dea9e647989b3e765f910e9d0fbc.tar.gz rockbox-da190727e768dea9e647989b3e765f910e9d0fbc.zip |
Enable boot from SD for Sansa e200
Change-Id: I0940f2cd5fc914d6d5061b5798b1a636009649b7
Diffstat (limited to 'firmware/export/mi4-loader.h')
-rw-r--r-- | firmware/export/mi4-loader.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 | ||
50 | int load_mi4(unsigned char* buf, const char* firmware, unsigned int buffer_size); | 50 | int load_mi4(unsigned char* buf, const char* firmware, unsigned int buffer_size); |
51 | const char *mi4_strerror(int8_t errno); | 51 | const 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 */ | ||
68 | int get_redirect_dir(char* buf, int buffer_size, int volume, | ||
69 | const char* rootdir, const char* firmware); | ||
70 | #endif | ||