u-boot-brain/drivers/block
Taylor Hutt 64738e8ae8 ahci: Use virt_to_phys() to denote physical addresses for DMA
Update the assignment of various physical memory buffers used by the
SATA controller to explicitly be denoted as physical addresses.

The memory is identity-mapped, so these function calls are a nop, but
they provide good semantic documentation for any maintainers.

The return value of virt_to_phys() is 'unsigned long'.  On machines
where sizeof(unsigned long) != sizeof(pointer), a cast through
(uintptr_t) is needed to appease the compiler due to the potential of
losing the upper 32 bits of the address.

In compilation this scenario, a physical address could be 64-bits, yet
the C pointer environment only allows 32-bit addresses; the constraint
is that pointers cannot address more than 4Gb of memory and if
virt_to_phys() ever returns an out-of-range value for the physical
address, there are issues with emmory mapping which must be solved.
However, since the memory is identify mappeed, there is no problem
introducing the cast: the original pointer will reside in 32-bits, so
the physical address will also be within in 32-bits.

Signed-off-by: Taylor Hutt <thutt@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
2012-11-02 15:20:42 -07:00
..
ahci.c ahci: Use virt_to_phys() to denote physical addresses for DMA 2012-11-02 15:20:42 -07:00
ata_piix.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
ata_piix.h sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
dwc_ahsata.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
dwc_ahsata.h sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
fsl_sata.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
fsl_sata.h powerpc/85xx: always implement the work-around for Erratum SATA_A001 2011-11-29 08:48:06 -06:00
ftide020.c ftide020: fix incorrect information display format 2011-11-18 17:26:14 +08:00
ftide020.h ftide020: add faraday ide ahb controller 2011-05-12 23:41:44 +02:00
libata.c silence misc printf formatting compiler warnings 2008-07-10 22:12:09 +02:00
Makefile Block: Remove MG DISK support 2012-06-21 20:53:09 +02:00
mvsata_ide.c mvsata: fix ide_preinit for missing disks 2011-12-06 23:59:30 +01:00
mxc_ata.c ATA: Squash warnings in mxc_ata. 2011-09-30 22:01:06 +02:00
pata_bfin.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
pata_bfin.h sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
sata_dwc.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
sata_dwc.h Canyonlands SATA harddisk driver 2009-07-19 11:24:09 +02:00
sata_sil.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
sata_sil.h sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
sata_sil3114.c sata.h: Make all sata/ata drivers include <sata.h> 2012-10-15 11:54:03 -07:00
sata_sil3114.h Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
sil680.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
sym53c8xx.c drivers/block/sym53c8xx.c: Fix GCC 4.6 build warning 2011-11-16 21:01:49 +01:00
systemace.c block: systemace: Simplify base and width initialization 2012-09-11 09:24:16 +02:00