diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:19 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 16:25:19 -0400 |
commit | 0d1bad216c43bcee84cc24d1ed003c19134d2645 (patch) | |
tree | 3cdcf7592c4e1a8899cde78beb512bffa21abf77 /include/linux | |
parent | 7ebe5936c214c656a1625abf9ec3b09e3d1bf34a (diff) |
ide: manage resources for PCI devices in ide_pci_enable() (take 3)
* Reserve PCI BARs 0-3 (0-1 for single port controllers) in
ide_pci_enable() and remove ide_hwif_request_regions() call
from ide_device_add_all() (also cleanup resource management
in scc_pata host driver).
* Fix handling of PCI BAR 4 in ide_pci_enable(), then cleanup
ide_iomio_dma() (+ init_hwif_trm290() in trm290 host driver)
and remove ide_release[_iomio]_dma().
v2:
* Fixup trm290 host driver.
v3:
* Because of scc_pata host driver changes we need to call
pci_request_selected_regions() also in setup_mmio_scc().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ide.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index a2d7800a4d30..4204d1f35ece 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1158,7 +1158,7 @@ void ide_destroy_dmatable(ide_drive_t *); | |||
1158 | 1158 | ||
1159 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF | 1159 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF |
1160 | extern int ide_build_dmatable(ide_drive_t *, struct request *); | 1160 | extern int ide_build_dmatable(ide_drive_t *, struct request *); |
1161 | extern int ide_release_dma(ide_hwif_t *); | 1161 | extern void ide_release_dma_engine(ide_hwif_t *); |
1162 | extern void ide_setup_dma(ide_hwif_t *, unsigned long); | 1162 | extern void ide_setup_dma(ide_hwif_t *, unsigned long); |
1163 | 1163 | ||
1164 | void ide_dma_host_set(ide_drive_t *, int); | 1164 | void ide_dma_host_set(ide_drive_t *, int); |
@@ -1182,7 +1182,7 @@ static inline void ide_check_dma_crc(ide_drive_t *drive) { ; } | |||
1182 | #endif /* CONFIG_BLK_DEV_IDEDMA */ | 1182 | #endif /* CONFIG_BLK_DEV_IDEDMA */ |
1183 | 1183 | ||
1184 | #ifndef CONFIG_BLK_DEV_IDEDMA_SFF | 1184 | #ifndef CONFIG_BLK_DEV_IDEDMA_SFF |
1185 | static inline void ide_release_dma(ide_hwif_t *drive) {;} | 1185 | static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } |
1186 | #endif | 1186 | #endif |
1187 | 1187 | ||
1188 | #ifdef CONFIG_BLK_DEV_IDEACPI | 1188 | #ifdef CONFIG_BLK_DEV_IDEACPI |