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>
This commit is contained in:

committed by
Martin K. Petersen

parent
e5d55d1abc
commit
6c4b88ca59
@@ -40,8 +40,8 @@
|
||||
#define NCR5380_write(reg, value) outb(value, instance->io_port + reg)
|
||||
|
||||
#define NCR5380_dma_xfer_len(instance, cmd, phase) (0)
|
||||
#define NCR5380_pread(instance, dst, len) (0)
|
||||
#define NCR5380_pwrite(instance, src, len) (0)
|
||||
#define NCR5380_dma_recv_setup(instance, dst, len) (0)
|
||||
#define NCR5380_dma_send_setup(instance, src, len) (0)
|
||||
|
||||
#define NCR5380_implementation_fields /* none */
|
||||
|
||||
|
Reference in New Issue
Block a user