aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/piix.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:06 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:06 -0400
commit47b687882c02f802dd5bbe1227effe006820246e (patch)
tree7b9048ebfa0a53203e4e3c55649f28e352a143cc /drivers/ide/pci/piix.c
parent7cab14a79973893392111b8f887856a54621f759 (diff)
ide: add IDE_HFLAG_NO_{DMA,AUTODMA} host flags
Add IDE_HFLAG_NO_{DMA,AUTODMA} host flags. Convert all host drivers using ide_pci_device_t to use these flags instead of d->autodma and then remove no longer needed d->autodma. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/piix.c')
-rw-r--r--drivers/ide/pci/piix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/pci/piix.c b/drivers/ide/pci/piix.c
index 287f4e38981e..692623892cbc 100644
--- a/drivers/ide/pci/piix.c
+++ b/drivers/ide/pci/piix.c
@@ -415,7 +415,6 @@ static void __devinit init_hwif_piix(ide_hwif_t *hwif)
415 .name = name_str, \ 415 .name = name_str, \
416 .init_chipset = init_chipset_piix, \ 416 .init_chipset = init_chipset_piix, \
417 .init_hwif = init_hwif_piix, \ 417 .init_hwif = init_hwif_piix, \
418 .autodma = AUTODMA, \
419 .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ 418 .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \
420 .host_flags = IDE_HFLAG_BOOTABLE, \ 419 .host_flags = IDE_HFLAG_BOOTABLE, \
421 .pio_mask = ATA_PIO4, \ 420 .pio_mask = ATA_PIO4, \
@@ -434,9 +433,9 @@ static ide_pci_device_t piix_pci_info[] __devinitdata = {
434 */ 433 */
435 .name = "MPIIX", 434 .name = "MPIIX",
436 .init_hwif = init_hwif_piix, 435 .init_hwif = init_hwif_piix,
437 .autodma = NODMA,
438 .enablebits = {{0x6d,0xc0,0x80}, {0x6d,0xc0,0xc0}}, 436 .enablebits = {{0x6d,0xc0,0x80}, {0x6d,0xc0,0xc0}},
439 .host_flags = IDE_HFLAG_ISA_PORTS | IDE_HFLAG_BOOTABLE, 437 .host_flags = IDE_HFLAG_ISA_PORTS | IDE_HFLAG_NO_DMA |
438 IDE_HFLAG_BOOTABLE,
440 .pio_mask = ATA_PIO4, 439 .pio_mask = ATA_PIO4,
441 }, 440 },
442 441