diff options
author | Tejun Heo <htejun@gmail.com> | 2008-04-07 09:47:16 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:21 -0400 |
commit | 9363c3825ea9ad76561eb48a395349dd29211ed6 (patch) | |
tree | abe89a0f7c82b805d84b1a211c97b317f6628d5f /drivers/ata/pata_legacy.c | |
parent | b67a1064cb1c1d3b43e01e8b43a6a8dcdefed733 (diff) |
libata: rename SFF functions
SFF functions have confusing names. Some have sff prefix, some have
bmdma, some std, some pci and some none. Unify the naming by...
* SFF functions which are common to both BMDMA and non-BMDMA are
prefixed with ata_sff_.
* SFF functions which are specific to BMDMA are prefixed with
ata_bmdma_.
* SFF functions which are specific to PCI but apply to both BMDMA and
non-BMDMA are prefixed with ata_pci_sff_.
* SFF functions which are specific to PCI and BMDMA are prefixed with
ata_pci_bmdma_.
* Drop generic prefixes from LLD specific routines. For example,
bfin_std_dev_select -> bfin_dev_select.
The following renames are noteworthy.
ata_qc_issue_prot() -> ata_sff_qc_issue()
ata_pci_default_filter() -> ata_bmdma_mode_filter()
ata_dev_try_classify() -> ata_sff_dev_classify()
This rename is in preparation of separating SFF support out of libata
core layer. This patch strictly renames functions and doesn't
introduce any behavior difference.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/pata_legacy.c')
-rw-r--r-- | drivers/ata/pata_legacy.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index 2474068596f4..f13f10a55ef3 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c | |||
@@ -226,12 +226,12 @@ static const struct ata_port_operations legacy_base_port_ops = { | |||
226 | 226 | ||
227 | static struct ata_port_operations simple_port_ops = { | 227 | static struct ata_port_operations simple_port_ops = { |
228 | .inherits = &legacy_base_port_ops, | 228 | .inherits = &legacy_base_port_ops, |
229 | .data_xfer = ata_data_xfer_noirq, | 229 | .data_xfer = ata_sff_data_xfer_noirq, |
230 | }; | 230 | }; |
231 | 231 | ||
232 | static struct ata_port_operations legacy_port_ops = { | 232 | static struct ata_port_operations legacy_port_ops = { |
233 | .inherits = &legacy_base_port_ops, | 233 | .inherits = &legacy_base_port_ops, |
234 | .data_xfer = ata_data_xfer_noirq, | 234 | .data_xfer = ata_sff_data_xfer_noirq, |
235 | .set_mode = legacy_set_mode, | 235 | .set_mode = legacy_set_mode, |
236 | }; | 236 | }; |
237 | 237 | ||
@@ -317,7 +317,7 @@ static unsigned int pdc_data_xfer_vlb(struct ata_device *dev, | |||
317 | } | 317 | } |
318 | local_irq_restore(flags); | 318 | local_irq_restore(flags); |
319 | } else | 319 | } else |
320 | buflen = ata_data_xfer_noirq(dev, buf, buflen, rw); | 320 | buflen = ata_sff_data_xfer_noirq(dev, buf, buflen, rw); |
321 | 321 | ||
322 | return buflen; | 322 | return buflen; |
323 | } | 323 | } |
@@ -579,7 +579,7 @@ static void opti82c46x_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
579 | } | 579 | } |
580 | 580 | ||
581 | /** | 581 | /** |
582 | * opt82c465mv_qc_issue_prot - command issue | 582 | * opt82c465mv_qc_issue - command issue |
583 | * @qc: command pending | 583 | * @qc: command pending |
584 | * | 584 | * |
585 | * Called when the libata layer is about to issue a command. We wrap | 585 | * Called when the libata layer is about to issue a command. We wrap |
@@ -593,7 +593,7 @@ static void opti82c46x_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
593 | * FIXME: dual channel needs ->serialize support | 593 | * FIXME: dual channel needs ->serialize support |
594 | */ | 594 | */ |
595 | 595 | ||
596 | static unsigned int opti82c46x_qc_issue_prot(struct ata_queued_cmd *qc) | 596 | static unsigned int opti82c46x_qc_issue(struct ata_queued_cmd *qc) |
597 | { | 597 | { |
598 | struct ata_port *ap = qc->ap; | 598 | struct ata_port *ap = qc->ap; |
599 | struct ata_device *adev = qc->dev; | 599 | struct ata_device *adev = qc->dev; |
@@ -604,13 +604,13 @@ static unsigned int opti82c46x_qc_issue_prot(struct ata_queued_cmd *qc) | |||
604 | && ap->host->private_data != NULL) | 604 | && ap->host->private_data != NULL) |
605 | opti82c46x_set_piomode(ap, adev); | 605 | opti82c46x_set_piomode(ap, adev); |
606 | 606 | ||
607 | return ata_qc_issue_prot(qc); | 607 | return ata_sff_qc_issue(qc); |
608 | } | 608 | } |
609 | 609 | ||
610 | static struct ata_port_operations opti82c46x_port_ops = { | 610 | static struct ata_port_operations opti82c46x_port_ops = { |
611 | .inherits = &legacy_base_port_ops, | 611 | .inherits = &legacy_base_port_ops, |
612 | .set_piomode = opti82c46x_set_piomode, | 612 | .set_piomode = opti82c46x_set_piomode, |
613 | .qc_issue = opti82c46x_qc_issue_prot, | 613 | .qc_issue = opti82c46x_qc_issue, |
614 | }; | 614 | }; |
615 | 615 | ||
616 | static void qdi6500_set_piomode(struct ata_port *ap, struct ata_device *adev) | 616 | static void qdi6500_set_piomode(struct ata_port *ap, struct ata_device *adev) |
@@ -644,7 +644,7 @@ static void qdi6500_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
644 | * @irq: interrupt line | 644 | * @irq: interrupt line |
645 | * | 645 | * |
646 | * In dual channel mode the 6580 has one clock per channel and we have | 646 | * In dual channel mode the 6580 has one clock per channel and we have |
647 | * to software clockswitch in qc_issue_prot. | 647 | * to software clockswitch in qc_issue. |
648 | */ | 648 | */ |
649 | 649 | ||
650 | static void qdi6580dp_set_piomode(struct ata_port *ap, struct ata_device *adev) | 650 | static void qdi6580dp_set_piomode(struct ata_port *ap, struct ata_device *adev) |
@@ -710,14 +710,14 @@ static void qdi6580_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
710 | } | 710 | } |
711 | 711 | ||
712 | /** | 712 | /** |
713 | * qdi_qc_issue_prot - command issue | 713 | * qdi_qc_issue - command issue |
714 | * @qc: command pending | 714 | * @qc: command pending |
715 | * | 715 | * |
716 | * Called when the libata layer is about to issue a command. We wrap | 716 | * Called when the libata layer is about to issue a command. We wrap |
717 | * this interface so that we can load the correct ATA timings. | 717 | * this interface so that we can load the correct ATA timings. |
718 | */ | 718 | */ |
719 | 719 | ||
720 | static unsigned int qdi_qc_issue_prot(struct ata_queued_cmd *qc) | 720 | static unsigned int qdi_qc_issue(struct ata_queued_cmd *qc) |
721 | { | 721 | { |
722 | struct ata_port *ap = qc->ap; | 722 | struct ata_port *ap = qc->ap; |
723 | struct ata_device *adev = qc->dev; | 723 | struct ata_device *adev = qc->dev; |
@@ -730,7 +730,7 @@ static unsigned int qdi_qc_issue_prot(struct ata_queued_cmd *qc) | |||
730 | 2 * ap->port_no); | 730 | 2 * ap->port_no); |
731 | } | 731 | } |
732 | } | 732 | } |
733 | return ata_qc_issue_prot(qc); | 733 | return ata_sff_qc_issue(qc); |
734 | } | 734 | } |
735 | 735 | ||
736 | static unsigned int vlb32_data_xfer(struct ata_device *adev, unsigned char *buf, | 736 | static unsigned int vlb32_data_xfer(struct ata_device *adev, unsigned char *buf, |
@@ -759,7 +759,7 @@ static unsigned int vlb32_data_xfer(struct ata_device *adev, unsigned char *buf, | |||
759 | } | 759 | } |
760 | return (buflen + 3) & ~3; | 760 | return (buflen + 3) & ~3; |
761 | } else | 761 | } else |
762 | return ata_data_xfer(adev, buf, buflen, rw); | 762 | return ata_sff_data_xfer(adev, buf, buflen, rw); |
763 | } | 763 | } |
764 | 764 | ||
765 | static int qdi_port(struct platform_device *dev, | 765 | static int qdi_port(struct platform_device *dev, |
@@ -774,7 +774,7 @@ static int qdi_port(struct platform_device *dev, | |||
774 | static struct ata_port_operations qdi6500_port_ops = { | 774 | static struct ata_port_operations qdi6500_port_ops = { |
775 | .inherits = &legacy_base_port_ops, | 775 | .inherits = &legacy_base_port_ops, |
776 | .set_piomode = qdi6500_set_piomode, | 776 | .set_piomode = qdi6500_set_piomode, |
777 | .qc_issue = qdi_qc_issue_prot, | 777 | .qc_issue = qdi_qc_issue, |
778 | .data_xfer = vlb32_data_xfer, | 778 | .data_xfer = vlb32_data_xfer, |
779 | }; | 779 | }; |
780 | 780 | ||
@@ -1016,13 +1016,13 @@ static __init int legacy_init_one(struct legacy_probe *probe) | |||
1016 | ap->ioaddr.cmd_addr = io_addr; | 1016 | ap->ioaddr.cmd_addr = io_addr; |
1017 | ap->ioaddr.altstatus_addr = ctrl_addr; | 1017 | ap->ioaddr.altstatus_addr = ctrl_addr; |
1018 | ap->ioaddr.ctl_addr = ctrl_addr; | 1018 | ap->ioaddr.ctl_addr = ctrl_addr; |
1019 | ata_std_ports(&ap->ioaddr); | 1019 | ata_sff_std_ports(&ap->ioaddr); |
1020 | ap->host->private_data = ld; | 1020 | ap->host->private_data = ld; |
1021 | 1021 | ||
1022 | ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", io, io + 0x0206); | 1022 | ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", io, io + 0x0206); |
1023 | 1023 | ||
1024 | ret = ata_host_activate(host, probe->irq, ata_interrupt, 0, | 1024 | ret = ata_host_activate(host, probe->irq, ata_sff_interrupt, 0, |
1025 | &legacy_sht); | 1025 | &legacy_sht); |
1026 | if (ret) | 1026 | if (ret) |
1027 | goto fail; | 1027 | goto fail; |
1028 | ld->platform_dev = pdev; | 1028 | ld->platform_dev = pdev; |