linux-next/Documentation
Bjorn Helgaas 88a984ba07 DMA-API: Change dma_declare_coherent_memory() CPU address to phys_addr_t
dma_declare_coherent_memory() takes two addresses for a region of memory: a
"bus_addr" and a "device_addr".  I think the intent is that "bus_addr" is
the physical address a *CPU* would use to access the region, and
"device_addr" is the bus address the *device* would use to address the
region.

Rename "bus_addr" to "phys_addr" and change its type to phys_addr_t.
Most callers already supply a phys_addr_t for this argument.  The others
supply a 32-bit integer (a constant, unsigned int, or __u32) and need no
change.

Use "unsigned long", not phys_addr_t, to hold PFNs.

No functional change (this could theoretically fix a truncation in a config
with 32-bit dma_addr_t and 64-bit phys_addr_t, but I don't think there are
any such cases involving this code).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: James Bottomley <jbottomley@Parallels.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
2014-05-20 16:55:23 -06:00
..
2014-04-07 16:36:02 -07:00
2011-09-27 18:08:04 +02:00
2012-04-03 13:09:18 +02:00
2014-03-27 16:56:23 -04:00
2014-04-11 13:35:49 -07:00
2014-03-11 06:55:49 -03:00
2014-02-10 16:01:40 -08:00
2014-02-28 15:12:08 -08:00
2011-09-27 18:08:04 +02:00
2013-04-02 09:39:55 -07:00
2014-02-10 16:01:40 -08:00
2014-03-21 13:16:58 +01:00
2013-11-27 11:03:38 -08:00
2013-01-10 01:27:46 +01:00
2014-03-21 13:16:58 +01:00
2013-10-16 13:35:02 -07:00
2014-03-21 13:16:58 +01:00
2014-03-21 13:16:58 +01:00
2014-02-18 08:09:40 -08:00
2013-11-14 11:04:40 -08:00
2014-02-07 08:03:07 -02:00
2013-12-02 14:48:28 +01:00
2014-03-21 13:16:58 +01:00
2013-12-02 14:48:28 +01:00
2013-12-02 14:48:28 +01:00
2011-09-27 18:08:04 +02:00
2014-03-21 13:16:58 +01:00
2013-12-02 14:45:19 +01:00
2012-02-28 16:05:06 +01:00
2013-10-24 10:51:33 +02:00
2013-09-05 16:36:21 -06:00
2012-01-02 13:04:55 +01:00