- if (!hwif->dma_vendor3)
- hwif->dma_vendor3 = hwif->dma_base + 3;
- if (!hwif->dma_prdtable)
- hwif->dma_prdtable = hwif->dma_base + 4;
-
- hwif->dma_ops = dma_ops;
-
- if (dma_ops->dma_host_set == NULL)
- dma_ops->dma_host_set = ide_dma_host_set;
- if (dma_ops->dma_setup == NULL)
- dma_ops->dma_setup = ide_dma_setup;
- if (dma_ops->dma_exec_cmd == NULL)
- dma_ops->dma_exec_cmd = ide_dma_exec_cmd;
- if (dma_ops->dma_start == NULL)
- dma_ops->dma_start = ide_dma_start;
- if (dma_ops->dma_end == NULL)
- dma_ops->dma_end = __ide_dma_end;
- if (dma_ops->dma_test_irq == NULL)
- dma_ops->dma_test_irq = __ide_dma_test_irq;
- if (dma_ops->dma_timeout == NULL)
- dma_ops->dma_timeout = ide_dma_timeout;
- if (dma_ops->dma_lost_irq == NULL)
- dma_ops->dma_lost_irq = ide_dma_lost_irq;