aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/setup-pci.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:30 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:30 -0400
commitcaea7602f309cbd55ba609800fd3c3e5d19ab684 (patch)
treefbf1fab750452317a1a38f9ec38b18ad6b1323c3 /drivers/ide/setup-pci.c
parent272a370900e5d2ae84662338397bb7b2375ff5cf (diff)
ide: add IDE_HFLAG_{IO_32BIT,UNMASK_IRQS} host flags
Add IDE_HFLAG_{IO_32BIT,UNMASK_IRQS} host flag to tell ide_pci_setup_ports() to set drive->{io_32bit,unmask} for both drives on the interface. Convert amd74xx, sl82c105 and via82cxxx host drivers to use these new host flags. While at it: * Add IDE_HFLAGS_AMD define (amd74xx host driver). * Add IDE_HFLAGS_VIA define (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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index a1d7efc9eaaf..d62b225f569f 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -573,6 +573,16 @@ void ide_pci_setup_ports(struct pci_dev *dev, ide_pci_device_t *d, int pciirq, a
573 if ((d->host_flags & IDE_HFLAG_SERIALIZE) && hwif->mate) 573 if ((d->host_flags & IDE_HFLAG_SERIALIZE) && hwif->mate)
574 hwif->mate->serialized = hwif->serialized = 1; 574 hwif->mate->serialized = hwif->serialized = 1;
575 575
576 if (d->host_flags & IDE_HFLAG_IO_32BIT) {
577 hwif->drives[0].io_32bit = 1;
578 hwif->drives[1].io_32bit = 1;
579 }
580
581 if (d->host_flags & IDE_HFLAG_UNMASK_IRQS) {
582 hwif->drives[0].unmask = 1;
583 hwif->drives[1].unmask = 1;
584 }
585
576 if (hwif->dma_base) { 586 if (hwif->dma_base) {
577 hwif->swdma_mask = d->swdma_mask; 587 hwif->swdma_mask = d->swdma_mask;
578 hwif->mwdma_mask = d->mwdma_mask; 588 hwif->mwdma_mask = d->mwdma_mask;