uboot/include
Sascha Silbe ff8fef5666 Fix block device accesses beyond 2TiB
With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
which is required to represent block numbers for storage devices that
exceed 2TiB (the block size usually is 512B), e.g. recent hard drives.

For some obscure reason, the current U-Boot code uses lbaint_t for the
number of blocks to read (a rather optimistic estimation of how RAM
sizes will evolve), but not for the starting address. Trying to access
blocks beyond the 2TiB boundary will simply wrap around and read a
block within the 0..2TiB range.

We now use lbaint_t for block start addresses, too. This required
changes to all block drivers as the signature of block_read(),
block_write() and block_erase() in block_dev_desc_t changed.

Signed-off-by: Sascha Silbe <t-uboot@infra-silbe.de>
2013-06-26 10:26:06 -04:00
..
andestech
asm-generic Add trace support to generic board 2013-06-26 10:16:41 -04:00
bedbug Consolidate bool type 2013-04-01 16:33:52 -04:00
configs sandbox: config: Enable FIT signatures with RSA 2013-06-26 10:18:57 -04:00
cramfs
faraday mmc: update Faraday FTSDC010 for rw performance 2013-05-15 18:18:15 -05:00
galileo Consolidate bool type 2013-04-01 16:33:52 -04:00
jffs2
linux add support for Xilinx 1000BASE-X phy (GTX) 2013-06-24 19:11:13 -05:00
lzma
mtd Merge branch 'master' of git://git.denx.de/u-boot-nand-flash 2013-05-31 18:28:47 -04:00
pcmcia
power SMDK5250: Add PMIC voltage settings 2013-02-20 16:48:17 +09:00
synopsys
u-boot Roll crc32 into hash infrastructure 2013-02-28 19:09:23 -08:00
usb usb: ehci: add Faraday USB 2.0 EHCI support 2013-06-12 22:22:51 +02:00
zfs
.gitignore
74xx_7xx.h
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h
addr_map.h
aes.h
ahci.h ahci: cosmetics and cleanup 2012-11-02 15:20:41 -07:00
ali512x.h
altera.h fpga: Remove all CONFIG_SYS_* fpga related options 2013-05-06 10:41:30 +02:00
amba_clcd.h
ambapp.h
ansi.h New command bootmenu: ANSI terminal boot menu support 2013-03-29 09:35:34 +01:00
api_public.h
arm925t.h
armcoremodule.h
asm-offsets.h
at45.h
at91rm9200_i2c.h
at91rm9200_net.h Consolidate bool type 2013-04-01 16:33:52 -04:00
ata.h ahci: Perform SATA flush after disk write. 2012-11-02 15:20:43 -07:00
atmel_hlcdc.h video: atmel: implement lcd_setcolreg function 2012-11-10 14:04:08 +01:00
atmel_lcdc.h
atmel_mci.h mmc: atmel_mci: using IP version for different setting 2013-05-12 16:47:05 +02:00
bcd.h
bcm5221.h
bmp_layout.h
bootcount.h
bootstage.h bootstage: Remove unused entries related to kernel/ramdisk/fdt load 2013-06-04 16:06:32 -04:00
bouncebuf.h common: rework bouncebuf implementation 2012-11-27 17:26:48 -06:00
bus_vcxk.h
bzlib.h
cbfs.h cbfs: Add docbook template 2012-12-06 13:56:39 -07:00
circbuf.h
cmd_spl.h
command.h bootz: un-staticize do_bootz 2013-06-24 19:07:33 -05:00
common.h Add trace library 2013-06-26 10:16:41 -04:00
commproc.h powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 2013-06-11 22:01:45 +02:00
compiler.h
config_cmd_all.h Add fuse API and commands 2013-04-28 11:07:40 +02:00
config_cmd_default.h config_cmd_default.h: Remove CONFIG_CMD_MEMTEST 2013-04-19 15:03:27 -04:00
config_cmd_defaults.h
config_defaults.h image: Add support for Plan 9 2013-03-27 15:30:11 -04:00
config_fallbacks.h Makefile: Change CONFIG_SPL_PAD_TO to image offset 2013-04-12 07:55:06 +02:00
config_phylib_all_drivers.h phylib: Enable SMSC LAN87xx PHY support 2012-10-22 15:52:46 -05:00
config_uncmd_spl.h
cpsw.h
crc.h
cros_ec.h cros: add cros_ec driver 2013-06-26 10:07:11 -04:00
cros_ec_message.h cros: add cros_ec driver 2013-06-26 10:07:11 -04:00
da9030.h
dataflash.h
ddr_spd.h
dfu.h dfu: NAND specific routines for DFU operation 2013-04-10 15:22:24 +02:00
dialog_pmic.h
div64.h
dm9000.h
dm9161.h
dp83848.h
ds1722.h
ds4510.h
dtt.h
dwmmc.h EXYNOS5: DWMMC: Added FDT support for DWMMC 2013-06-13 17:35:14 +09:00
e500.h poweprc/85xx: add QMan frequency info and fdt fixup. 2012-10-22 15:52:46 -05:00
ec_commands.h cros: add cros_ec driver 2013-06-26 10:07:11 -04:00
edid.h edid: Library of EDID decode and print 2012-12-11 13:17:34 -07:00
elf.h
env_attr.h env: Add support for callbacks to environment vars 2012-12-13 11:46:55 -07:00
env_callback.h env_callback: Mark find_env_callback as static 2013-03-27 15:30:11 -04:00
env_default.h env: Add environment variable flags 2012-12-13 11:46:56 -07:00
env_flags.h env: Handle write-once ethaddr and serial# generically 2012-12-13 11:46:57 -07:00
environment.h mmc: fix env in mmc with redundant compile error 2013-06-13 16:44:49 -05:00
errno.h
exports.h vsprintf: add ustrtoll function 2013-02-19 17:01:26 -05:00
ext4fs.h fs/ext4: Support device block sizes != 512 bytes 2013-05-10 08:16:33 -04:00
ext_common.h fs/ext4: Support device block sizes != 512 bytes 2013-05-10 08:16:33 -04:00
fat.h fs: Move ls and read methods into ext4, fat 2013-03-04 14:19:56 -05:00
fdc.h
fdt.h Move FDT_RAMDISK_OVERHEAD from fdt.h to libfdt_env.h 2013-05-10 19:04:50 -04:00
fdt_support.h image: Add device tree setup to image library 2013-05-14 15:37:25 -04:00
fdtdec.h cros: adds cros_ec keyboard driver 2013-06-26 10:13:31 -04:00
fis.h
flash.h mtd/cfi: add support for SST 4KB sector granularity 2013-01-10 14:39:13 +01:00
fm_eth.h Fman/t4240: some fix for 10G XAUI 2013-05-14 16:00:26 -05:00
fpga.h fpga: Remove all CONFIG_SYS_* fpga related options 2013-05-06 10:41:30 +02:00
fs.h fs: Add support for saving data to filesystems 2013-05-01 11:17:21 -04:00
fsl_diu_fb.h
fsl_esdhc.h fsl_esdhc: Fix DMA transfer completion waiting loop 2013-04-14 11:22:47 +02:00
fsl_mdio.h fm/mEMAC: add mEMAC frame work 2012-10-22 14:31:25 -05:00
fsl_pmic.h
fuse.h Add fuse API and commands 2013-04-28 11:07:40 +02:00
g_dnl.h Remove obsolete header file 2012-11-27 09:41:10 -07:00
gdsys_fpga.h
hash.h hash: Add a way to calculate a hash for any algortihm 2013-05-14 15:37:24 -04:00
hush.h
hw_sha.h gen: Add sha h/w acceleration to hash 2013-03-29 20:10:42 +09:00
hwconfig.h
i2c.h I2C: Driver changes for FDT support 2013-01-08 10:54:33 +09:00
i2s.h SOUND: SAMSUNG: Add I2S driver 2012-11-15 21:08:20 +09:00
i8042.h input: i8042: Provide feature to disable keyboard before booting kernel 2012-10-19 15:25:43 -07:00
ide.h Fix block device accesses beyond 2TiB 2013-06-26 10:26:06 -04:00
image.h image: Add support for signing of FIT configurations 2013-06-26 10:18:56 -04:00
initcall.h Introduce a basic initcall implementation 2013-03-15 16:13:59 -04:00
input.h input: Add ANSI 3.64 escape sequence generation. 2012-10-19 15:25:44 -07:00
iomux.h
ioports.h
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
ks8721.h
lattice.h fpga: Remove all CONFIG_SYS_* fpga related options 2013-05-06 10:41:30 +02:00
lcd.h lcd: add functions to set up simplefb device tree 2013-06-05 22:40:03 +02:00
lcdvideo.h
ld9040.h drivers: video: Add ld9040 video driver 2012-11-15 21:08:19 +09:00
led-display.h
libata.h
libfdt.h libfdt: Add fdt_find_regions() 2013-06-26 10:18:56 -04:00
libfdt_env.h Move FDT_RAMDISK_OVERHEAD from fdt.h to libfdt_env.h 2013-05-10 19:04:50 -04:00
libtizen.h
linker_lists.h Refactor linker-generated arrays 2013-03-12 23:28:40 +01:00
linux_logo.h
lmb.h image: Add device tree setup to image library 2013-05-14 15:37:25 -04:00
logbuff.h
lxt971a.h
lynxkdi.h
malloc.h Consolidate bool type 2013-04-01 16:33:52 -04:00
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h pmic: Add support for mc34704 2012-10-26 16:28:07 +02:00
menu.h menu: export menu_default_choice() function 2013-03-29 09:35:34 +01:00
micrel.h net: phy: supplement support for Micrel's KSZ9031 2013-06-24 19:11:16 -05:00
mii_phy.h
miiphy.h
mk48t59.h
mmc.h Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-06-22 07:38:12 -04:00
mpc5xx.h
mpc5xxx.h
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
mpc85xx.h
mpc86xx.h
mpc106.h
mpc824x.h
mpc8260.h
mpc8260_irq.h
mtd_node.h
mv88e6352.h
mvmfp.h
nand.h mtd: resync with Linux-3.7.1 2013-05-31 17:12:03 -05:00
net.h net: make IPaddr type big endian 2013-06-24 19:11:12 -05:00
netdev.h net: add Faraday FTMAC110 10/100Mbps ethernet support 2013-06-24 19:11:16 -05:00
nios2-epcs.h
nios2-io.h
nios2-yanu.h
nios2.h nios2: use builtin functions for control registers access 2012-11-10 19:45:58 +08:00
nomadik.h
ns16550.h
ns87308.h
onenand_uboot.h arm: Remove support for unused s3c64xx 2013-04-12 07:55:08 +02:00
os.h sandbox: Add a way of obtaining directory listings 2013-03-04 14:19:56 -05:00
palmas.h ARM: OMAP5: Power: Add more functionality to Palmas driver 2013-06-10 08:43:10 -04:00
part.h Fix block device accesses beyond 2TiB 2013-06-26 10:26:06 -04:00
part_efi.h disk/gpt: Fix GPT partition handling for blocksize != 512 2013-05-01 16:24:02 -04:00
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pci.h pci: Convert extern inline functions to static inline 2013-06-26 10:16:40 -04:00
pci_ids.h
pcmcia.h PPC: remove dead boards (AMX860, c2mon, ETX094, IAD210, LANTEC, SCM) 2012-10-28 20:17:25 +01:00
phy.h phy: export genphy_parse_link() 2013-06-24 19:07:32 -05:00
physmem.h Introduce arch_phys_memset which works like memset but on physical memory 2012-12-06 14:30:40 -08:00
post.h
ppc_asm.tmpl Power: remove support for Freescale MPC8220 2013-05-15 08:41:03 -04:00
ppc_defs.h
ps2mult.h
pwm.h
radeon.h
reiserfs.h
rsa.h image: Add RSA support for image signing 2013-06-26 10:18:56 -04:00
rtc.h
s6e63d6.h
s_record.h
sandboxfs.h sandbox: fs: Add support for saving files to host filesystem 2013-05-01 11:17:21 -04:00
sata.h
scsi.h Consolidate bool type 2013-04-01 16:33:52 -04:00
sdhci.h mmc: add no simultaenous power and vdd 2012-11-27 17:26:48 -06:00
search.h "env grep" - add support for regular expression matches 2013-05-01 16:24:00 -04:00
sed156x.h
sed13806.h
serial.h Tegra30: Add generic Tegra30 build support 2013-01-16 13:40:08 -07:00
sh_pfc.h
sh_tmu.h
sha1.h sha1: Use const where possible, and unsigned for input len 2012-12-11 13:17:33 -07:00
sha256.h sha256: Use const where possible and add watchdog function 2012-12-11 13:17:33 -07:00
sja1000.h
slre.h Add SLRE - Super Light Regular Expression library 2013-05-01 16:24:00 -04:00
sm501.h
smiLynxEM.h
sound.h Sound: Support for MAX98095 codec in driver 2013-03-08 22:34:18 +09:00
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi.h cros: exynos: add SPI support for cros_ec 2013-06-26 10:13:24 -04:00
spi_flash.h sf: Add flag status register polling support 2013-06-23 22:02:51 +05:30
spl.h ARM: OMAP: Cleanup boot parameters usage 2013-05-10 08:25:56 -04:00
status_led.h nios2: remove asm/status_led.h 2012-11-10 19:45:58 +08:00
stdio_dev.h serial: arm_dcc: Remove CONFIG_ARM_DCC_MULTI option 2013-02-04 09:14:21 -05:00
stratixII.h
sym53c8xx.h Consolidate bool type 2013-04-01 16:33:52 -04:00
systemace.h
tegra-kbc.h
timestamp.h
tis.h tpm: Add TPM command library 2013-04-12 14:13:13 -07:00
tmu.h Exynos5: TMU: Add driver for Thermal Management Unit 2013-03-12 17:06:03 +09:00
tpm.h tpm: Add TPM command library 2013-04-12 14:13:13 -07:00
tps6586x.h
trace.h Add trace library 2013-06-26 10:16:41 -04:00
tsec.h
tsi108.h
tsi148.h
twl4030.h twl4030: make twl4030_i2c_read_u8 prototype consistent 2013-05-10 08:25:54 -04:00
twl6030.h twl6030: add header guard 2013-05-10 08:25:54 -04:00
tws.h
ubi_uboot.h ubi: Expose a few simple functions from the cmd_ubi 2013-04-11 15:52:54 -04:00
universe.h
usb.h USB: SS: Add support for Super Speed USB interface 2013-05-05 23:54:22 +02:00
usb_cdc_acm.h
usb_defs.h usb: fix: Fixing Port status and feature number constants 2013-05-06 02:16:36 +02:00
usb_ether.h
usb_mass_storage.h usb:gadget: USB Mass Storage Gadget support 2013-03-18 18:58:53 +01:00
usbdescriptors.h
usbdevice.h Consolidate bool type 2013-04-01 16:33:52 -04:00
version.h
video.h video: Provide an API to access video parameters 2012-11-06 22:57:32 +01:00
video_ad7176.h
video_ad7177.h
video_ad7179.h
video_easylogo.h
video_fb.h
video_font.h
video_font_data.h
video_logo.h
virtex2.h
vsc7385.h
vsprintf.h Add function to print a number with grouped digits 2013-06-26 10:16:41 -04:00
vxworks.h
w83c553f.h
watchdog.h blackfin: Move blackfin watchdog driver out of the blackfin arch folder. 2013-05-13 16:30:26 +08:00
xilinx.h fpga: Remove all CONFIG_SYS_* fpga related options 2013-05-06 10:41:30 +02:00
xyzModem.h Consolidate bool type 2013-04-01 16:33:52 -04:00
zfs_common.h
zynqpl.h fpga: Check device name against bitstream name 2013-05-06 10:41:25 +02:00