aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DMA-mapping.txt
diff options
context:
space:
mode:
author <hch@lst.de>2005-04-17 16:26:13 -0400
committerJames Bottomley <jejb@titanic>2005-04-18 14:49:58 -0400
commitbe7db055dd7261522557046370f49160728e3847 (patch)
tree314689dfb551ee9ad5ef8c27576762489a51897d /Documentation/DMA-mapping.txt
parent80e2ca3dcb1043420ac4b06de8eed3d6fedaddda (diff)
[PATCH] remove old scsi data direction macros
these have been wrappers for the generic dma direction bits since 2.5.x. This patch converts the few remaining drivers and removes the macros. Arjan noticed there's some hunk in here that shouldn't. Updated patch below: Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'Documentation/DMA-mapping.txt')
-rw-r--r--Documentation/DMA-mapping.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt
index f4ac37f157ea..684557474c15 100644
--- a/Documentation/DMA-mapping.txt
+++ b/Documentation/DMA-mapping.txt
@@ -443,15 +443,9 @@ Only streaming mappings specify a direction, consistent mappings
443implicitly have a direction attribute setting of 443implicitly have a direction attribute setting of
444PCI_DMA_BIDIRECTIONAL. 444PCI_DMA_BIDIRECTIONAL.
445 445
446The SCSI subsystem provides mechanisms for you to easily obtain 446The SCSI subsystem tells you the direction to use in the
447the direction to use, in the SCSI command: 447'sc_data_direction' member of the SCSI command your driver is
448 448working on.
449 scsi_to_pci_dma_dir(SCSI_DIRECTION)
450
451Where SCSI_DIRECTION is obtained from the 'sc_data_direction'
452member of the SCSI command your driver is working on. The
453mentioned interface above returns a value suitable for passing
454into the streaming DMA mapping interfaces below.
455 449
456For Networking drivers, it's a rather simple affair. For transmit 450For Networking drivers, it's a rather simple affair. For transmit
457packets, map/unmap them with the PCI_DMA_TODEVICE direction 451packets, map/unmap them with the PCI_DMA_TODEVICE direction