diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:30 -0400 |
commit | 8acf28c090f0e5e049f56b27bdd7cf1fb40c6b98 (patch) | |
tree | cbf910b986d423d030c5917515b3c68368aed70f /drivers/ide/setup-pci.c | |
parent | 528a572daea90aa41db92683e5a8756acef514c4 (diff) |
ide: add IDE_HFLAG_FORCE_LEGACY_IRQS host flag
Add IDE_HFLAG_FORCE_LEGACY_IRQS host flag to tell ide_pci_setup_ports()
to always set hwif->irq to legacy IRQ 14/15 and convert generic IDE PCI
and via82cxxx host drivers to use it.
While at it:
* Add IDE_HFLAGS_UMC define (generic IDE PCI host driver).
* Remove no longer needed init_hwif_generic() (generic IDE PCI host driver).
* Set d->udma_mask instead of hwif->ultra_mask (via82cxxx host driver).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r-- | drivers/ide/setup-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 30c0741c5e5c..4fa813b96e72 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -563,7 +563,8 @@ void ide_pci_setup_ports(struct pci_dev *dev, ide_pci_device_t *d, int pciirq, a | |||
563 | if ((d->host_flags & IDE_HFLAG_NO_DMA) == 0) | 563 | if ((d->host_flags & IDE_HFLAG_NO_DMA) == 0) |
564 | ide_hwif_setup_dma(dev, d, hwif); | 564 | ide_hwif_setup_dma(dev, d, hwif); |
565 | 565 | ||
566 | if ((d->host_flags & IDE_HFLAG_LEGACY_IRQS) && hwif->irq == 0) | 566 | if ((!hwif->irq && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) || |
567 | (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) | ||
567 | hwif->irq = port ? 15 : 14; | 568 | hwif->irq = port ? 15 : 14; |
568 | 569 | ||
569 | hwif->host_flags = d->host_flags; | 570 | hwif->host_flags = d->host_flags; |