aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:51 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:51 -0400
commitebb00fb55d0566bb3e81518122a57b4b3bedf1e4 (patch)
treed8a717bf0e4556a71ba71579a6d5cedfa5bad980 /include/linux
parent81e8d5a34f7d2a2acbe309cfa5810a9699a63239 (diff)
ide: factor out simplex handling from ide_pci_dma_base()
* Factor out simplex handling from ide_pci_dma_base() to ide_pci_check_simplex(). * Set hwif->dma_base early in ->init_dma method / ide_hwif_setup_dma() and reset it in ide_init_port() if DMA initialization fails. * Use ->read_sff_dma_status instead of ->INB in ide_pci_dma_base(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ide.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 6d774607e32a..a179a7f6e444 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1008,6 +1008,7 @@ void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *);
1008int ide_pci_set_master(struct pci_dev *, const char *); 1008int ide_pci_set_master(struct pci_dev *, const char *);
1009unsigned long ide_pci_dma_base(ide_hwif_t *, const struct ide_port_info *); 1009unsigned long ide_pci_dma_base(ide_hwif_t *, const struct ide_port_info *);
1010extern const struct ide_dma_ops sff_dma_ops; 1010extern const struct ide_dma_ops sff_dma_ops;
1011int ide_pci_check_simplex(ide_hwif_t *, const struct ide_port_info *);
1011int ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *); 1012int ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *);
1012#else 1013#else
1013static inline int ide_hwif_setup_dma(ide_hwif_t *hwif, 1014static inline int ide_hwif_setup_dma(ide_hwif_t *hwif,