aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/hpt366.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
commit33c1002ed912ac9dacedd5d5b166da3b72d18460 (patch)
treec129987c6935542a8bd95924873ac6bf0e1e756c /drivers/ide/pci/hpt366.c
parent1c3dd326ad790934fd88ec086e75a9d61ddaef8a (diff)
ide: add IDE_HFLAG_NO_ATAPI_DMA host flag
Add IDE_HFLAG_NO_ATAPI_DMA host flag and set it in host drivers which don't support ATAPI DMA. Then remove no longer needed hwif->atapi_dma. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/hpt366.c')
-rw-r--r--drivers/ide/pci/hpt366.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c
index fcb21ddab2cc..5d96a086bde4 100644
--- a/drivers/ide/pci/hpt366.c
+++ b/drivers/ide/pci/hpt366.c
@@ -1555,6 +1555,7 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1555 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, 1555 .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}},
1556 .bootable = OFF_BOARD, 1556 .bootable = OFF_BOARD,
1557 .extra = 240, 1557 .extra = 240,
1558 .host_flags = IDE_HFLAG_NO_ATAPI_DMA,
1558 .pio_mask = ATA_PIO4, 1559 .pio_mask = ATA_PIO4,
1559 },{ /* 1 */ 1560 },{ /* 1 */
1560 .name = "HPT372A", 1561 .name = "HPT372A",
@@ -1567,6 +1568,7 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1567 .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, 1568 .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
1568 .bootable = OFF_BOARD, 1569 .bootable = OFF_BOARD,
1569 .extra = 240, 1570 .extra = 240,
1571 .host_flags = IDE_HFLAG_NO_ATAPI_DMA,
1570 .pio_mask = ATA_PIO4, 1572 .pio_mask = ATA_PIO4,
1571 },{ /* 2 */ 1573 },{ /* 2 */
1572 .name = "HPT302", 1574 .name = "HPT302",
@@ -1579,6 +1581,7 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1579 .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, 1581 .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
1580 .bootable = OFF_BOARD, 1582 .bootable = OFF_BOARD,
1581 .extra = 240, 1583 .extra = 240,
1584 .host_flags = IDE_HFLAG_NO_ATAPI_DMA,
1582 .pio_mask = ATA_PIO4, 1585 .pio_mask = ATA_PIO4,
1583 },{ /* 3 */ 1586 },{ /* 3 */
1584 .name = "HPT371", 1587 .name = "HPT371",
@@ -1591,6 +1594,7 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1591 .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, 1594 .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
1592 .bootable = OFF_BOARD, 1595 .bootable = OFF_BOARD,
1593 .extra = 240, 1596 .extra = 240,
1597 .host_flags = IDE_HFLAG_NO_ATAPI_DMA,
1594 .pio_mask = ATA_PIO4, 1598 .pio_mask = ATA_PIO4,
1595 },{ /* 4 */ 1599 },{ /* 4 */
1596 .name = "HPT374", 1600 .name = "HPT374",
@@ -1603,6 +1607,7 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1603 .udma_mask = ATA_UDMA5, 1607 .udma_mask = ATA_UDMA5,
1604 .bootable = OFF_BOARD, 1608 .bootable = OFF_BOARD,
1605 .extra = 240, 1609 .extra = 240,
1610 .host_flags = IDE_HFLAG_NO_ATAPI_DMA,
1606 .pio_mask = ATA_PIO4, 1611 .pio_mask = ATA_PIO4,
1607 },{ /* 5 */ 1612 },{ /* 5 */
1608 .name = "HPT372N", 1613 .name = "HPT372N",
@@ -1615,6 +1620,7 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
1615 .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, 1620 .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
1616 .bootable = OFF_BOARD, 1621 .bootable = OFF_BOARD,
1617 .extra = 240, 1622 .extra = 240,
1623 .host_flags = IDE_HFLAG_NO_ATAPI_DMA,
1618 .pio_mask = ATA_PIO4, 1624 .pio_mask = ATA_PIO4,
1619 } 1625 }
1620}; 1626};