Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add INIT_ATTR to storage_init() when possible

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31036 a1c6a512-1295-4272-9138-f99709370657

+16 -6
+1 -1
firmware/export/ata.h
··· 37 37 */ 38 38 bool ata_disk_is_active(void); 39 39 int ata_soft_reset(void); 40 - int ata_init(void); 40 + int ata_init(void) STORAGE_INIT_ATTR; 41 41 void ata_close(void); 42 42 int ata_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); 43 43 int ata_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf);
+10
firmware/export/config.h
··· 908 908 #define INITDATA_ATTR 909 909 #endif 910 910 911 + /* We need to call storage_init more than once only if USB storage mode is 912 + * handled in hardware: 913 + * Deinit storage -> let hardware handle USB mode -> storage_init() again 914 + */ 915 + #if defined(HAVE_USBSTACK) || defined(USB_NONE) 916 + #define STORAGE_INIT_ATTR INIT_ATTR 917 + #else 918 + #define STORAGE_INIT_ATTR 919 + #endif 920 + 911 921 #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) 912 922 #define DATA_ATTR __attribute__ ((section("__DATA, .data"))) 913 923 #else
+1 -1
firmware/export/mmc.h
··· 33 33 void mmc_sleepnow(void); 34 34 bool mmc_disk_is_active(void); 35 35 int mmc_soft_reset(void); 36 - int mmc_init(void); 36 + int mmc_init(void) STORAGE_INIT_ATTR; 37 37 void mmc_close(void); 38 38 int mmc_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); 39 39 int mmc_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf);
+1 -1
firmware/export/nand.h
··· 33 33 void nand_sleepnow(void); 34 34 bool nand_disk_is_active(void); 35 35 int nand_soft_reset(void); 36 - int nand_init(void); 36 + int nand_init(void) STORAGE_INIT_ATTR; 37 37 void nand_close(void); 38 38 int nand_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); 39 39 int nand_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf);
+1 -1
firmware/export/ramdisk.h
··· 32 32 void ramdisk_sleep(void); 33 33 bool ramdisk_disk_is_active(void); 34 34 int ramdisk_soft_reset(void); 35 - int ramdisk_init(void); 35 + int ramdisk_init(void) STORAGE_INIT_ATTR; 36 36 void ramdisk_close(void); 37 37 int ramdisk_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); 38 38 int ramdisk_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf);
+1 -1
firmware/export/sd.h
··· 39 39 void sd_sleepnow(void); 40 40 bool sd_disk_is_active(void); 41 41 int sd_soft_reset(void); 42 - int sd_init(void); 42 + int sd_init(void) STORAGE_INIT_ATTR; 43 43 void sd_close(void); 44 44 int sd_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); 45 45 int sd_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf);
+1 -1
firmware/export/storage.h
··· 214 214 void storage_sleepnow(void); 215 215 bool storage_disk_is_active(void); 216 216 int storage_soft_reset(void); 217 - int storage_init(void); 217 + int storage_init(void) STORAGE_INIT_ATTR; 218 218 int storage_flush(void); 219 219 void storage_spin(void); 220 220 void storage_spindown(int seconds);