diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:11 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:11 -0400 |
commit | 3985ee3b4c5f9e1d73623b92715375b089c54353 (patch) | |
tree | 13741edc5575b3ebb436f94b04e338b3b0701e9f /drivers/ide/pci/atiixp.c | |
parent | 1c51361a9867021dd7444b56d87834003d4ca67d (diff) |
ide: add IDE_HFLAG_LEGACY_IRQS host flag
Add IDE_HFLAG_LEGACY_IRQS host flag to tell ide_pci_setup_ports() to set
hwif->irq to legacy IRQ 14/15 (iff hwif->irq is not already set) and convert
atiixp, piix, serverworks, sis5513 and slc90e66 host drivers to use it.
While at it:
* In piix.c add IDE_HFLAGS_PIIX define and don't use ->init_hwif for MPIIX.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/atiixp.c')
-rw-r--r-- | drivers/ide/pci/atiixp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ide/pci/atiixp.c b/drivers/ide/pci/atiixp.c index 18c181bc841b..47e95806c07f 100644 --- a/drivers/ide/pci/atiixp.c +++ b/drivers/ide/pci/atiixp.c | |||
@@ -172,9 +172,6 @@ static void __devinit init_hwif_atiixp(ide_hwif_t *hwif) | |||
172 | u8 ch = hwif->channel; | 172 | u8 ch = hwif->channel; |
173 | struct pci_dev *pdev = hwif->pci_dev; | 173 | struct pci_dev *pdev = hwif->pci_dev; |
174 | 174 | ||
175 | if (!hwif->irq) | ||
176 | hwif->irq = ch ? 15 : 14; | ||
177 | |||
178 | hwif->set_pio_mode = &atiixp_set_pio_mode; | 175 | hwif->set_pio_mode = &atiixp_set_pio_mode; |
179 | hwif->set_dma_mode = &atiixp_set_dma_mode; | 176 | hwif->set_dma_mode = &atiixp_set_dma_mode; |
180 | hwif->drives[0].autotune = 1; | 177 | hwif->drives[0].autotune = 1; |
@@ -200,7 +197,7 @@ static ide_pci_device_t atiixp_pci_info[] __devinitdata = { | |||
200 | .name = "ATIIXP", | 197 | .name = "ATIIXP", |
201 | .init_hwif = init_hwif_atiixp, | 198 | .init_hwif = init_hwif_atiixp, |
202 | .enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}}, | 199 | .enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}}, |
203 | .host_flags = IDE_HFLAG_BOOTABLE, | 200 | .host_flags = IDE_HFLAG_LEGACY_IRQS | IDE_HFLAG_BOOTABLE, |
204 | .pio_mask = ATA_PIO4, | 201 | .pio_mask = ATA_PIO4, |
205 | .mwdma_mask = ATA_MWDMA2, | 202 | .mwdma_mask = ATA_MWDMA2, |
206 | .udma_mask = ATA_UDMA5, | 203 | .udma_mask = ATA_UDMA5, |
@@ -208,7 +205,8 @@ static ide_pci_device_t atiixp_pci_info[] __devinitdata = { | |||
208 | .name = "SB600_PATA", | 205 | .name = "SB600_PATA", |
209 | .init_hwif = init_hwif_atiixp, | 206 | .init_hwif = init_hwif_atiixp, |
210 | .enablebits = {{0x48,0x01,0x00}, {0x00,0x00,0x00}}, | 207 | .enablebits = {{0x48,0x01,0x00}, {0x00,0x00,0x00}}, |
211 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, | 208 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_LEGACY_IRQS | |
209 | IDE_HFLAG_BOOTABLE, | ||
212 | .pio_mask = ATA_PIO4, | 210 | .pio_mask = ATA_PIO4, |
213 | .mwdma_mask = ATA_MWDMA2, | 211 | .mwdma_mask = ATA_MWDMA2, |
214 | .udma_mask = ATA_UDMA5, | 212 | .udma_mask = ATA_UDMA5, |