aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_scc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_scc.c')
-rw-r--r--drivers/ata/pata_scc.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c
index 701d0addae73..2b9da715c704 100644
--- a/drivers/ata/pata_scc.c
+++ b/drivers/ata/pata_scc.c
@@ -441,7 +441,7 @@ static void scc_bmdma_setup (struct ata_queued_cmd *qc)
441 out_be32(mmio + SCC_DMA_CMD, dmactl); 441 out_be32(mmio + SCC_DMA_CMD, dmactl);
442 442
443 /* issue r/w command */ 443 /* issue r/w command */
444 ap->ops->exec_command(ap, &qc->tf); 444 ap->ops->sff_exec_command(ap, &qc->tf);
445} 445}
446 446
447/** 447/**
@@ -476,7 +476,7 @@ static unsigned int scc_devchk (struct ata_port *ap,
476 struct ata_ioports *ioaddr = &ap->ioaddr; 476 struct ata_ioports *ioaddr = &ap->ioaddr;
477 u8 nsect, lbal; 477 u8 nsect, lbal;
478 478
479 ap->ops->dev_select(ap, device); 479 ap->ops->sff_dev_select(ap, device);
480 480
481 out_be32(ioaddr->nsect_addr, 0x55); 481 out_be32(ioaddr->nsect_addr, 0x55);
482 out_be32(ioaddr->lbal_addr, 0xaa); 482 out_be32(ioaddr->lbal_addr, 0xaa);
@@ -525,7 +525,7 @@ static int scc_bus_post_reset(struct ata_port *ap, unsigned int devmask,
525 while (dev1) { 525 while (dev1) {
526 u8 nsect, lbal; 526 u8 nsect, lbal;
527 527
528 ap->ops->dev_select(ap, 1); 528 ap->ops->sff_dev_select(ap, 1);
529 nsect = in_be32(ioaddr->nsect_addr); 529 nsect = in_be32(ioaddr->nsect_addr);
530 lbal = in_be32(ioaddr->lbal_addr); 530 lbal = in_be32(ioaddr->lbal_addr);
531 if ((nsect == 1) && (lbal == 1)) 531 if ((nsect == 1) && (lbal == 1))
@@ -541,11 +541,11 @@ static int scc_bus_post_reset(struct ata_port *ap, unsigned int devmask,
541 } 541 }
542 542
543 /* is all this really necessary? */ 543 /* is all this really necessary? */
544 ap->ops->dev_select(ap, 0); 544 ap->ops->sff_dev_select(ap, 0);
545 if (dev1) 545 if (dev1)
546 ap->ops->dev_select(ap, 1); 546 ap->ops->sff_dev_select(ap, 1);
547 if (dev0) 547 if (dev0)
548 ap->ops->dev_select(ap, 0); 548 ap->ops->sff_dev_select(ap, 0);
549 549
550 return 0; 550 return 0;
551} 551}
@@ -616,7 +616,7 @@ static int scc_softreset(struct ata_link *link, unsigned int *classes,
616 devmask |= (1 << 1); 616 devmask |= (1 << 1);
617 617
618 /* select device 0 again */ 618 /* select device 0 again */
619 ap->ops->dev_select(ap, 0); 619 ap->ops->sff_dev_select(ap, 0);
620 620
621 /* issue bus reset */ 621 /* issue bus reset */
622 DPRINTK("about to softreset, devmask=%x\n", devmask); 622 DPRINTK("about to softreset, devmask=%x\n", devmask);
@@ -829,7 +829,7 @@ static u8 scc_irq_on (struct ata_port *ap)
829 out_be32(ioaddr->ctl_addr, ap->ctl); 829 out_be32(ioaddr->ctl_addr, ap->ctl);
830 tmp = ata_wait_idle(ap); 830 tmp = ata_wait_idle(ap);
831 831
832 ap->ops->irq_clear(ap); 832 ap->ops->sff_irq_clear(ap);
833 833
834 return tmp; 834 return tmp;
835} 835}
@@ -854,9 +854,9 @@ static void scc_freeze (struct ata_port *ap)
854 * ATA_NIEN manipulation. Also, many controllers fail to mask 854 * ATA_NIEN manipulation. Also, many controllers fail to mask
855 * previously pending IRQ on ATA_NIEN assertion. Clear it. 855 * previously pending IRQ on ATA_NIEN assertion. Clear it.
856 */ 856 */
857 ap->ops->check_status(ap); 857 ap->ops->sff_check_status(ap);
858 858
859 ap->ops->irq_clear(ap); 859 ap->ops->sff_irq_clear(ap);
860} 860}
861 861
862/** 862/**
@@ -887,9 +887,9 @@ static void scc_postreset(struct ata_link *link, unsigned int *classes)
887 887
888 /* is double-select really necessary? */ 888 /* is double-select really necessary? */
889 if (classes[0] != ATA_DEV_NONE) 889 if (classes[0] != ATA_DEV_NONE)
890 ap->ops->dev_select(ap, 1); 890 ap->ops->sff_dev_select(ap, 1);
891 if (classes[1] != ATA_DEV_NONE) 891 if (classes[1] != ATA_DEV_NONE)
892 ap->ops->dev_select(ap, 0); 892 ap->ops->sff_dev_select(ap, 0);
893 893
894 /* bail out if no device is present */ 894 /* bail out if no device is present */
895 if (classes[0] == ATA_DEV_NONE && classes[1] == ATA_DEV_NONE) { 895 if (classes[0] == ATA_DEV_NONE && classes[1] == ATA_DEV_NONE) {
@@ -967,18 +967,18 @@ static struct ata_port_operations scc_pata_ops = {
967 .set_dmamode = scc_set_dmamode, 967 .set_dmamode = scc_set_dmamode,
968 .mode_filter = scc_mode_filter, 968 .mode_filter = scc_mode_filter,
969 969
970 .tf_load = scc_tf_load, 970 .sff_tf_load = scc_tf_load,
971 .tf_read = scc_tf_read, 971 .sff_tf_read = scc_tf_read,
972 .exec_command = scc_exec_command, 972 .sff_exec_command = scc_exec_command,
973 .check_status = scc_check_status, 973 .sff_check_status = scc_check_status,
974 .check_altstatus = scc_check_altstatus, 974 .sff_check_altstatus = scc_check_altstatus,
975 .dev_select = scc_dev_select, 975 .sff_dev_select = scc_dev_select,
976 976
977 .bmdma_setup = scc_bmdma_setup, 977 .bmdma_setup = scc_bmdma_setup,
978 .bmdma_start = scc_bmdma_start, 978 .bmdma_start = scc_bmdma_start,
979 .bmdma_stop = scc_bmdma_stop, 979 .bmdma_stop = scc_bmdma_stop,
980 .bmdma_status = scc_bmdma_status, 980 .bmdma_status = scc_bmdma_status,
981 .data_xfer = scc_data_xfer, 981 .sff_data_xfer = scc_data_xfer,
982 982
983 .freeze = scc_freeze, 983 .freeze = scc_freeze,
984 .prereset = scc_pata_prereset, 984 .prereset = scc_pata_prereset,
@@ -986,8 +986,8 @@ static struct ata_port_operations scc_pata_ops = {
986 .postreset = scc_postreset, 986 .postreset = scc_postreset,
987 .post_internal_cmd = scc_bmdma_stop, 987 .post_internal_cmd = scc_bmdma_stop,
988 988
989 .irq_clear = scc_irq_clear, 989 .sff_irq_clear = scc_irq_clear,
990 .irq_on = scc_irq_on, 990 .sff_irq_on = scc_irq_on,
991 991
992 .port_start = scc_port_start, 992 .port_start = scc_port_start,
993 .port_stop = scc_port_stop, 993 .port_stop = scc_port_stop,