diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:59 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:59 -0400 |
commit | 4099d14322149c7a467e4997b87be4ba8eb78697 (patch) | |
tree | 133a913d7f9c2dacaaaef5cfdf2ae6911dc21f4c /drivers/ide/pci/cmd640.c | |
parent | 6a824c92db4d606c324272c4eed366fb71672440 (diff) |
ide: add PIO masks
* Add ATA_PIO[0-6] defines to <linux/ata.h>.
* Add ->pio_mask field to ide_pci_device_t and ide_hwif_t.
* Add PIO masks to host drivers.
<linux/ata.h> change ACK-ed by Jeff Garzik <jeff@garzik.org>.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cmd640.c')
-rw-r--r-- | drivers/ide/pci/cmd640.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/pci/cmd640.c b/drivers/ide/pci/cmd640.c index 335482981a92..9689494efa24 100644 --- a/drivers/ide/pci/cmd640.c +++ b/drivers/ide/pci/cmd640.c | |||
@@ -766,6 +766,7 @@ int __init ide_probe_for_cmd640x (void) | |||
766 | cmd_hwif0->name, 'a' + cmd640_chip_version - 1, bus_type, cfr); | 766 | cmd_hwif0->name, 'a' + cmd640_chip_version - 1, bus_type, cfr); |
767 | cmd_hwif0->chipset = ide_cmd640; | 767 | cmd_hwif0->chipset = ide_cmd640; |
768 | #ifdef CONFIG_BLK_DEV_CMD640_ENHANCED | 768 | #ifdef CONFIG_BLK_DEV_CMD640_ENHANCED |
769 | cmd_hwif0->pio_mask = ATA_PIO5; | ||
769 | cmd_hwif0->tuneproc = &cmd640_tune_drive; | 770 | cmd_hwif0->tuneproc = &cmd640_tune_drive; |
770 | #endif /* CONFIG_BLK_DEV_CMD640_ENHANCED */ | 771 | #endif /* CONFIG_BLK_DEV_CMD640_ENHANCED */ |
771 | 772 | ||
@@ -821,6 +822,7 @@ int __init ide_probe_for_cmd640x (void) | |||
821 | cmd_hwif1->mate = cmd_hwif0; | 822 | cmd_hwif1->mate = cmd_hwif0; |
822 | cmd_hwif1->channel = 1; | 823 | cmd_hwif1->channel = 1; |
823 | #ifdef CONFIG_BLK_DEV_CMD640_ENHANCED | 824 | #ifdef CONFIG_BLK_DEV_CMD640_ENHANCED |
825 | cmd_hwif1->pio_mask = ATA_PIO5; | ||
824 | cmd_hwif1->tuneproc = &cmd640_tune_drive; | 826 | cmd_hwif1->tuneproc = &cmd640_tune_drive; |
825 | #endif /* CONFIG_BLK_DEV_CMD640_ENHANCED */ | 827 | #endif /* CONFIG_BLK_DEV_CMD640_ENHANCED */ |
826 | } | 828 | } |