Skip to content

Commit 5872fb9

Browse files
rddunlaptorvalds
authored andcommitted
Documentation: move DMA-mapping.txt to Doc/PCI/
Move DMA-mapping.txt to Documentation/PCI/. DMA-mapping.txt was supposed to be moved from Documentation/ to Documentation/PCI/. The 00-INDEX files in those two directories were updated, along with a few other text files, but the file itself somehow escaped being moved, so move it and update more text files and source files with its new location. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> cc: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ca493d1 commit 5872fb9

12 files changed

Lines changed: 35 additions & 33 deletions

File tree

‎Documentation/DMA-API.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This document describes the DMA API. For a more gentle introduction
77
phrased in terms of the pci_ equivalents (and actual examples) see
8-
DMA-mapping.txt
8+
Documentation/PCI/PCI-DMA-mapping.txt.
99

1010
This API is split into two pieces. Part I describes the API and the
1111
corresponding pci_ API. Part II describes the extensions to the API

‎Documentation/IO-mapping.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[ NOTE: The virt_to_bus() and bus_to_virt() functions have been
2-
superseded by the functionality provided by the PCI DMA
3-
interface (see Documentation/DMA-mapping.txt). They continue
2+
superseded by the functionality provided by the PCI DMA interface
3+
(see Documentation/PCI/PCI-DMA-mapping.txt). They continue
44
to be documented below for historical purposes, but new code
55
must not use them. --davidm 00/12/12 ]
66

‎Documentation/block/biodoc.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ a virtual address mapping (unlike the earlier scheme of virtual address
186186
do not have a corresponding kernel virtual address space mapping) and
187187
low-memory pages.
188188

189-
Note: Please refer to DMA-mapping.txt for a discussion on PCI high mem DMA
190-
aspects and mapping of scatter gather lists, and support for 64 bit PCI.
189+
Note: Please refer to Documentation/PCI/PCI-DMA-mapping.txt for a discussion
190+
on PCI high mem DMA aspects and mapping of scatter gather lists, and support
191+
for 64 bit PCI.
191192

192193
Special handling is required only for cases where i/o needs to happen on
193194
pages at physical memory addresses beyond what the device can support. In these

‎Documentation/usb/dma.txt‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ in the kernel usb programming guide (kerneldoc, from the source code).
66
API OVERVIEW
77

88
The big picture is that USB drivers can continue to ignore most DMA issues,
9-
though they still must provide DMA-ready buffers (see DMA-mapping.txt).
10-
That's how they've worked through the 2.4 (and earlier) kernels.
9+
though they still must provide DMA-ready buffers (see
10+
Documentation/PCI/PCI-DMA-mapping.txt). That's how they've worked through
11+
the 2.4 (and earlier) kernels.
1112

1213
OR: they can now be DMA-aware.
1314

@@ -62,8 +63,8 @@ and effects like cache-trashing can impose subtle penalties.
6263
force a consistent memory access ordering by using memory barriers. It's
6364
not using a streaming DMA mapping, so it's good for small transfers on
6465
systems where the I/O would otherwise thrash an IOMMU mapping. (See
65-
Documentation/DMA-mapping.txt for definitions of "coherent" and "streaming"
66-
DMA mappings.)
66+
Documentation/PCI/PCI-DMA-mapping.txt for definitions of "coherent" and
67+
"streaming" DMA mappings.)
6768

6869
Asking for 1/Nth of a page (as well as asking for N pages) is reasonably
6970
space-efficient.
@@ -93,7 +94,7 @@ WORKING WITH EXISTING BUFFERS
9394
Existing buffers aren't usable for DMA without first being mapped into the
9495
DMA address space of the device. However, most buffers passed to your
9596
driver can safely be used with such DMA mapping. (See the first section
96-
of DMA-mapping.txt, titled "What memory is DMA-able?")
97+
of Documentation/PCI/PCI-DMA-mapping.txt, titled "What memory is DMA-able?")
9798

9899
- When you're using scatterlists, you can map everything at once. On some
99100
systems, this kicks in an IOMMU and turns the scatterlists into single

