mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[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 <[email protected]>
This commit is contained in:
parent
80e2ca3dcb
commit
be7db055dd
16 changed files with 77 additions and 142 deletions
|
|
@ -443,15 +443,9 @@ Only streaming mappings specify a direction, consistent mappings
|
|||
implicitly have a direction attribute setting of
|
||||
PCI_DMA_BIDIRECTIONAL.
|
||||
|
||||
The SCSI subsystem provides mechanisms for you to easily obtain
|
||||
the direction to use, in the SCSI command:
|
||||
|
||||
scsi_to_pci_dma_dir(SCSI_DIRECTION)
|
||||
|
||||
Where SCSI_DIRECTION is obtained from the 'sc_data_direction'
|
||||
member of the SCSI command your driver is working on. The
|
||||
mentioned interface above returns a value suitable for passing
|
||||
into the streaming DMA mapping interfaces below.
|
||||
The SCSI subsystem tells you the direction to use in the
|
||||
'sc_data_direction' member of the SCSI command your driver is
|
||||
working on.
|
||||
|
||||
For Networking drivers, it's a rather simple affair. For transmit
|
||||
packets, map/unmap them with the PCI_DMA_TODEVICE direction
|
||||
|
|
|
|||
Loading…
Reference in a new issue