diff options
author | Tejun Heo <htejun@gmail.com> | 2007-09-23 00:14:12 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:41 -0400 |
commit | fb7fd61454c8681cd2621051a710b78a00369203 (patch) | |
tree | 491cbdbca867f59b9f1cb1032a4f40a33385e471 /drivers/ata/libata-eh.c | |
parent | 422c9daa8b5bea09f3393b11a106afd68850b39b (diff) |
libata-pmp-prep: make a number of functions global to libata
Make a number of functions from libata-core.c and libata-eh.c global
to libata (drivers/ata/libata.h). These will be used by PMP.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index eb087bbc4771..1d3b0dccfb0a 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -74,7 +74,6 @@ static const unsigned long ata_eh_reset_timeouts[] = { | |||
74 | }; | 74 | }; |
75 | 75 | ||
76 | static void __ata_port_freeze(struct ata_port *ap); | 76 | static void __ata_port_freeze(struct ata_port *ap); |
77 | static void ata_eh_finish(struct ata_port *ap); | ||
78 | #ifdef CONFIG_PM | 77 | #ifdef CONFIG_PM |
79 | static void ata_eh_handle_port_suspend(struct ata_port *ap); | 78 | static void ata_eh_handle_port_suspend(struct ata_port *ap); |
80 | static void ata_eh_handle_port_resume(struct ata_port *ap); | 79 | static void ata_eh_handle_port_resume(struct ata_port *ap); |
@@ -1015,7 +1014,7 @@ void ata_eh_qc_retry(struct ata_queued_cmd *qc) | |||
1015 | * LOCKING: | 1014 | * LOCKING: |
1016 | * None. | 1015 | * None. |
1017 | */ | 1016 | */ |
1018 | static void ata_eh_detach_dev(struct ata_device *dev) | 1017 | void ata_eh_detach_dev(struct ata_device *dev) |
1019 | { | 1018 | { |
1020 | struct ata_link *link = dev->link; | 1019 | struct ata_link *link = dev->link; |
1021 | struct ata_port *ap = link->ap; | 1020 | struct ata_port *ap = link->ap; |
@@ -1052,8 +1051,8 @@ static void ata_eh_detach_dev(struct ata_device *dev) | |||
1052 | * LOCKING: | 1051 | * LOCKING: |
1053 | * None. | 1052 | * None. |
1054 | */ | 1053 | */ |
1055 | static void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, | 1054 | void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, |
1056 | unsigned int action) | 1055 | unsigned int action) |
1057 | { | 1056 | { |
1058 | struct ata_port *ap = link->ap; | 1057 | struct ata_port *ap = link->ap; |
1059 | struct ata_eh_info *ehi = &link->eh_info; | 1058 | struct ata_eh_info *ehi = &link->eh_info; |
@@ -1095,8 +1094,8 @@ static void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, | |||
1095 | * LOCKING: | 1094 | * LOCKING: |
1096 | * None. | 1095 | * None. |
1097 | */ | 1096 | */ |
1098 | static void ata_eh_done(struct ata_link *link, struct ata_device *dev, | 1097 | void ata_eh_done(struct ata_link *link, struct ata_device *dev, |
1099 | unsigned int action) | 1098 | unsigned int action) |
1100 | { | 1099 | { |
1101 | struct ata_eh_context *ehc = &link->eh_context; | 1100 | struct ata_eh_context *ehc = &link->eh_context; |
1102 | 1101 | ||
@@ -1756,7 +1755,7 @@ static void ata_eh_link_autopsy(struct ata_link *link) | |||
1756 | * LOCKING: | 1755 | * LOCKING: |
1757 | * Kernel thread context (may sleep). | 1756 | * Kernel thread context (may sleep). |
1758 | */ | 1757 | */ |
1759 | static void ata_eh_autopsy(struct ata_port *ap) | 1758 | void ata_eh_autopsy(struct ata_port *ap) |
1760 | { | 1759 | { |
1761 | struct ata_link *link; | 1760 | struct ata_link *link; |
1762 | 1761 | ||
@@ -1867,7 +1866,7 @@ static void ata_eh_link_report(struct ata_link *link) | |||
1867 | * LOCKING: | 1866 | * LOCKING: |
1868 | * None. | 1867 | * None. |
1869 | */ | 1868 | */ |
1870 | static void ata_eh_report(struct ata_port *ap) | 1869 | void ata_eh_report(struct ata_port *ap) |
1871 | { | 1870 | { |
1872 | struct ata_link *link; | 1871 | struct ata_link *link; |
1873 | 1872 | ||
@@ -1918,9 +1917,9 @@ static int ata_eh_followup_srst_needed(int rc, int classify, | |||
1918 | return 0; | 1917 | return 0; |
1919 | } | 1918 | } |
1920 | 1919 | ||
1921 | static int ata_eh_reset(struct ata_link *link, int classify, | 1920 | int ata_eh_reset(struct ata_link *link, int classify, |
1922 | ata_prereset_fn_t prereset, ata_reset_fn_t softreset, | 1921 | ata_prereset_fn_t prereset, ata_reset_fn_t softreset, |
1923 | ata_reset_fn_t hardreset, ata_postreset_fn_t postreset) | 1922 | ata_reset_fn_t hardreset, ata_postreset_fn_t postreset) |
1924 | { | 1923 | { |
1925 | struct ata_eh_context *ehc = &link->eh_context; | 1924 | struct ata_eh_context *ehc = &link->eh_context; |
1926 | unsigned int *classes = ehc->classes; | 1925 | unsigned int *classes = ehc->classes; |
@@ -2296,10 +2295,10 @@ static int ata_eh_handle_dev_fail(struct ata_device *dev, int err) | |||
2296 | * RETURNS: | 2295 | * RETURNS: |
2297 | * 0 on success, -errno on failure. | 2296 | * 0 on success, -errno on failure. |
2298 | */ | 2297 | */ |
2299 | static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | 2298 | int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, |
2300 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, | 2299 | ata_reset_fn_t softreset, ata_reset_fn_t hardreset, |
2301 | ata_postreset_fn_t postreset, | 2300 | ata_postreset_fn_t postreset, |
2302 | struct ata_link **r_failed_link) | 2301 | struct ata_link **r_failed_link) |
2303 | { | 2302 | { |
2304 | struct ata_link *link; | 2303 | struct ata_link *link; |
2305 | struct ata_device *dev; | 2304 | struct ata_device *dev; |
@@ -2445,7 +2444,7 @@ static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
2445 | * LOCKING: | 2444 | * LOCKING: |
2446 | * None. | 2445 | * None. |
2447 | */ | 2446 | */ |
2448 | static void ata_eh_finish(struct ata_port *ap) | 2447 | void ata_eh_finish(struct ata_port *ap) |
2449 | { | 2448 | { |
2450 | int tag; | 2449 | int tag; |
2451 | 2450 | ||