aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/hpt366.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-07-19 19:11:59 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-07-19 19:11:59 -0400
commit4099d14322149c7a467e4997b87be4ba8eb78697 (patch)
tree133a913d7f9c2dacaaaef5cfdf2ae6911dc21f4c /drivers/ide/pci/hpt366.c
parent6a824c92db4d606c324272c4eed366fb71672440 (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/hpt366.c')
-rw-r--r--drivers/ide/pci/hpt366.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
index 0a3fe9471eb6..2cd74c345a6c 100644
--- a/drivers/ide/pci/hpt366.c
+++ b/drivers/ide/pci/hpt366.c
@@ -1549,7 +1549,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1549 .autodma = AUTODMA, 1549 .autodma = AUTODMA,
1550 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1550 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1551 .bootable = OFF_BOARD, 1551 .bootable = OFF_BOARD,
1552 .extra = 240 1552 .extra = 240,
1553 .pio_mask = ATA_PIO4,
1553 },{ /* 1 */ 1554 },{ /* 1 */
1554 .name = "HPT372A", 1555 .name = "HPT372A",
1555 .init_setup = init_setup_hpt372a, 1556 .init_setup = init_setup_hpt372a,
@@ -1560,7 +1561,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1560 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1561 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1561 .udma_mask = HPT372_ALLOW_ATA133_6 ? 0x7f : 0x3f, 1562 .udma_mask = HPT372_ALLOW_ATA133_6 ? 0x7f : 0x3f,
1562 .bootable = OFF_BOARD, 1563 .bootable = OFF_BOARD,
1563 .extra = 240 1564 .extra = 240,
1565 .pio_mask = ATA_PIO4,
1564 },{ /* 2 */ 1566 },{ /* 2 */
1565 .name = "HPT302", 1567 .name = "HPT302",
1566 .init_setup = init_setup_hpt302, 1568 .init_setup = init_setup_hpt302,
@@ -1571,7 +1573,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1571 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1573 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1572 .udma_mask = HPT302_ALLOW_ATA133_6 ? 0x7f : 0x3f, 1574 .udma_mask = HPT302_ALLOW_ATA133_6 ? 0x7f : 0x3f,
1573 .bootable = OFF_BOARD, 1575 .bootable = OFF_BOARD,
1574 .extra = 240 1576 .extra = 240,
1577 .pio_mask = ATA_PIO4,
1575 },{ /* 3 */ 1578 },{ /* 3 */
1576 .name = "HPT371", 1579 .name = "HPT371",
1577 .init_setup = init_setup_hpt371, 1580 .init_setup = init_setup_hpt371,
@@ -1582,7 +1585,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1582 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1585 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1583 .udma_mask = HPT371_ALLOW_ATA133_6 ? 0x7f : 0x3f, 1586 .udma_mask = HPT371_ALLOW_ATA133_6 ? 0x7f : 0x3f,
1584 .bootable = OFF_BOARD, 1587 .bootable = OFF_BOARD,
1585 .extra = 240 1588 .extra = 240,
1589 .pio_mask = ATA_PIO4,
1586 },{ /* 4 */ 1590 },{ /* 4 */
1587 .name = "HPT374", 1591 .name = "HPT374",
1588 .init_setup = init_setup_hpt374, 1592 .init_setup = init_setup_hpt374,
@@ -1593,7 +1597,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1593 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1597 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1594 .udma_mask = 0x3f, 1598 .udma_mask = 0x3f,
1595 .bootable = OFF_BOARD, 1599 .bootable = OFF_BOARD,
1596 .extra = 240 1600 .extra = 240,
1601 .pio_mask = ATA_PIO4,
1597 },{ /* 5 */ 1602 },{ /* 5 */
1598 .name = "HPT372N", 1603 .name = "HPT372N",
1599 .init_setup = init_setup_hpt372n, 1604 .init_setup = init_setup_hpt372n,
@@ -1604,7 +1609,8 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1604 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1609 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1605 .udma_mask = HPT372_ALLOW_ATA133_6 ? 0x7f : 0x3f, 1610 .udma_mask = HPT372_ALLOW_ATA133_6 ? 0x7f : 0x3f,
1606 .bootable = OFF_BOARD, 1611 .bootable = OFF_BOARD,
1607 .extra = 240 1612 .extra = 240,
1613 .pio_mask = ATA_PIO4,
1608 } 1614 }
1609}; 1615};
1610 1616