Add LBA48 support to all targets with ATA, except archoses whose USB bridge chip can't handle it.

The cost of LBA48 support is very small and it means that upgraded drives/CF cards which are over 128GiB will just work with no custom build required. There should be no runtime effect on disks which do not require it.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25553 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Torne Wuff 2010-04-09 12:10:17 +00:00
parent 4290051dd8
commit bad4142ce2
30 changed files with 90 additions and 0 deletions

View file

@ -39,6 +39,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -18,6 +18,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility /* define this if you have recording possibility
#define HAVE_RECORDING */ #define HAVE_RECORDING */

View file

@ -14,6 +14,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
/*#define HAVE_RECORDING*/ /*#define HAVE_RECORDING*/

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
/*#define HAVE_RECORDING*/ /*#define HAVE_RECORDING*/

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
/*#define HAVE_RECORDING*/ /*#define HAVE_RECORDING*/

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/* define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
/* Define bitmask of input sources - recordable bitmask can be defined /* Define bitmask of input sources - recordable bitmask can be defined

View file

@ -13,6 +13,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING
/* Define bitmask of input sources - recordable bitmask can be defined /* Define bitmask of input sources - recordable bitmask can be defined

View file

@ -12,6 +12,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -12,6 +12,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -11,6 +11,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -35,6 +35,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* Define this to add support for ATA DMA */ /* Define this to add support for ATA DMA */
//#define HAVE_ATA_DMA //#define HAVE_ATA_DMA

View file

@ -105,6 +105,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* We're able to shut off power to the HDD */ /* We're able to shut off power to the HDD */
/* todo #define HAVE_ATA_POWER_OFF */ /* todo #define HAVE_ATA_POWER_OFF */

View file

@ -112,6 +112,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* We're able to shut off power to the HDD */ /* We're able to shut off power to the HDD */
/* todo #define HAVE_ATA_POWER_OFF */ /* todo #define HAVE_ATA_POWER_OFF */

View file

@ -109,6 +109,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* We're able to shut off power to the HDD */ /* We're able to shut off power to the HDD */
/* todo #define HAVE_ATA_POWER_OFF */ /* todo #define HAVE_ATA_POWER_OFF */

View file

@ -12,6 +12,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
/*#define HAVE_RECORDING*/ /* TODO: add support for this */ /*#define HAVE_RECORDING*/ /* TODO: add support for this */

View file

@ -10,6 +10,9 @@
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have recording possibility */ /* define this if you have recording possibility */
#define HAVE_RECORDING #define HAVE_RECORDING

View file

@ -39,6 +39,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP

View file

@ -39,6 +39,9 @@
/* define this if you use an ATA controller */ /* define this if you use an ATA controller */
#define CONFIG_STORAGE STORAGE_ATA #define CONFIG_STORAGE STORAGE_ATA
/*define this if the ATA controller and method of USB access support LBA48 */
#define HAVE_LBA48
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP #define HAVE_LCD_BITMAP