diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-07-09 12:16:50 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-09 12:17:35 -0400 |
commit | bf6263a853c9c143bf03f0a6fdcc68ab714fb5f5 (patch) | |
tree | baf6189fc6e5c13934749488948e1cbfc6e65dea /drivers/ata/ata_piix.c | |
parent | cd70c26617f4686355263be4533ce8030242740e (diff) |
[libata] Use ATA_UDMAx standard masks when filling driver's udma_mask info
The ATA_UDMAx masks are self-documenting, and far better than manually
writing in the hex mask.
Note that pata_it8213 mask differed from the comment. Added a FIXME there.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r-- | drivers/ata/ata_piix.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 76cbdf0094f3..6a3bfef58e13 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c | |||
@@ -497,7 +497,7 @@ static struct ata_port_info piix_port_info[] = { | |||
497 | .flags = PIIX_SATA_FLAGS, | 497 | .flags = PIIX_SATA_FLAGS, |
498 | .pio_mask = 0x1f, /* pio0-4 */ | 498 | .pio_mask = 0x1f, /* pio0-4 */ |
499 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 499 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
500 | .udma_mask = 0x7f, /* udma0-6 */ | 500 | .udma_mask = ATA_UDMA6, |
501 | .port_ops = &piix_sata_ops, | 501 | .port_ops = &piix_sata_ops, |
502 | }, | 502 | }, |
503 | 503 | ||
@@ -507,7 +507,7 @@ static struct ata_port_info piix_port_info[] = { | |||
507 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR, | 507 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR, |
508 | .pio_mask = 0x1f, /* pio0-4 */ | 508 | .pio_mask = 0x1f, /* pio0-4 */ |
509 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 509 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
510 | .udma_mask = 0x7f, /* udma0-6 */ | 510 | .udma_mask = ATA_UDMA6, |
511 | .port_ops = &piix_sata_ops, | 511 | .port_ops = &piix_sata_ops, |
512 | }, | 512 | }, |
513 | 513 | ||
@@ -518,7 +518,7 @@ static struct ata_port_info piix_port_info[] = { | |||
518 | PIIX_FLAG_AHCI, | 518 | PIIX_FLAG_AHCI, |
519 | .pio_mask = 0x1f, /* pio0-4 */ | 519 | .pio_mask = 0x1f, /* pio0-4 */ |
520 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 520 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
521 | .udma_mask = 0x7f, /* udma0-6 */ | 521 | .udma_mask = ATA_UDMA6, |
522 | .port_ops = &piix_sata_ops, | 522 | .port_ops = &piix_sata_ops, |
523 | }, | 523 | }, |
524 | 524 | ||
@@ -529,7 +529,7 @@ static struct ata_port_info piix_port_info[] = { | |||
529 | PIIX_FLAG_AHCI, | 529 | PIIX_FLAG_AHCI, |
530 | .pio_mask = 0x1f, /* pio0-4 */ | 530 | .pio_mask = 0x1f, /* pio0-4 */ |
531 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 531 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
532 | .udma_mask = 0x7f, /* udma0-6 */ | 532 | .udma_mask = ATA_UDMA6, |
533 | .port_ops = &piix_sata_ops, | 533 | .port_ops = &piix_sata_ops, |
534 | }, | 534 | }, |
535 | 535 | ||
@@ -540,7 +540,7 @@ static struct ata_port_info piix_port_info[] = { | |||
540 | PIIX_FLAG_AHCI, | 540 | PIIX_FLAG_AHCI, |
541 | .pio_mask = 0x1f, /* pio0-4 */ | 541 | .pio_mask = 0x1f, /* pio0-4 */ |
542 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 542 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
543 | .udma_mask = 0x7f, /* udma0-6 */ | 543 | .udma_mask = ATA_UDMA6, |
544 | .port_ops = &piix_sata_ops, | 544 | .port_ops = &piix_sata_ops, |
545 | }, | 545 | }, |
546 | 546 | ||