diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:55:50 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:55:50 -0400 |
commit | c97c6aca75fd5f718056fde7cff798b8cbdb07c0 (patch) | |
tree | 275635f3afb9d3a1f1f9ea5cebe08b5f327fc92c /include/linux/ide.h | |
parent | 51d87ed0aab98999bebaf891b99730e15502a592 (diff) |
ide: pass hw_regs_t-s to ide_device_add[_all]() (take 3)
* Add 'hw_regs_t **hws' argument to ide_device_add[_all]() and convert
host drivers + ide_legacy_init_one() + ide_setup_pci_device[s]() to use
it instead of calling ide_init_port_hw() directly.
[ However if host has > 1 port we must still set hwif->chipset to hint
consecutive ide_find_port() call that the previous slot is occupied. ]
* Unexport ide_init_port_hw().
v2:
* Use defines instead of hard-coded values in buddha.c, gayle.c and q40ide.c.
(Suggested by Geert Uytterhoeven)
* Better patch description.
v3:
* Fix build problem in ide-cs.c. (Noticed by Stephen Rothwell)
There should be no functional changes caused by this patch.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 4726126f5a59..f58548becac0 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1000,7 +1000,8 @@ extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *o | |||
1000 | #define ide_pci_register_driver(d) pci_register_driver(d) | 1000 | #define ide_pci_register_driver(d) pci_register_driver(d) |
1001 | #endif | 1001 | #endif |
1002 | 1002 | ||
1003 | void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, u8 *); | 1003 | void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, |
1004 | u8 *, hw_regs_t *, hw_regs_t **); | ||
1004 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); | 1005 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); |
1005 | 1006 | ||
1006 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI | 1007 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI |
@@ -1217,8 +1218,8 @@ void ide_undecoded_slave(ide_drive_t *); | |||
1217 | 1218 | ||
1218 | void ide_port_apply_params(ide_hwif_t *); | 1219 | void ide_port_apply_params(ide_hwif_t *); |
1219 | 1220 | ||
1220 | int ide_device_add_all(u8 *idx, const struct ide_port_info *); | 1221 | int ide_device_add_all(u8 *, const struct ide_port_info *, hw_regs_t **); |
1221 | int ide_device_add(u8 idx[4], const struct ide_port_info *); | 1222 | int ide_device_add(u8 *, const struct ide_port_info *, hw_regs_t **); |
1222 | int ide_legacy_device_add(const struct ide_port_info *, unsigned long); | 1223 | int ide_legacy_device_add(const struct ide_port_info *, unsigned long); |
1223 | void ide_port_unregister_devices(ide_hwif_t *); | 1224 | void ide_port_unregister_devices(ide_hwif_t *); |
1224 | void ide_port_scan(ide_hwif_t *); | 1225 | void ide_port_scan(ide_hwif_t *); |