aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ide.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 1286a2275efb..a41ae57fafc5 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -558,6 +558,11 @@ typedef struct hwif_s {
558#endif 558#endif
559} ____cacheline_internodealigned_in_smp ide_hwif_t; 559} ____cacheline_internodealigned_in_smp ide_hwif_t;
560 560
561struct ide_host {
562 ide_hwif_t *ports[MAX_HWIFS];
563 unsigned int n_ports;
564};
565
561/* 566/*
562 * internal ide interrupt handler type 567 * internal ide interrupt handler type
563 */ 568 */
@@ -813,13 +818,6 @@ int generic_ide_ioctl(ide_drive_t *, struct file *, struct block_device *, unsig
813extern int ide_vlb_clk; 818extern int ide_vlb_clk;
814extern int ide_pci_clk; 819extern int ide_pci_clk;
815 820
816ide_hwif_t *ide_find_port_slot(const struct ide_port_info *);
817
818static inline ide_hwif_t *ide_find_port(void)
819{
820 return ide_find_port_slot(NULL);
821}
822
823extern int ide_end_request (ide_drive_t *drive, int uptodate, int nrsecs); 821extern int ide_end_request (ide_drive_t *drive, int uptodate, int nrsecs);
824int ide_end_dequeued_request(ide_drive_t *drive, struct request *rq, 822int ide_end_dequeued_request(ide_drive_t *drive, struct request *rq,
825 int uptodate, int nr_sectors); 823 int uptodate, int nr_sectors);
@@ -1024,7 +1022,7 @@ extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *o
1024#endif 1022#endif
1025 1023
1026void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, 1024void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int,
1027 u8 *, hw_regs_t *, hw_regs_t **); 1025 hw_regs_t *, hw_regs_t **);
1028void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); 1026void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *);
1029 1027
1030#ifdef CONFIG_BLK_DEV_IDEDMA_PCI 1028#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
@@ -1236,8 +1234,11 @@ void ide_undecoded_slave(ide_drive_t *);
1236 1234
1237void ide_port_apply_params(ide_hwif_t *); 1235void ide_port_apply_params(ide_hwif_t *);
1238 1236
1239int ide_device_add_all(u8 *, const struct ide_port_info *, hw_regs_t **); 1237struct ide_host *ide_host_alloc_all(const struct ide_port_info *, hw_regs_t **);
1240int ide_device_add(u8 *, const struct ide_port_info *, hw_regs_t **); 1238struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **);
1239int ide_host_register(struct ide_host *, const struct ide_port_info *,
1240 hw_regs_t **);
1241void ide_host_remove(struct ide_host *);
1241int ide_legacy_device_add(const struct ide_port_info *, unsigned long); 1242int ide_legacy_device_add(const struct ide_port_info *, unsigned long);
1242void ide_port_unregister_devices(ide_hwif_t *); 1243void ide_port_unregister_devices(ide_hwif_t *);
1243void ide_port_scan(ide_hwif_t *); 1244void ide_port_scan(ide_hwif_t *);