linux/drivers/ide
Bartlomiej Zolnierkiewicz bfa14b42a3 ide: add ->cable_detect method to ide_hwif_t
* Add ->cable_detect method to ide_hwif_t.

* Call the new method in ide_init_port() if:
  - the host supports UDMA modes > UDMA2 ('hwif->ultra_mask & 78')
  - DMA initialization was successful (if hwif->dma_base is not set
    ide_init_port() sets hwif->ultra_mask to zero)
  - "idex=ata66" is not used ('hwif->cbl != ATA_CBL_PATA40_SHORT')

* Convert PCI host drivers to use ->cable_detect method.

While at it:

* Factor out cable detection to separate functions (if not already done).

* hpt366.c/it8213.c/slc90e66.c:
  - don't check cable type if "idex=ata66" is used

* pdc202xx_new.c:
  - add __devinit tag to pdcnew_cable_detect()

* pdc202xx_old.c:
  - rename pdc202xx_old_cable_detect() to pdc2026x_old_cable_detect()
  - add __devinit tag to pdc2026x_old_cable_detect()

Reviewed-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-02-02 19:56:31 +01:00
..
arm ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
cris ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
h8300 ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
legacy ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
mips ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
pci ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
ppc ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
ide-acpi.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-cd_ioctl.c ide-cd: move the remaining cdrom.c ioctl handling code to ide-cd_ioctl.c 2008-02-01 23:09:29 +01:00
ide-cd_verbose.c ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c 2008-02-01 23:09:23 +01:00
ide-cd.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-cd.h ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-disk.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-dma.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-floppy.c ide-floppy: cleanup header 2008-02-01 23:09:33 +01:00
ide-generic.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
ide-io.c ide: fix ide_intr() for non-PCI devices and CONFIG_BLK_DEV_IDEPCI=y 2008-02-01 23:09:31 +01:00
ide-iops.c ide: make probe_hwif() return an error value 2008-02-01 23:09:36 +01:00
ide-lib.c ide: keep pointer to struct device instead of struct pci_dev in ide_hwif_t 2008-02-01 23:09:31 +01:00
ide-pnp.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
ide-probe.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
ide-proc.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-scan-pci.c ide: small ide-scan-pci.c cleanup 2008-02-01 23:09:16 +01:00
ide-tape.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-taskfile.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-timing.h ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
Kconfig ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c 2008-02-01 23:09:23 +01:00
Makefile ide-cd: move code handling cdrom.c IOCTLs to ide-cd_ioctl.c 2008-02-01 23:09:25 +01:00
setup-pci.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00