summaryrefslogtreecommitdiff
path: root/bootloader/x1000/x1000bootloader.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-03-19 14:07:55 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-03-24 23:40:07 +0000
commit0d21d80ca8fc5f287eeb12ca67cc070b55ab46fa (patch)
treedc0c0106353708e1ac0e9df851c7fe4d85d91d3f /bootloader/x1000/x1000bootloader.h
parentee68d9df8e6b53476bb3bce8a024da60f9310a8b (diff)
downloadrockbox-0d21d80ca8fc5f287eeb12ca67cc070b55ab46fa.tar.gz
rockbox-0d21d80ca8fc5f287eeb12ca67cc070b55ab46fa.zip
x1000: bootloader: add basic flash dump utility
Change-Id: Id4ce0f00a78ef27399bdef6a7b32c23f89b9cb05
Diffstat (limited to 'bootloader/x1000/x1000bootloader.h')
-rw-r--r--bootloader/x1000/x1000bootloader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h
index 0309421ced..a7c9927f1b 100644
--- a/bootloader/x1000/x1000bootloader.h
+++ b/bootloader/x1000/x1000bootloader.h
@@ -167,6 +167,11 @@ int load_uimage_file(const char* filename,
167int load_uimage_flash(uint32_t addr, uint32_t length, 167int load_uimage_flash(uint32_t addr, uint32_t length,
168 struct uimage_header* uh, size_t* sizep); 168 struct uimage_header* uh, size_t* sizep);
169 169
170int dump_flash(int fd, uint32_t addr, uint32_t length);
171int dump_flash_file(const char* file, uint32_t addr, uint32_t length);
172void dump_of_player(void);
173void dump_of_recovery(void);
174
170void recovery_menu(void) __attribute__((noreturn)); 175void recovery_menu(void) __attribute__((noreturn));
171 176
172#endif /* __X1000BOOTLOADER_H__ */ 177#endif /* __X1000BOOTLOADER_H__ */