linux/drivers/ide/pci
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
..
aec62xx.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
alim15x3.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
amd74xx.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
atiixp.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
cmd64x.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
cmd640.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
cs5520.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
cs5530.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
cs5535.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
cy82c693.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
delkin_cb.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
generic.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
hpt34x.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
hpt366.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
it821x.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
it8213.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
jmicron.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
Makefile ide: make remaining built-in only IDE host drivers modular (take 2) 2008-01-26 20:13:07 +01:00
ns87415.c ide: make probe_hwif() return an error value 2008-02-01 23:09:36 +01:00
opti621.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
pdc202xx_new.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
pdc202xx_old.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
piix.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
rz1000.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
sc1200.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
scc_pata.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
serverworks.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
sgiioc4.c ide: add struct ide_port_info instances to legacy host drivers 2008-02-02 19:56:31 +01:00
siimage.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
sis5513.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
sl82c105.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
slc90e66.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
tc86c001.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
triflex.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
trm290.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
via82cxxx.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00