diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2016-03-23 21:10:17 +1100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-04-11 16:57:09 -0400 |
commit | 6c4b88ca59ba1a68f707f19dba1744ed19e89fce (patch) | |
tree | 0eb88c5980ec178ae214c50dae3b203567665b4f /drivers/scsi/dtc.h | |
parent | e5d55d1abcef09f7440e6211d5bd673baf547630 (diff) | |
download | lwn-6c4b88ca59ba1a68f707f19dba1744ed19e89fce.tar.gz lwn-6c4b88ca59ba1a68f707f19dba1744ed19e89fce.zip |
ncr5380: Use DMA hooks for PDMA
Those wrapper drivers which use DMA define the REAL_DMA macro and
those which use pseudo DMA define PSEUDO_DMA. These macros need to be
removed for a number of reasons, not least of which is to have drivers
share more code.
Redefine the PDMA send and receive hooks as DMA setup hooks, so that the
DMA code can be shared by all 5380 wrapper drivers. This will help to
reunify the forked core driver.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/dtc.h')
-rw-r--r-- | drivers/scsi/dtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/dtc.h b/drivers/scsi/dtc.h index 718f95adcec6..65af89e4340c 100644 --- a/drivers/scsi/dtc.h +++ b/drivers/scsi/dtc.h @@ -21,6 +21,8 @@ #define NCR5380_dma_xfer_len(instance, cmd, phase) \ dtc_dma_xfer_len(cmd) +#define NCR5380_dma_recv_setup dtc_pread +#define NCR5380_dma_send_setup dtc_pwrite #define NCR5380_intr dtc_intr #define NCR5380_queue_command dtc_queue_command |