‎arch/ia64/hp/common/sba_iommu.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ sba_mark_invalid(struct ioc *ioc, dma_addr_t iova, size_t byte_cnt)
906906
* @dir: R/W or both.
907907
* @attrs: optional dma attributes
908908
*
909-
* See Documentation/DMA-mapping.txt
909+
* See Documentation/PCI/PCI-DMA-mapping.txt
910910
*/
911911
dma_addr_t
912912
sba_map_single_attrs(struct device *dev, void *addr, size_t size, int dir,
@@ -1024,7 +1024,7 @@ sba_mark_clean(struct ioc *ioc, dma_addr_t iova, size_t size)
10241024
* @dir: R/W or both.
10251025
* @attrs: optional dma attributes
10261026
*
1027-
* See Documentation/DMA-mapping.txt
1027+
* See Documentation/PCI/PCI-DMA-mapping.txt
10281028
*/
10291029
void sba_unmap_single_attrs(struct device *dev, dma_addr_t iova, size_t size,
10301030
int dir, struct dma_attrs *attrs)
@@ -1102,7 +1102,7 @@ EXPORT_SYMBOL(sba_unmap_single_attrs);
11021102
* @size: number of bytes mapped in driver buffer.
11031103
* @dma_handle: IOVA of new buffer.
11041104
*
1105-
* See Documentation/DMA-mapping.txt
1105+
* See Documentation/PCI/PCI-DMA-mapping.txt
11061106
*/
11071107
void *
11081108
sba_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flags)
@@ -1165,7 +1165,7 @@ sba_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp
11651165
* @vaddr: virtual address IOVA of "consistent" buffer.
11661166
* @dma_handler: IO virtual address of "consistent" buffer.
11671167
*
1168-
* See Documentation/DMA-mapping.txt
1168+
* See Documentation/PCI/PCI-DMA-mapping.txt
11691169
*/
11701170
void sba_free_coherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)
11711171
{
@@ -1420,7 +1420,7 @@ sba_coalesce_chunks(struct ioc *ioc, struct device *dev,
14201420
* @dir: R/W or both.
14211421
* @attrs: optional dma attributes
14221422
*
1423-
* See Documentation/DMA-mapping.txt
1423+
* See Documentation/PCI/PCI-DMA-mapping.txt
14241424
*/
14251425
int sba_map_sg_attrs(struct device *dev, struct scatterlist *sglist, int nents,
14261426
int dir, struct dma_attrs *attrs)
@@ -1512,7 +1512,7 @@ EXPORT_SYMBOL(sba_map_sg_attrs);
15121512
* @dir: R/W or both.
15131513
* @attrs: optional dma attributes
15141514
*
1515-
* See Documentation/DMA-mapping.txt
1515+
* See Documentation/PCI/PCI-DMA-mapping.txt
15161516
*/
15171517
void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist,
15181518
int nents, int dir, struct dma_attrs *attrs)

‎arch/parisc/include/asm/dma-mapping.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <asm/cacheflush.h>
66
#include <asm/scatterlist.h>
77

8-
/* See Documentation/DMA-mapping.txt */
8+
/* See Documentation/PCI/PCI-DMA-mapping.txt */
99
struct hppa_dma_ops {
1010
int (*dma_supported)(struct device *dev, u64 mask);
1111
void *(*alloc_consistent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag);

‎arch/parisc/kernel/pci-dma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
** PARISC 1.1 Dynamic DMA mapping support.
33
** This implementation is for PA-RISC platforms that do not support
44
** I/O TLBs (aka DMA address translation hardware).
5-
** See Documentation/DMA-mapping.txt for interface definitions.
5+
** See Documentation/PCI/PCI-DMA-mapping.txt for interface definitions.
66
**
77
** (c) Copyright 1999,2000 Hewlett-Packard Company
88
** (c) Copyright 2000 Grant Grundler

‎arch/x86/include/asm/dma-mapping.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#define _ASM_X86_DMA_MAPPING_H
33

44
/*
5-
* IOMMU interface. See Documentation/DMA-mapping.txt and DMA-API.txt for
6-
* documentation.
5+
* IOMMU interface. See Documentation/PCI/PCI-DMA-mapping.txt and
6+
* Documentation/DMA-API.txt for documentation.
77
*/
88

99
#include <linux/scatterlist.h>

‎arch/x86/kernel/pci-gart_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This allows to use PCI devices that only support 32bit addresses on systems
66
* with more than 4GB.
77
*
8-
* See Documentation/DMA-mapping.txt for the interface specification.
8+
* See Documentation/PCI/PCI-DMA-mapping.txt for the interface specification.
99
*
1010
* Copyright 2002 Andi Kleen, SuSE Labs.
1111
* Subject to the GNU General Public License v2 only.

‎drivers/parisc/sba_iommu.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ sba_mark_invalid(struct ioc *ioc, dma_addr_t iova, size_t byte_cnt)
668668
* @dev: instance of PCI owned by the driver that's asking
669669
* @mask: number of address bits this PCI device can handle
670670
*
671-
* See Documentation/DMA-mapping.txt
671+
* See Documentation/PCI/PCI-DMA-mapping.txt
672672
*/
673673
static int sba_dma_supported( struct device *dev, u64 mask)
674674
{
@@ -680,8 +680,8 @@ static int sba_dma_supported( struct device *dev, u64 mask)
680680
return(0);
681681
}
682682

683-
/* Documentation/DMA-mapping.txt tells drivers to try 64-bit first,
684-
* then fall back to 32-bit if that fails.
683+
/* Documentation/PCI/PCI-DMA-mapping.txt tells drivers to try 64-bit
684+
* first, then fall back to 32-bit if that fails.
685685
* We are just "encouraging" 32-bit DMA masks here since we can
686686
* never allow IOMMU bypass unless we add special support for ZX1.
687687
*/
@@ -706,7 +706,7 @@ static int sba_dma_supported( struct device *dev, u64 mask)
706706
* @size: number of bytes to map in driver buffer.
707707
* @direction: R/W or both.
708708
*
709-
* See Documentation/DMA-mapping.txt
709+
* See Documentation/PCI/PCI-DMA-mapping.txt
710710
*/
711711
static dma_addr_t
712712
sba_map_single(struct device *dev, void *addr, size_t size,
@@ -785,7 +785,7 @@ sba_map_single(struct device *dev, void *addr, size_t size,
785785
* @size: number of bytes mapped in driver buffer.
786786
* @direction: R/W or both.
787787
*
788-
* See Documentation/DMA-mapping.txt
788+
* See Documentation/PCI/PCI-DMA-mapping.txt
789789
*/
790790
static void
791791
sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size,
@@ -861,7 +861,7 @@ sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size,
861861
* @size: number of bytes mapped in driver buffer.
862862
* @dma_handle: IOVA of new buffer.
863863
*
864-
* See Documentation/DMA-mapping.txt
864+
* See Documentation/PCI/PCI-DMA-mapping.txt
865865
*/
866866
static void *sba_alloc_consistent(struct device *hwdev, size_t size,
867867
dma_addr_t *dma_handle, gfp_t gfp)
@@ -892,7 +892,7 @@ static void *sba_alloc_consistent(struct device *hwdev, size_t size,
892892
* @vaddr: virtual address IOVA of "consistent" buffer.
893893
* @dma_handler: IO virtual address of "consistent" buffer.
894894
*
895-
* See Documentation/DMA-mapping.txt
895+
* See Documentation/PCI/PCI-DMA-mapping.txt
896896
*/
897897
static void
898898
sba_free_consistent(struct device *hwdev, size_t size, void *vaddr,
@@ -927,7 +927,7 @@ int dump_run_sg = 0;
927927
* @nents: number of entries in list
928928
* @direction: R/W or both.
929929
*
930-
* See Documentation/DMA-mapping.txt
930+
* See Documentation/PCI/PCI-DMA-mapping.txt
931931
*/
932932
static int
933933
sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
@@ -1011,7 +1011,7 @@ sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
10111011
* @nents: number of entries in list
10121012
* @direction: R/W or both.
10131013
*
1014-
* See Documentation/DMA-mapping.txt
1014+
* See Documentation/PCI/PCI-DMA-mapping.txt
10151015
*/
10161016
static void
10171017
sba_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents,

0 commit comments

Comments
 (0)