diff options
author | Erik Inge Bolsø <knan-lkml@anduin.net> | 2009-03-14 16:38:24 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-24 22:13:27 -0400 |
commit | 14bdef982caeda19afe34010482867c18217c641 (patch) | |
tree | f1ed0bf1a1dad887ae717a41ccca13332e6fdb17 /drivers/ata/pata_ali.c | |
parent | 22ddbd1e036ce035c1cccb2496aefafac79aba2c (diff) |
[libata] convert drivers to use ata.h mode mask defines
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_ali.c')
-rw-r--r-- | drivers/ata/pata_ali.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index eb99dbe78081..751b7ea4816c 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c | |||
@@ -492,53 +492,53 @@ static int ali_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
492 | { | 492 | { |
493 | static const struct ata_port_info info_early = { | 493 | static const struct ata_port_info info_early = { |
494 | .flags = ATA_FLAG_SLAVE_POSS, | 494 | .flags = ATA_FLAG_SLAVE_POSS, |
495 | .pio_mask = 0x1f, | 495 | .pio_mask = ATA_PIO4, |
496 | .port_ops = &ali_early_port_ops | 496 | .port_ops = &ali_early_port_ops |
497 | }; | 497 | }; |
498 | /* Revision 0x20 added DMA */ | 498 | /* Revision 0x20 added DMA */ |
499 | static const struct ata_port_info info_20 = { | 499 | static const struct ata_port_info info_20 = { |
500 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, | 500 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, |
501 | .pio_mask = 0x1f, | 501 | .pio_mask = ATA_PIO4, |
502 | .mwdma_mask = 0x07, | 502 | .mwdma_mask = ATA_MWDMA2, |
503 | .port_ops = &ali_20_port_ops | 503 | .port_ops = &ali_20_port_ops |
504 | }; | 504 | }; |
505 | /* Revision 0x20 with support logic added UDMA */ | 505 | /* Revision 0x20 with support logic added UDMA */ |
506 | static const struct ata_port_info info_20_udma = { | 506 | static const struct ata_port_info info_20_udma = { |
507 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, | 507 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, |
508 | .pio_mask = 0x1f, | 508 | .pio_mask = ATA_PIO4, |
509 | .mwdma_mask = 0x07, | 509 | .mwdma_mask = ATA_MWDMA2, |
510 | .udma_mask = 0x07, /* UDMA33 */ | 510 | .udma_mask = ATA_UDMA2, |
511 | .port_ops = &ali_20_port_ops | 511 | .port_ops = &ali_20_port_ops |
512 | }; | 512 | }; |
513 | /* Revision 0xC2 adds UDMA66 */ | 513 | /* Revision 0xC2 adds UDMA66 */ |
514 | static const struct ata_port_info info_c2 = { | 514 | static const struct ata_port_info info_c2 = { |
515 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, | 515 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, |
516 | .pio_mask = 0x1f, | 516 | .pio_mask = ATA_PIO4, |
517 | .mwdma_mask = 0x07, | 517 | .mwdma_mask = ATA_MWDMA2, |
518 | .udma_mask = ATA_UDMA4, | 518 | .udma_mask = ATA_UDMA4, |
519 | .port_ops = &ali_c2_port_ops | 519 | .port_ops = &ali_c2_port_ops |
520 | }; | 520 | }; |
521 | /* Revision 0xC3 is UDMA66 for now */ | 521 | /* Revision 0xC3 is UDMA66 for now */ |
522 | static const struct ata_port_info info_c3 = { | 522 | static const struct ata_port_info info_c3 = { |
523 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, | 523 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, |
524 | .pio_mask = 0x1f, | 524 | .pio_mask = ATA_PIO4, |
525 | .mwdma_mask = 0x07, | 525 | .mwdma_mask = ATA_MWDMA2, |
526 | .udma_mask = ATA_UDMA4, | 526 | .udma_mask = ATA_UDMA4, |
527 | .port_ops = &ali_c2_port_ops | 527 | .port_ops = &ali_c2_port_ops |
528 | }; | 528 | }; |
529 | /* Revision 0xC4 is UDMA100 */ | 529 | /* Revision 0xC4 is UDMA100 */ |
530 | static const struct ata_port_info info_c4 = { | 530 | static const struct ata_port_info info_c4 = { |
531 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, | 531 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48, |
532 | .pio_mask = 0x1f, | 532 | .pio_mask = ATA_PIO4, |
533 | .mwdma_mask = 0x07, | 533 | .mwdma_mask = ATA_MWDMA2, |
534 | .udma_mask = ATA_UDMA5, | 534 | .udma_mask = ATA_UDMA5, |
535 | .port_ops = &ali_c4_port_ops | 535 | .port_ops = &ali_c4_port_ops |
536 | }; | 536 | }; |
537 | /* Revision 0xC5 is UDMA133 with LBA48 DMA */ | 537 | /* Revision 0xC5 is UDMA133 with LBA48 DMA */ |
538 | static const struct ata_port_info info_c5 = { | 538 | static const struct ata_port_info info_c5 = { |
539 | .flags = ATA_FLAG_SLAVE_POSS, | 539 | .flags = ATA_FLAG_SLAVE_POSS, |
540 | .pio_mask = 0x1f, | 540 | .pio_mask = ATA_PIO4, |
541 | .mwdma_mask = 0x07, | 541 | .mwdma_mask = ATA_MWDMA2, |
542 | .udma_mask = ATA_UDMA6, | 542 | .udma_mask = ATA_UDMA6, |
543 | .port_ops = &ali_c5_port_ops | 543 | .port_ops = &ali_c5_port_ops |
544 | }; | 544 | }; |