diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index b8a9d3b4d633..2da46af64604 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1007,10 +1007,15 @@ void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, u8 | |||
1007 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); | 1007 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); |
1008 | 1008 | ||
1009 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI | 1009 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI |
1010 | void ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *); | 1010 | int ide_pci_set_master(struct pci_dev *, const char *); |
1011 | unsigned long ide_pci_dma_base(ide_hwif_t *, const struct ide_port_info *); | ||
1012 | int ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *); | ||
1011 | #else | 1013 | #else |
1012 | static inline void ide_hwif_setup_dma(ide_hwif_t *hwif, | 1014 | static inline int ide_hwif_setup_dma(ide_hwif_t *hwif, |
1013 | const struct ide_port_info *d) { } | 1015 | const struct ide_port_info *d) |
1016 | { | ||
1017 | return -EINVAL; | ||
1018 | } | ||
1014 | #endif | 1019 | #endif |
1015 | 1020 | ||
1016 | extern void default_hwif_iops(ide_hwif_t *); | 1021 | extern void default_hwif_iops(ide_hwif_t *); |
@@ -1103,7 +1108,8 @@ struct ide_port_info { | |||
1103 | unsigned int (*init_chipset)(struct pci_dev *, const char *); | 1108 | unsigned int (*init_chipset)(struct pci_dev *, const char *); |
1104 | void (*init_iops)(ide_hwif_t *); | 1109 | void (*init_iops)(ide_hwif_t *); |
1105 | void (*init_hwif)(ide_hwif_t *); | 1110 | void (*init_hwif)(ide_hwif_t *); |
1106 | void (*init_dma)(ide_hwif_t *, unsigned long); | 1111 | int (*init_dma)(ide_hwif_t *, |
1112 | const struct ide_port_info *); | ||
1107 | 1113 | ||
1108 | const struct ide_port_ops *port_ops; | 1114 | const struct ide_port_ops *port_ops; |
1109 | 1115 | ||