diff options
Diffstat (limited to 'include/linux/ide.h')
| -rw-r--r-- | include/linux/ide.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index acec99da832d..23fad89292df 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -906,6 +906,8 @@ enum { | |||
| 906 | IDE_TFLAG_IN_DEVICE, | 906 | IDE_TFLAG_IN_DEVICE, |
| 907 | /* force 16-bit I/O operations */ | 907 | /* force 16-bit I/O operations */ |
| 908 | IDE_TFLAG_IO_16BIT = (1 << 30), | 908 | IDE_TFLAG_IO_16BIT = (1 << 30), |
| 909 | /* ide_task_t was allocated using kmalloc() */ | ||
| 910 | IDE_TFLAG_DYN = (1 << 31), | ||
| 909 | }; | 911 | }; |
| 910 | 912 | ||
| 911 | struct ide_taskfile { | 913 | struct ide_taskfile { |
| @@ -998,8 +1000,7 @@ extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *o | |||
| 998 | void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, u8 *); | 1000 | void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, u8 *); |
| 999 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); | 1001 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); |
| 1000 | 1002 | ||
| 1001 | /* FIXME: palm_bk3710 uses BLK_DEV_IDEDMA_PCI without BLK_DEV_IDEPCI! */ | 1003 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI |
| 1002 | #if defined(CONFIG_BLK_DEV_IDEPCI) && defined(CONFIG_BLK_DEV_IDEDMA_PCI) | ||
| 1003 | void ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *); | 1004 | void ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *); |
| 1004 | #else | 1005 | #else |
| 1005 | static inline void ide_hwif_setup_dma(ide_hwif_t *hwif, | 1006 | static inline void ide_hwif_setup_dma(ide_hwif_t *hwif, |
| @@ -1146,7 +1147,7 @@ ide_startstop_t ide_dma_intr(ide_drive_t *); | |||
| 1146 | int ide_build_sglist(ide_drive_t *, struct request *); | 1147 | int ide_build_sglist(ide_drive_t *, struct request *); |
| 1147 | void ide_destroy_dmatable(ide_drive_t *); | 1148 | void ide_destroy_dmatable(ide_drive_t *); |
| 1148 | 1149 | ||
| 1149 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI | 1150 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF |
| 1150 | extern int ide_build_dmatable(ide_drive_t *, struct request *); | 1151 | extern int ide_build_dmatable(ide_drive_t *, struct request *); |
| 1151 | extern int ide_release_dma(ide_hwif_t *); | 1152 | extern int ide_release_dma(ide_hwif_t *); |
| 1152 | extern void ide_setup_dma(ide_hwif_t *, unsigned long); | 1153 | extern void ide_setup_dma(ide_hwif_t *, unsigned long); |
| @@ -1157,7 +1158,7 @@ extern void ide_dma_start(ide_drive_t *); | |||
| 1157 | extern int __ide_dma_end(ide_drive_t *); | 1158 | extern int __ide_dma_end(ide_drive_t *); |
| 1158 | extern void ide_dma_lost_irq(ide_drive_t *); | 1159 | extern void ide_dma_lost_irq(ide_drive_t *); |
| 1159 | extern void ide_dma_timeout(ide_drive_t *); | 1160 | extern void ide_dma_timeout(ide_drive_t *); |
| 1160 | #endif /* CONFIG_BLK_DEV_IDEDMA_PCI */ | 1161 | #endif /* CONFIG_BLK_DEV_IDEDMA_SFF */ |
| 1161 | 1162 | ||
| 1162 | #else | 1163 | #else |
| 1163 | static inline int ide_id_dma_bug(ide_drive_t *drive) { return 0; } | 1164 | static inline int ide_id_dma_bug(ide_drive_t *drive) { return 0; } |
| @@ -1171,7 +1172,7 @@ static inline int ide_set_dma(ide_drive_t *drive) { return 1; } | |||
| 1171 | static inline void ide_check_dma_crc(ide_drive_t *drive) { ; } | 1172 | static inline void ide_check_dma_crc(ide_drive_t *drive) { ; } |
| 1172 | #endif /* CONFIG_BLK_DEV_IDEDMA */ | 1173 | #endif /* CONFIG_BLK_DEV_IDEDMA */ |
| 1173 | 1174 | ||
| 1174 | #ifndef CONFIG_BLK_DEV_IDEDMA_PCI | 1175 | #ifndef CONFIG_BLK_DEV_IDEDMA_SFF |
| 1175 | static inline void ide_release_dma(ide_hwif_t *drive) {;} | 1176 | static inline void ide_release_dma(ide_hwif_t *drive) {;} |
| 1176 | #endif | 1177 | #endif |
| 1177 | 1178 | ||
