rockbox/firmware/export/config
James Buren 4aa749b59d iriver_flash: refactor code to be easier to understand
This overhauls most of the code to be easier to understand in terms
of the interactions with the flash. I found the original to be rather
confusing with how it kept switching between byte and word offsets.

My solution was to make all external access to the flash in terms of
sectors and bytes. Whatever the flash uses internally is now handled
by the subroutines for performing the erase, program, and verify
operations.

This helps make it far more consistent for the code that actually uses
these operations as they do not need to concern themselves with word
sizes and offsets anymore.

As a side effect of this change the flash operations are now done
entirely by subroutines; even the batch operations that used to use
custom loops.

Additionally some functions were merged with other functions in order
to reduce the amount of functions as well as consolidating common
code fragments.

Change-Id: I4698e920a226a3bbe8070004a14e5848abdd70ec
2020-11-11 13:30:09 +00:00
..
agptekrocker.h hosted: Consolidate common config of hiby-based units into a common header 2020-10-17 20:45:41 -04:00
aigoerosq.h hosted: Consolidate common config of hiby-based units into a common header 2020-10-17 20:45:41 -04:00
android.h codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. 2020-10-09 11:39:25 -04:00
cowond2.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
creativezen.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezenmozaic.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezenv.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezenxfi.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezenxfi2.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezenxfi3.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezenxfistyle.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
creativezv.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
fiiom3k.h m3k: Fixes for the M3K. 2020-10-15 14:11:41 -04:00
gigabeatfx.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
gigabeats.h codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. 2020-10-09 11:39:25 -04:00
gogearhdd1630.h Disable 88/96KHz from targets that lack the IRAM to hold the mix buffers 2020-10-03 15:27:30 -04:00
gogearhdd6330.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
gogearsa9200.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
hibylinux.h hosted: Consolidate common config of hiby-based units into a common header 2020-10-17 20:45:41 -04:00
hifietma8.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
hifietma8c.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
hifietma9.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
hifietma9c.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
hifimanhm60x.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
hifimanhm801.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
iaudio7.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
iaudiom3.h coldfire: make the RAM and ROM image locations configurable by macros 2020-10-26 01:07:14 +00:00
iaudiom5.h coldfire: make the RAM and ROM image locations configurable by macros 2020-10-26 01:07:14 +00:00
iaudiox5.h coldfire: make the RAM and ROM image locations configurable by macros 2020-10-26 01:07:14 +00:00
ibassodx50.h hosted: sanitize handling of HOME_DIR 2020-10-11 17:47:34 -04:00
ibassodx90.h hosted: sanitize handling of HOME_DIR 2020-10-11 17:47:34 -04:00
ihifi760.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ihifi770.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ihifi770c.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ihifi800.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ihifi960.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipod1g2g.h FS#9295: Detect external power supply for ipod 1st & 2nd gen (Mark Fawcus) 2020-08-06 09:28:28 -04:00
ipod3g.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipod4g.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipod6g.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipodcolor.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipodmini1g.h Disable 88/96KHz from targets that lack the IRAM to hold the mix buffers 2020-10-03 15:27:30 -04:00
ipodmini2g.h Disable 88/96KHz from targets that lack the IRAM to hold the mix buffers 2020-10-03 15:27:30 -04:00
ipodnano1g.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipodnano2g.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ipodvideo.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
iriverh10.h Disable 88/96KHz from targets that lack the IRAM to hold the mix buffers 2020-10-03 15:27:30 -04:00
iriverh10_5gb.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
iriverh100.h iriver_flash: refactor code to be easier to understand 2020-11-11 13:30:09 +00:00
iriverh120.h iriver_flash: refactor code to be easier to understand 2020-11-11 13:30:09 +00:00
iriverh300.h iriver_flash: refactor code to be easier to understand 2020-11-11 13:30:09 +00:00
iriverifp7xx.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
librockplay.h buflib: Check the validity of of handles passed to buflib_get_data() in DEBUG builds. 2014-02-02 16:59:29 +01:00
logikdax.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
lyreproto1.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
meizum3.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
meizum6sl.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
meizum6sp.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
mini2440.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
mpiohd200.h coldfire: make the RAM and ROM image locations configurable by macros 2020-10-26 01:07:14 +00:00
mpiohd300.h coldfire: make the RAM and ROM image locations configurable by macros 2020-10-26 01:07:14 +00:00
mrobe100.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
mrobe500.h Whitespace cleanup on fb_viewport Rewrite 2020-10-26 12:38:22 -04:00
nokian8xx.h codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. 2020-10-09 11:39:25 -04:00
nokian900.h codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. 2020-10-09 11:39:25 -04:00
ondavx747.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ondavx767.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
ondavx777.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
pandora.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
rk27generic.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
samsungyh820.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
samsungyh920.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
samsungyh925.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
samsungypr0.h samsungyp: Enable recording feature. No idea if it works. :D 2020-10-23 17:49:07 -04:00
samsungypr1.h samsungyp: Enable recording feature. No idea if it works. :D 2020-10-23 17:49:07 -04:00
samsungyps3.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
samsungypz5.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansac100.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
sansac200.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
sansac200v2.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansaclip.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansaclipplus.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansaclipv2.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansaclipzip.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansaconnect.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
sansae200.h Enable boot from SD for Sansa e200 2020-08-19 19:17:01 -04:00
sansae200v2.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansafuze.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansafuzeplus.h FuzePlus USB+screen dump overflows usbstack 2020-11-02 21:38:13 -05:00
sansafuzev2.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansam200.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
sansam200v4.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
sansaview.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
sdlapp.h codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. 2020-10-09 11:39:25 -04:00
sim.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sonynwa20.h sonynwz: Properly support multidrive, with hotswap of the SD card 2020-10-18 10:19:42 -04:00
sonynwza10.h sonynwz: Properly support multidrive, with hotswap of the SD card 2020-10-18 10:19:42 -04:00
sonynwza860.h Add support for the NWZ-A860 2017-09-17 00:03:02 +02:00
sonynwze350.h Add support for the NWZ-E350 2017-09-17 23:47:49 +02:00
sonynwze360.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
sonynwze370.h imx233: Enable 96/192K playback for all imx233 targets that have room 2020-10-03 16:56:19 -04:00
sonynwze450.h Initial commit for the Sony NWZ linux port 2017-09-05 21:42:12 +02:00
sonynwze460.h Initial commit for the Sony NWZ linux port 2017-09-05 21:42:12 +02:00
sonynwze470.h Initial commit for the Sony NWZ linux port 2017-09-05 21:42:12 +02:00
sonynwze580.h Initial commit for the Sony NWZ linux port 2017-09-05 21:42:12 +02:00
sonynwzlinux.h sonynwz: A10 and A20 series support high bitrates 2020-10-26 07:42:48 -04:00
sonynwzs750.h Add support for the Sony NWZ-S750 2017-09-17 14:35:58 +02:00
tatungtpj1022.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
vibe500.h Disable 88/96KHz from targets that lack the IRAM to hold the mix buffers 2020-10-03 15:27:30 -04:00
xduoox3.h xduoox3: Work out clocks for 176/192KHz support. 2020-10-01 17:30:22 -04:00
xduoox3ii.h hosted: Consolidate common config of hiby-based units into a common header 2020-10-17 20:45:41 -04:00
xduoox20.h xduoox20: Remove a duplicate config option 2020-10-17 22:52:48 -04:00
zenvision.h
zenvisionm30gb.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
zenvisionm60gb.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00