2019-05-27 08:55:01 +02:00
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 15:31:03 +02:00
|
|
|
|
2015-05-01 12:46:15 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-03-31 16:00:56 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-12-20 14:54:53 +11:00
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|
2008-12-11 09:46:44 +00:00
|
|
|
|
2011-07-12 09:25:51 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
powerpc: Merge 32 and 64-bit dma code
We essentially adopt the 64-bit dma code, with some changes to support
32-bit systems, including HIGHMEM. dma functions on 32-bit are now
invoked via accessor functions which call the correct op for a device based
on archdata dma_ops. If there is no archdata dma_ops, this defaults
to dma_direct_ops.
In addition, the dma_map/unmap_page functions are added to dma_ops
because we can't just fall back on map/unmap_single when HIGHMEM is
enabled. In the case of dma_direct_*, we stop using map/unmap_single
and just use the page version - this saves a lot of ugly
ifdeffing. We leave map/unmap_single in the dma_ops definition,
though, because they are needed by the iommu code, which does not
implement map/unmap_page. Ideally, going forward, we will completely
eliminate map/unmap_single and just have map/unmap_page, if it's
workable for 64-bit.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-09-12 10:34:46 +00:00
|
|
|
|
2021-12-16 17:00:16 -05:00
|
|
|
|
powerpc: Merge 32 and 64-bit dma code
We essentially adopt the 64-bit dma code, with some changes to support
32-bit systems, including HIGHMEM. dma functions on 32-bit are now
invoked via accessor functions which call the correct op for a device based
on archdata dma_ops. If there is no archdata dma_ops, this defaults
to dma_direct_ops.
In addition, the dma_map/unmap_page functions are added to dma_ops
because we can't just fall back on map/unmap_single when HIGHMEM is
enabled. In the case of dma_direct_*, we stop using map/unmap_single
and just use the page version - this saves a lot of ugly
ifdeffing. We leave map/unmap_single in the dma_ops definition,
though, because they are needed by the iommu code, which does not
implement map/unmap_page. Ideally, going forward, we will completely
eliminate map/unmap_single and just have map/unmap_page, if it's
workable for 64-bit.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-09-12 10:34:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|
2006-10-10 08:01:21 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|
|
|
|
|
|
2007-06-27 01:17:57 -05:00
|
|
|
|
|
|
|
|
|
2007-12-20 14:54:49 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-02-19 12:59:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-14 11:55:31 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-03 18:52:01 -06:00
|
|
|
|
|
|
|
|
|
2008-10-27 19:48:52 +00:00
|
|
|
|
2008-10-27 19:48:17 +00:00
|
|
|
|
2007-12-20 14:54:53 +11:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-27 19:48:52 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-11-04 15:30:56 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-05 10:45:52 -06:00
|
|
|
|
|
|
|
|
|
2011-04-11 11:37:07 +10:00
|
|
|
|
2005-11-04 15:30:56 -06:00
|
|
|
|
|
|
|
|
|
2008-10-27 19:48:37 +00:00
|
|
|
|
2005-11-04 15:30:56 -06:00
|
|
|
|
2023-09-22 10:04:58 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-16 17:48:09 -06:00
|
|
|
|
2008-10-27 19:48:37 +00:00
|
|
|
|
2009-08-28 08:58:16 +00:00
|
|
|
|
2011-02-04 11:24:11 -07:00
|
|
|
|
2008-10-14 11:55:31 +11:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-12-17 13:43:13 +11:00
|
|
|
|
2005-11-19 20:46:04 +11:00
|
|
|
|